• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help on nested:text tag

 
konda Raju
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a collection of customerName Onjects.

I am using <nested:text tag to enter the customer name and a link to show the customer details. When a user clicks on the link I need to pass the customer name to the pop-up window. Can any body give some idea how can I pass the customer name to the pop-up window. Can we assign customized id to <nested:text tag.

Thanks in advance.
Konda
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the logic:iterate tag, you can specify variable to contain the index of the iteration, and can then use that variable to set the id of the text field and to retrieve the value in a JavaScript expression. Example:

Note that for most Struts tags, the styleId attribute translates to an HTML id attribute. Also note that the indexId will be of type Integer, so you may need to translate it to a String in some cases.
[ April 28, 2008: Message edited by: Merrill Higginson ]
 
konda Raju
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Merrill Thanks for your help it is working fine . I have one more question how to assign the our own value to style id attribute.

<nested:text size="11" maxlength="11" property="name" styleId='<bean:write property="id"/>' /> . I am trying this code it is not working. can you please give your suggestions on this

Thanks in advance
Konda
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic