Details
-
Type: Improvement
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: EE-2.0.0.GA, 2.0.2, EE-1.8.2.GA_P03
-
Fix Version/s: None
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
Description
Feature Request: It would be nice to be able to style the rows displayed for the selectInputText options in a similar way to the rows in a dataTable with alternating even/odd style.
Currently there is only the ability to only style each row the same and have the selected row style differently.
Currently there is only the ability to only style each row the same and have the selected row style differently.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Yes, it can be done at app level when using facet.
In order to achieve this, an index should be added to the bean, and that index has to be used in a styleClass of root element.
For example:
<style>
{ background-color:red; }.evenClass
</style>
<ice:selectInputText
{selectInputText.cityMatchPossibilities}listVar="city"
listValue="#
">
<f:facet name="selectInputText">
{(city.index % 2 == 0) ? evenClass : oddClass }<ice:panelGrid columns="3" styleClass="#
"
{city.city},stateCol,zipCol">columnClasses="#
<ice:outputText id="AutoCmpCty" value="#{city.city}
"/>
{city.state}<ice:outputText id="AutoCmpSt" value="#
"/>
{city.zip}<ice:outputText id="AutoCmpZip" value="#
"/>
</ice:panelGrid>
</f:facet>
</ice:selectInputText>