Could someone help with this.

I get a user input, query the database and show a list ( <t:dataTable>). The user choose a item
( <t:commandLink> <t:updateActionListener>), and I open a detail page. Almost is OK, but when the user clicks the browser back button in the detail page, the page (with the table) stop working.



On 1/12/06, Vladimir Coutinho <[EMAIL PROTECTED]> wrote:
I tried to follow the instruction to open a detail page from a table. The first time I click the commandlink opens the detail page. But if I click the BACK button of the BROWSER, the table apears, but the links doesn't work more.

Master table

<t:dataTable id="clientes"
    preserveDataModel="false"
    cellpadding="0" cellspacing="1"
    columnClasses="" headerClass="tbcadH" rowClasses="tbcadTR1,tbcadTR2"
    styleClass="tbcad" value="#{Cliente.clientesEncontrados}"
    rows="35"
    var="c"> 
  <h:column>
    <f:facet name="header">
      <h:outputText  value="Nome"/>
    </f:facet>
   
    <t:commandLink  immediate="true" action=""
        <h:outputText value="#{c.NM_CLI}" />
        <t:updateActionListener property="#{Cliente.CD_CLI}" value="#{c.CD_CLI}" />
    </t:commandLink>

  </h:column>
  <h:column>
    <f:facet name="header">
      <h:outputText  value="Código"/>
    </f:facet>
    <h:outputText value="#{c.CD_CLI}"/>
  </h:column>
  <h:column>
    <f:facet name="header">
      <h:outputText  value="CNPJ/CPF"/>
    </f:facet>
     <h:outputText value="#{c.CNPJ_CPF}"/>
  </h:column>
</t:dataTable>

************************************************************************


  <navigation-rule>
        <from-view-id>/*</from-view-id>
        <navigation-case> 
            <from-outcome>cadastro</from-outcome>
            <to-view-id>/cadastro/cadastro.jsp</to-view-id> 
        </navigation-case>
        <navigation-case> 
            <from-outcome>cadastroselcli</from-outcome>
            <to-view-id>/cadastro/cadastroselcli.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>



--
Vladimir M Coutinho

Reply via email to