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"/>

      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 name="Base" page="/layouts/commonLayout.jsp" >
       <put name="header" value="/header.jsp"/>
       <put name="topNav" value="/topNav.jsp"/>
       <put name="footer" value="/footer.jsp" />

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

      Thanks and Regards,

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

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

      <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"/>
      <t:outputText value="#{accountVO.accountName1}" id="accountName1"/>

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

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

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