jquery (and other js frameworks) support selecting by attributes other than
the id.
More info here: http://api.jquery.com/category/selectors/

I was suggesting to add an attribute to each of your select elements and
then use an appropriate selector to look it up:

eg;

<t:select t:mixins="observe" data-observe-id="id1"
t:fields="prop:fieldSelectors" ... />
<t:select t:mixins="observe" data-observe-id="id2"
t:fields="prop:fieldSelectors" ... />

public List<String> getFieldSelectors() {
   return Arrays.asList("[data-observe-id='id1']",
"[data-observe-id='id2']");
}

Reply via email to