pessoal, toda vez que eu rodo a minha aplicação, de início tudo
funciona muito bem, mas se eu clico no botão voltar e tento
acessar novamente a mesma págia eu recebo a mensagem abaiso
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: duplicate Id for a component j_id7:j_id11
javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
root cause
java.lang.IllegalStateException: duplicate Id for a component j_id7:j_id11
org.ajax4jsf.application.TreeStructureNode.apply(TreeStructureNode.java:68)
org.ajax4jsf.application.TreeStructureNode.apply(TreeStructureNode.java:92)
org.ajax4jsf.application.TreeStructureNode.apply(TreeStructureNode.java:92)
org.ajax4jsf.application.TreeStructureNode.apply(TreeStructureNode.java:92)
org.ajax4jsf.application.TreeStructureNode.apply(TreeStructureNode.java:92)
org.ajax4jsf.application.AjaxStateManager.getTreeStructureToSave(AjaxStateManager.java:187)
org.ajax4jsf.application.AjaxStateManager.buildViewState(AjaxStateManager.java:498)
org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:451)
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615)
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
meu arquivo XHTML esta abaixo
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
template="./template.xhtml">
<ui:define name="title">
DARF Normal
</ui:define>
<ui:define name="body">
<h:form>
<h:panelGrid>
<p><a href="template-client.jsf">Home</a></p>
</h:panelGrid>
</h:form>
<h:form>
<h:panelGroup>
<h:panelGrid id="darfNormal" columns="2">
<h:outputLabel value="#{darf.codigoReceita}"/>
<h:inputText id="codigoReceitaTributo" binding="#{darfNormalController.codigoReceitaTributoInput}" value="#{darfNormalController.darf.codigoReceitaTributo}"/>
<h:outputLabel value="#{darf.tipoContribuinte}"/>
<rich:comboBox id="tipoIdentificacaoContribuinte"
binding="#{darfNormalController.tipoIdentificacaoContribuinteInput}"
value="#{darfNormalController.darf.tipoIdentificacaoContribuinte}"
directInputSuggestions="false">
<f:selectItems value="#{darfNormalController.identificacaoList}"/>
</rich:comboBox>
<h:outputLabel value="#{darf.identificacao}"/>
<h:inputText id="identificacaoContribuinte" binding="#{darfNormalController.identificacaoContribuinteInput}" value="#{darfNormalController.darf.identificacaoContribuinte}"/>
<h:outputLabel value="#{darf.codigoTributo}"/>
<h:inputText id="codigoIdentificacaoTributo" binding="#{darfNormalController.codigoIdentificacaoTributoInput}" value="#{darfNormalController.darf.codigoIdentificacaoTributo}"/>
<h:outputLabel value="#{darf.periodoApuracao}"/>
<a4j:outputPanel id="darfNormalPeriodoApuracao" layout="block">
<rich:calendar id="periodoApuracao"
binding="#{darfNormalController.periodoApuracaoInput}"
value="#{darfNormalController.darf.periodoApuracao}"
popup="#{darf.popupDate}"
datePattern="#{darf.periodoApuracaoPattern}"
showApplyButton="#{darf.showApply}" cellWidth="24px" cellHeight="22px" style="width:200px"/>
</a4j:outputPanel>
<h:outputLabel value="#{darf.numeroReferencia}"/>
<h:inputText id="numeroReferencia" binding="#{darfNormalController.numeroReferenciaInput}" value="#{darfNormalController.darf.numeroReferencia}"/>
<h:outputLabel value="#{darf.valorPrincipal}"/>
<h:inputText id="valorPrincipal" binding="#{darfNormalController.valorPrincipalInput}" value="#{darfNormalController.darf.valorPrincipal}"/>
<h:outputLabel value="#{darf.valorMulta}"/>
<h:inputText id="valorMulta" binding="#{darfNormalController.valorMultaInput}" value="#{darfNormalController.darf.valorMulta}"/>
<h:outputLabel value="#{darf.valorJurosEncargos}"/>
<h:inputText id="valorJurosEncargos" binding="#{darfNormalController.valorJurosEncargosInput}" value="#{darfNormalController.darf.valorJurosEncargos}"/>
<h:outputLabel value="#{darf.dataVencimento}"/>
<a4j:outputPanel id="darfNormalDataVencimento" layout="block">
<rich:calendar id="dataVencimento"
value="#{darfNormalController.darf.dataVencimento}"
binding="#{darfNormalController.dataVencimentoInput}"
popup="#{darf.popupDate}"
datePattern="#{darf.dataVencimentoPattern}"
showApplyButton="#{darf.showApply}" cellWidth="24px" cellHeight="22px" style="width:200px"/>
</a4j:outputPanel>
</h:panelGrid>
<h:panelGrid id="darfNormalButtons" columns="2">
<a4j:commandButton value="Cadastra"
reRender="darfNormal"
action="#{darfNormalController.cadastra}"
style="width:120px; height:30px"
id="botaoCadastrar"/>
<a4j:commandButton value="Limpar"
reRender="darfNormal"
action="#{darfNormalController.limpar}"
style="width:120px; height:30px"
id="botaoLimpar"/>
</h:panelGrid>
</h:panelGroup>
</h:form>
</ui:define>
</ui:composition>
se alguem puder ajudar!!