cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruyn Bill" <>
Subject RE: selectionList sort order
Date Wed, 01 Feb 2006 18:48:16 GMT
Is the problem statement clear?  Is this the intended behavior, or am I doing something wrong?
 I scanned the source and didn't see anything obvious.  FWIW, here is the widget definition
(not much to it):
<fd:multivaluefield id="languages">
   <fd:datatype base="integer" />
   <fd:selection-list />
BTW, the list contains some ListOption objects, whose method getId returns a java.lang.Integer
and getOptionLong returns a java.lang.String.
Thanks again for your time.


From: Bruyn Bill []
Sent: Tue 1/31/2006 2:56 PM
Subject: selectionList sort order

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"> 
      var list = facade.getListOptions(Language.LIST_NAME);
      for(var i = list.iterator(); i.hasNext();) {

      /* yields the following, as desired:
        ASL or other assistance for hearing impaired
      widget.setSelectionList(list, "id", "optionLong");
      /* but is rendered in the following order:
        ASL or other assistance for hearing impaired

Anybody know offhand where/why this is happening and how to stop it?
Thanks in advance.


Bill Bruyn

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message