I am not sure what this is supposed to do but you can add arbitrary properties to any widget.
That is
ad_form -name myform -form {
{mywidget:text -pos_group {...}}
}
Will magically create the property available within the
template::widget::text
tcl procedure.
You can get to it by referring to the property in the element array:
upvar $element_reference element
if { ! [info exists element(pos_group)] } {
... do something
}