So i defined the component:
Code: Select all
<p:selectOneMenu id="advanced" value="#{cChargeTrading.selectedChargeTrading.tradingId}" panelStyle="width:180px" converter="tradingConverter"
effect="fade" var="t" style="width:250px" filter="true" filterMatchMode="startsWith">
<f:selectItems value="#{cChargeTrading.avaTradings }" var="theme" itemLabel="#{theme.tradingName}" itemValue="#{theme}" />
<p:column style="width:20%">
<p:graphicImage library="images" name="/tradings/#{t.picture}.jpg" height="80" width="80" rendered="${not empty t.picture}"/>
</p:column>
<p:column>
<h:outputText value="#{t.tradingName}" />
</p:column>
</p:selectOneMenu>
- the converter-Component
- put the images in the images directory
The images are shown, but some are right and some are wrong. I already drop the browsercache (Firefox), but the problem still exists. Each item get the right path of the database. I also don´t have redundant datasets.
Has someone a solution for this issue ?
PF: 6.0.1
Glassfish 4.1.1