I have a multivaluefield with a selection list, bound with some
fb:javascript. The contents of the list are sorted the way I want them
when I obtain the list, but are rendered differently. Snippet follows:
<fb:javascript id="languages" path="languages" direction="load">
<fb:load-form>
var list = facade.getListOptions(Language.LIST_NAME);
for(var i = list.iterator(); i.hasNext();) {
print(i.next().getOptionLong());
}
/* yields the following, as desired:
English
ASL or other assistance for hearing impaired
Achumaw
*/
widget.setSelectionList(list, "id", "optionLong");
/* but is rendered in the following order:
ASL or other assistance for hearing impaired
Achumaw
English
*/
</fb:load-form>
</fb:javascript>
Anybody know offhand where/why this is happening and how to stop it?
Thanks in advance.
Thanks,
Bill Bruyn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]