1 Reply Latest reply on Oct 25, 2007 8:47 AM by Bernd Rottmann

    Problem using a4j:support and reRender

    Bernd Rottmann Newbie

      Hi all,

      I try to open a rich:modalPanel after clicking on an h:graphicImage that is inside a rich:dataGrid.


      <h:form id="form">
       <rich:dataGrid value="#{sampleSnippets}" var="selSample" columns="2" id="snippetGrid"
       elements="6" rowKeyVar="row">
       <rich:panel style="background-color: #ffffff" bodyClass="body">
       <td align="center" width="114"><h:graphicImage
       height="114"
       url="/#{selSample.samplePicFront}">
      
       <a4j:support event="onclick" disableDefault="true" reRender="picturePanel" oncomplete="Richfaces.showModalPanel('picturePanel')">
       <a4j:actionparam name="ap" value="#{selSample.samplePicFront}" assignTo="#{snippetFinder.currentFrontPic}" />
       </a4j:support>
      
       </h:graphicImage>
       </rich:panel>
       <f:facet name="footer">
       <rich:datascroller></rich:datascroller>
       </f:facet>
       </rich:dataGrid>
       <rich:modalPanel id="picturePanel">
       <f:facet name="header">
       <h:outputText value="#{snippetFinder.currentFrontPic}" />
       </f:facet>
       <f:facet name="controls">
       <h:graphicImage value="/images/modal/close.png"
       style="cursor:pointer"
       onclick="Richfaces.hideModalPanel('picturePanel')" />
       </f:facet>
       <h:graphicImage
       url="/#{snippetFinder.currentFrontPic}" />
       <h:commandLink onclick="Richfaces.hideModalPanel('picturePanel')">Schließen</h:commandLink>
       </rich:modalPanel>
       </h:form>
      


      The update of the backing bean property #{snippetFinder.currentFrontPic} works fine.
      But the modalpanel isnt rendered.

      Im using Seam 1.2.1, Facelets and Richfaces 3.1.2.