2009-07-17 7 views
0

J'utilise le code suivant pour afficher l'image dynamique dans DataTable riche. Sur la vignette, je dois afficher l'image complète récupérée à partir d'un endroit différent. Mais la deuxième balise a4j: mediaOutput récupère toutes les images complètes et les garde en mémoire. (OfCourse modalPanel est affiché sur le clic seulement)Appeler Rich Panel Modal Onclick

Je veux la deuxième balise a4j: mediaOutput pour appeler daImageRetrievalBean.retrieveFullImage seulement après avoir cliqué.

Aidez-nous s'il vous plaît.


Répondre

0
      <h:outputLink value="#" id="link"> 
          <a4j:mediaOutput element="img" cacheable="false" session="true" style="height:75px; width:75px;" 
           createContent="#{daImageRetrievalBean.retrieveThumbnail}" value="#{digAsset.digitalAssetId}" mimeType="image/jpeg" /> 
          <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"> 
          </rich:componentControl> 
         </h:outputLink> 
         <rich:modalPanel id="panel" resizeable="false" autosized="true" minHeight="650" minWidth="700"> 
          <f:facet name="header"> 
           <h:outputText value="#{digAsset.fileName}  Click on the image to hide" /> 
          </f:facet> 
         <f:facet name="controls"> 
          <h:panelGroup> 
           <a4j:mediaOutput element="img" cacheable="false" session="true" id="hidelink" style="height:600px; width:700px;margin-top: 30px" 
              createContent="#{daImageRetrievalBean.retrieveFullImage}" value="#{digAsset.fileName}" mimeType="image/jpeg" /> 
           <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/> 
         </h:panelGroup> 
         </f:facet>      
         </rich:modalPanel> 
Questions connexes