Hi Friends,
I have a requirement where i am filling my listbox on the basis of selected items on the dropdown box. The dropdown box gets populated dynamically. But i am unable to populate the listbox in a similar manner.
Consider the following snippet of my JSP:
<tr> <%= DummyComponent.identityOfTarget.size()%> </tr> --- THIS YIELDS PROPER COUNT OF THE ARRAYLIST
<tr>
<td align="right">
<dmf:panel name="test">
<dmf:dropdownlist width="180" name="targetLangs" size='5' multiselect='true' cssclass='BrowseNumberList' onselect="getListBoxSelectedValues" runatclient='true' id='searchlistbox'>
<%
for ( int d = 0; d < DummyComponent.identityOfTarget.size(); d++ ) {
%><dmf:option id = '<%=DummyComponent.identityOfTarget.get(d).toString()%>' value='<%=DummyComponent.identityOfTarget.get(d).toString()%>' label='<%=DummyComponent.descriptnOTarget.get(d).toString() %>' />//THE ABOVE OPTION LINE DOES NOT SEEM TO WORK //<%} %>
</dmf:dropdownlist>
I have got 2 arraylists
1) identityOfTarget
2) descriptnOTarget
These arraylist do get filled from my code. An evidence of the fact is that the very first line gives me the size of the arraylist 'identityOfTarget'.
But the option does not seem to capture these elements (inside the for loop).
Could you please help me to find a solution to this situation ? The size of the array being printed properly, i am assuming that the part of my
code (both class (and its action events) and JSP) are functioning properly. Is my assumption correct?
Thanks & Regards
Vishnu Soman