[jboss-user] [JBoss Seam] - Style on individual selectItem?
JohnEChesher
do-not-reply at jboss.com
Wed Apr 11 09:14:58 EDT 2007
I'm using the Seam selectItems tag and would like to conditionally assign a style to SOME of the select items to display their label in red text. Thus far, I haven't found a way to do this using either the Seam selectItems tag or the JSF selectItem tag(s). So, I'm thinking it may be a limitation of JSF and possibly one that Seam SelectItems does not help us overcome. Of course, I don't know what I don't know, so I'm hoping there is a solution that I am just not aware of. Does anyone have a solution for how this can be done using either the Seam selectItems tag or JSF selectItem(s) tags?
Probably not needed in this case, but here's a code snippet:
<h:selectManyListbox style="errorMessage" id="selInst" value="#{newUser.institutionChangesList}" size="10" rendered="#{not empty foundInstitutions}">
| <si:selectItems value="#{foundInstitutions}" var="i" label="#{ i.id} - #{i.active ? '' : 'INACTIVE: '}#{i.name} (#{i.state.shortName}, #{i.type.name})" />
| </h:selectManyListbox>
I'd like to add red color to the entries to which I'm currently adding "INACTIVE" to the label.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036344#4036344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036344
More information about the jboss-user
mailing list