I got it Abhiram,
Used this
styleId="<%="sp" + index%>" index is the indexid from logic:iterator tag
Thanks again
Also I was getting styleId not using expressions error since yesterday.
Figured out this was because I was using
struts-html-el.tld instaed of
struts-html.tl
i dont know anything about struts 2, but with my 1.2, i have no probs giving
dynamic ids.
here is an idea.
inside ur jsp, keep incrementing a counter for every iteration.
<%String s = "combo_" + counter;%>
give id as styleId="<%=s"
for two iterations, two combos with ids combo_1 and combo_2 will
Thanks for the response Abhiram,
I tried using styleid,
But how do I give [use] dynamic styleids ? There should be some way to
retrieve the particular combobox for a particular row right ?
I tried using styleid=bean:write id=index> where index is retrieved from
logic:iterator ta
ur requirement is to change contents of combobox 2, when a different option in
combobox 1 is selected ryt..
i think you can give id to each combobox,write an onchange event or something
similar to activate javascript
in javascript, get the selected option of combobox 1 by using
document.getEl
Can i have some ideas here ?
Thanks
Maya menon <[EMAIL PROTECTED]> wrote:
Hi all,
I have a page which displays dynamic comboboxes.
The records from DB will be displayed in table and two fields are getting
displayed in comboboxes.
Now, there is one condtion in which if user changes somet
Hi all,
I have a page which displays dynamic comboboxes.
The records from DB will be displayed in table and two fields are getting
displayed in comboboxes.
Now, there is one condtion in which if user changes something in first
combobox then value of second combobox should automatica
6 matches
Mail list logo