I'd like to create combo with images whose names equal to labels in simple ArrayList<String>.
But when the following code is used (derived from the show case), just labels appear in the combo when it is populated. I use PF 3.0M4, but RC1-Snapshot gives the same results. Win7 + Mojarra 2.1.4 + Tomcat 7.0.14.
Code: Select all
<p:selectOneMenu value="#{settings.colorMapName}" var="colorMapName">
<f:selectItems value="#{settings.colorMapNameList}"/>
<p:column>
<p:graphicImage value="/resources/colormaps/#{colorMapName}.svg" width="100" height="10"/>
</p:column>
</p:selectOneMenu>
Regards,
Jan