Migration Seam 1.2.1.GA to 2.0.2.SP1
ddelgado May 29, 2009 3:33 PMHi... i'm trying migrate my application from seam 1.2.1.GA to seam 2.0.2.SP1, but i'm facing some problems.
The main problem now is the navigation configured in pages.xml. In my pages.xml I have this configuration:
<page view-id="/index.xhtml">
<action execute="#{authenticator.authenticate}">
<param name="chave" value="#{authenticator.chave}" />
<param name="token" value="#{authenticator.token}" />
<param name="unimed" value="#{authenticator.unimed}" />
<param name="usuario" value="#{authenticator.usuario}" />
</action>
<action execute="#{listarDetalharProcessoManager.listarProcessos}"/>
</page>
<page view-id="/pages/pgListProcessos.xhtml">
<navigation>
<rule if-outcome="detalhar">
<render view-id="/pages/pgViewProcesso.xhtml" ></render>
</rule>
<rule if-outcome="novoProcesso">
<render view-id="/pages/pgIndexCadastro.xhtml" ></render>
</rule>
</navigation>
</page>
In my index.xhtml I have this:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:s="http://jboss.com/products/seam/taglib"
template="WEB-INF/templates/mestre.xhtml">
<ui:define name="conteudo">
<rich:tabPanel id="tabPanelPrincipal" width="948px" switchType="ajax"
styleClass="tabprincipal">
<rich:tab label="Processos" id="tabProcessos"
action="#{listarDetalharProcessoManager.listarProcessos}">
<a4j:include id="pagesProcesso"
viewId="/pages/pgListProcessos.xhtml" />
</rich:tab>
<rich:tab label="Árbitros da Câmara" rendered="#{s:hasRole('ADMIN')}"
action="#{arbitroManager.listarArbitros}">
<ui:include src="pages/pgEditArbitros.xhtml" />
</rich:tab>
<rich:tab label="Log Transações" switchType="client" rendered="#{s:hasRole('ADMIN')}">
<a4j:include id="pagesTransacoes"
viewId="/pages/pgLogTransacoes.xhtml" />
</rich:tab>
</rich:tabPanel>
</ui:define>
</ui:composition>
Doesn't matter if I click in some link inside the "/pages/ListProcessos.xhtml", always the flow in view-id="index.xhtml" is executed, and nothing happens in flow described by view-id="/pages/ListProcessos.xhtml".
P.S.: This worked fine in seam 1.2.1.GA
Can someone help me?
The main problem now is the navigation configured in pages.xml. In my pages.xml I have this configuration:
<page view-id="/index.xhtml">
<action execute="#{authenticator.authenticate}">
<param name="chave" value="#{authenticator.chave}" />
<param name="token" value="#{authenticator.token}" />
<param name="unimed" value="#{authenticator.unimed}" />
<param name="usuario" value="#{authenticator.usuario}" />
</action>
<action execute="#{listarDetalharProcessoManager.listarProcessos}"/>
</page>
<page view-id="/pages/pgListProcessos.xhtml">
<navigation>
<rule if-outcome="detalhar">
<render view-id="/pages/pgViewProcesso.xhtml" ></render>
</rule>
<rule if-outcome="novoProcesso">
<render view-id="/pages/pgIndexCadastro.xhtml" ></render>
</rule>
</navigation>
</page>
In my index.xhtml I have this:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:s="http://jboss.com/products/seam/taglib"
template="WEB-INF/templates/mestre.xhtml">
<ui:define name="conteudo">
<rich:tabPanel id="tabPanelPrincipal" width="948px" switchType="ajax"
styleClass="tabprincipal">
<rich:tab label="Processos" id="tabProcessos"
action="#{listarDetalharProcessoManager.listarProcessos}">
<a4j:include id="pagesProcesso"
viewId="/pages/pgListProcessos.xhtml" />
</rich:tab>
<rich:tab label="Árbitros da Câmara" rendered="#{s:hasRole('ADMIN')}"
action="#{arbitroManager.listarArbitros}">
<ui:include src="pages/pgEditArbitros.xhtml" />
</rich:tab>
<rich:tab label="Log Transações" switchType="client" rendered="#{s:hasRole('ADMIN')}">
<a4j:include id="pagesTransacoes"
viewId="/pages/pgLogTransacoes.xhtml" />
</rich:tab>
</rich:tabPanel>
</ui:define>
</ui:composition>
Doesn't matter if I click in some link inside the "/pages/ListProcessos.xhtml", always the flow in view-id="index.xhtml" is executed, and nothing happens in flow described by view-id="/pages/ListProcessos.xhtml".
P.S.: This worked fine in seam 1.2.1.GA
Can someone help me?