Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:options collection

 
Sujeevan Nagarajah
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can I use html ptions collection tag with 'label' property assigned to concatenation of two bean properties of the collection element bean. Is that possible? In not I know I have to go for scriptlet or need to change the bean.

I am expecting your valuable advice.

Thank you in advance.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you can't concatenate two properties in an htmlptionsCollection tag. My advice is to create a new getter for the bean that performs the needed concatenation.
 
Sujeevan Nagarajah
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Merrill.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic