10 Replies Latest reply on May 22, 2007 6:33 AM by Ilya Shaikovsky

    modalPanel with reRender

    Cesar Ranzini Olmos Newbie

      I have a modalPanel that is shown when I click on a link inside a dataTable. For each row I need to show different information inside the modalPanel.
      Everything works fine the first time I click on a link, but when I click on another link the modalPanel is not reRendered. What am I missing?

      Here is the code I'm using:

      <t:dataTable value="#{myBean.data}" var="entity" >
       <t:column>
       <f:facet name="header"><f:verbatim>Link</f:verbatim></f:facet>
       <a4j:commandLink action="#{myBean.updateRowData}"
       value="#{entity.name}"
       reRender="myPopUp"
       oncomplete="javascript:Richfaces.showModalPanel('myPopUp', {width:450, top:200})">
       <f:param name="rowId" value="#{entity.id}"/>
       </a4j:commandLink>
       </t:column>
      
       ...
      
      </t:dataTable>
      
      <rich:modalPanel id="myPopUp">
       <h:outputText value="#{myBean.rowData.name}" />
      </rich:modalPanel>