0 Replies Latest reply on Jun 21, 2007 12:22 PM by Novin

    Problem: Ajax4jsf & Tiles (my faces and tomhalk) : page rend

    Novin Newbie

      Hi Friends,

      I am facing very typical problem while using followings things togather.

      Ajax4jsf & myfaces & Tiles

      functional description:
      I have accountlist page which display the list of accounts wher we can edit the account while clicking on it from the list 's edit link. Edit links fires an ajax request and display the account info on the same page with account details in other a4j:outputPanel.

      Actual problem

      1) When I don't include any header or footer or any other tile it works fine
      as shown below :

      <definition name="/ajax_Account.tiles" page="/layouts/commonLayout.jsp" >
       <put name="body" value="/Ajax_AccountInfo.jsp"/>
      </definition>


      2) When I insert header,footer and other tile it display all other tiles properly but not the Ajax_AccountInfo.jsp(body tile)

      The definitions are as follows:

      <definition name="/ajax_Account.tiles" extends="Base" >
       <put name="body" value="/Ajax_AccountInfo.jsp"/>
      </definition>
      
      <definition name="Base" page="/layouts/commonLayout.jsp" >
       <put name="header" value="/header.jsp"/>
       <put name="topNav" value="/topNav.jsp"/>
       <put name="footer" value="/footer.jsp" />
      </definition>

      Please help me out or suggest me something which can help me to solve the problem.

      Thanks and Regards,
      Novin.


      if you want here is the code snippest of Ajax_AccountInfo.jsp


      =====================
      <f:view>
      <a4j:region>
      <a4j:outputPanel ajaxRendered="true">
      <h:messages />
      </a4j:outputPanel>

      <h:form>
      <a4j:outputPanel id="accountheader">
      <t:saveState value="#{accountTableBean}"/>
      <t:dataTable value="#{accountTableBean.accountList}" var="accountVO" id="accountData" preserveDataModel="false" rows="5"
      rowIndexVar="rowIndex" >
      <t:column styleClass="GMIST_StaticValueLine">
      <f:facet name="header">
      <t:outputText value="Account Name" id="accountTableh1"/>
      </f:facet>
      <t:outputText value="#{accountVO.accountName1}" id="accountName1"/>
      </t:column>

      <t:column styleClass="GMIST_StaticValueLine">
      <f:facet name="header" >
      <t:outputText styleClass="GMIST_TableHeader" value="Edit" id="accountTableh4"/>
      </f:facet>

      <a4j:commandLink action="#{accountTableBean.viewSelectedAccountDetail}" reRender="accountdetailtab" value="Edit" id="commandLink1">
      <f:param name="selectedRowIndex" value="#{rowIndex}"/>
      </a4j:commandLink>
      </t:column>

      </t:dataTable>
      </a4j:outputPanel>
      <a4j:outputPanel id="accountdetailtab">
      <t:panelTabbedPane>
      <t:panelTab label="General Information" id="paneltab_accountName">
      <f:subview id="ltinc1">
      <f:verbatim>
      <jsp:include page="/pages/csin/tiles/account/accountName.jsp" flush="false"/>
      </f:verbatim>
      </f:subview>
      </t:panelTab>
      </t:panelTabbedPane>
      </a4j:outputPanel>
      </h:form>
      </a4j:region>
      </f:view>