selectOneMenu shows wrong images

UI Components for JSF
Post Reply
roccun
Posts: 28
Joined: 08 May 2013, 15:12
Location: Germany

25 Nov 2016, 16:07

I implemented a selectOneMenu like the show cases with the barca-players.
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 managed bean (CDI)
- 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

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

30 Nov 2016, 19:13

So you expect us to just 'know' what wrong and right means in this case and which ones are right and wrong?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests