<list y="290" x="340" datapath="hotel_habitat_asso/text()" name="hotel_habitat_asso" multiselect="true" width="150" shownitems="5">
<method event="ondata">
<![CDATA[
clearSelection();
var text = datapath.getNodeText();
pointer = text.split(',');
for(var i=0; i<pointer.length ; i++) selectItem( pointer[i] );
]]>
</method>
<textlistitem datapath="hotel_habitat_all:/data/hotel_habitat/" text="$path{'name/text()'}" value="$path{'id/text()'}" />
</list>
Expected behavior: While looping through each value of the array, the selectItem() method should select each option in the textlistitem.
Actual behavior: The looping takes place properly, however, each time selectItem() is called, it unselects all other options. So only the option from the last pass through the loop is selected.
Any ideas anyone? I've been beating my head against the wall on this for hours now...
Thanks in advance!
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
