This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with html:select and iterate

 
Gigi Kent
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I have a problem and I don't know how to solve it. For about 2 day I'm working onand no results so far.
Here is:

<logic:iterate id="Item" name="iterate" >
<html:select indexed="false" name="Item" property="itemNom">
<html ptions collection="point" property="idmodule" labelProperty="module" />
</html:select>
</logic:iterate>
So I have several selects with a name someting like item[0].itemNom; item[1].itemNom etc, so every one hasa a differeny name.
So far, everything is wotking but it keeps reseting to the first option after going through the action though.
Can anyone give me an idea? Please !!!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see how this could work unless you set indexed="true" in your html:select tag.

The next question I'd ask is: Does your ActionForm match this structure? Specifically: Do you have an indexed getter for the item attribute? You might want to show us the code for your ActionForm.
 
Gigi Kent
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry.
I have iterated="true"
My ActionForm is a DynaValidatorForm.
 
Gigi Kent
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how to do a indexed getter. Can you give me a sample?
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Cornel Cc",

Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic