My xhtml code is:
<p:selectOneMenu id="advanced" value="#{bean.selectedColorName}"
effect="fade" var="t" filter="true"
filterMatchMode="startsWith">
<f:selectItems value="#{bean.colorList}" var="color"
itemLabel="#{color}" itemValue="#{color}/>
<p:column>
<p:panel style="width:20px;heigth:20px;background:red"/>
</p:column>
</p:selectOneMenu>
According to above code I want a color tile with color red, next to the select Item. But now, it is displaying only the select item. In the original requirement, I need to to display the color tile, with the actual color as said in the selectItem. For ex: red color tile in front of red; blue tile inf ront of blue etc.
I referred the Primefaces SelectOneMenu's Advanced option. But no help. What I'm missing here?