-
1. Re: rich:collapsiblePanel + rowClasses attribute
selfcare Oct 12, 2011 8:14 AM (in response to selfcare)Achieved through coding in the bean.
Regards,
-
2. Re: rich:collapsiblePanel + rowClasses attribute
pel0s Aug 1, 2012 3:33 AM (in response to selfcare)Hi!
can you explain or tell us how did you do it? I have de same problem.
Thx
-
3. Re: rich:collapsiblePanel + rowClasses attribute
selfcare Aug 4, 2012 3:07 AM (in response to pel0s)Hi,
Lets say panel with even numbers (2nd panel, 4th panel etc) to be display in Blue and panel with odd numbers to be displayed in Green.
When the list is iterated, and panels are displayed, in the bean I will declare a string variable (lets say myColour) and assign it
to Blue and Green respectively depending on if its even iteration or odd. Note here that Blue and Green are just string variables in bean (like String myColour="Blue").
styleClass for the panel is taken from bean like styleClass="#{myBean.myColour}. This will resolve to either Blue or Green value.
In xhtml page, I have put CSS for myColour like,
<style type="text/css">
.Blue { whatever you want to do here...}
.Green { whatever you want to do here...}
</style?
Hope it helps.
Regards,