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>
.evenClass
{
background-color:red;
}
</style>
<ice:selectInputText
listVar="city"
listValue="#
{selectInputText.cityMatchPossibilities}
">
<f:facet name="selectInputText">
<ice:panelGrid columns="3" styleClass="#
{(city.index % 2 == 0) ? evenClass : oddClass }
"
columnClasses="#
{city.city},stateCol,zipCol">
<ice:outputText id="AutoCmpCty" value="#{city.city}
"/>
<ice:outputText id="AutoCmpSt" value="#
{city.state}
"/>
<ice:outputText id="AutoCmpZip" value="#
{city.zip}
"/>
</ice:panelGrid>
</f:facet>
</ice:selectInputText>
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>