5 Replies Latest reply on Feb 27, 2009 11:20 AM by Nick Belaevski

    a4j:commandLink not working on rich:modelPanel

    Janakiram Narla Newbie

      Hi All,

      I am displaying dataTable on model panel('searchPanel') as each row in Data Table has a4j:link ,when I click a link it has to show another model panel named 'addressPanel' with data.

      searchpanel is:-

      <rich:modelPanlel id="searchPanel">
      ..........
      ........
      <a4j:form ajaxSingle="true">
      <a4j:region>
      <rich:dataTable var="accounts" value="#{accountDetails}">
      ..............

      .......
      <rich:column align="center">
      <f:facet name="header">
      <h:outputText value="Billing Address" />
      </f:facet>
      <a4j:commandLink id="billingAddressType333"
      reRender="addressPanel" value="#{accounts.billingAddressType}"
      ajaxSingle="true"
      oncomplete="#{rich:component('addressPanel')}.show()">
      <h:graphicImage value="/img/view.png" style="border:0" />
      <f:setPropertyActionListener
      value="#{accounts.residenceAddress}"
      target="#{customerHome.agile_ResidenceAddress}" />
      <f:setPropertyActionListener
      value="#{accounts.businessAddress}"
      target="#{customerHome.agile_BusinessAddress}" />
      <f:param value="#{accounts.billingAddressType}"
      name="addressType" />
      <s:conversationPropagation type="join" />
      </a4j:commandLink>
      <rich:toolTip for="billingAddressType333" value="View Address" />
      </rich:column>

      ..........
      ........

      </rich:dataTable>
      </a4j:region>
      </a4j:form>
      </rich:modelPanlel>


      But, when i click link, target beans are not populating with data. But, 'addressPanel' is being displayed with empty data.I have not placed any of the modelPanel inside a form.
      It is working fine when we are mounting dataTable on normal panel instead of model pane.

      Can any one suggest me to solve this.