• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically render a link near label for each option in selectItems  RSS feed

 
Vladlen Prohorov
Greenhorn
Posts: 5
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm working on part of CMS that can edit radio and checkboxes.
it't possible to dynamically render a link near label for each option in selectItems ? I mean something like:



tomahawk's selectItems have iterator, but doesn't support nested tags, so

doesn't work.
not sure I can write my own implementation.
may be there is some ready-made conponent ? or any other suggestions ?
Thanks in advance.
 
Dominik Scholz
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
i had a similar problem where i needed to color the background differently for each selectItem.
I replaced the SelectItems with a booleanCheckbox and an outputText inside a repeater.
This way you could add a commandLink easily.
 
Vladlen Prohorov
Greenhorn
Posts: 5
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, a good idea ! (and simple enough)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!