2 Replies Latest reply on Aug 11, 2008 4:51 AM by Ilya Shaikovsky

    tabPanel

    João Longo Newbie

      Hello, I want to know what happen. Only the first button works. The server doesn't answer when I push the second or third button and there are no errors!

      <%@page contentType="text/html" pageEncoding="UTF-8"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
      
      <%@taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      
      
      <html>
      <body>
       <f:view>
       <a4j:include viewId="/view/menu.jsp"/>
       <a4j:form>
       <rich:tabPanel switchType = "server">
       <rich:tab label = "Pessoas">
       <rich:panel>
       <a4j:form>
      
       <p>
       <a4j:commandButton type="submit" value="Remove" action="#{fatoAction.removeK}"/>
       </p>
       </a4j:form>
       </rich:panel>
       <rich:panel>
       <a4j:form>
       <p>
       <a4j:commandButton type="submit" value="Salvar" action="#{fatoAction.cadastrarPessoa}"/>
       </p>
       </a4j:form>
       </rich:panel>
      
       <rich:panel>
       <a4j:form>
      
       <p>
       <a4j:commandButton type="submit" value="Buscar" action="#{fatoAction.buscarPessoa}"/>
       </p>
       </a4j:form>
       </rich:panel>
       </rich:tab>
      
       <rich:tab label = "Fato">
       <a4j:form>
      
       <p>
       <a4j:commandButton type="submit" value="Salvar" action="#{fatoAction.salvar}"/>
       </p>
       </a4j:form>
       </rich:tab>
       <rich:tab label = "Localização">
       GoogleMap aqui!
       </rich:tab>
      
       </rich:tabPanel>
       </a4j:form>
       </f:view>
      </body>
      </html>
      



      ...
       <navigation-case>
       <from-outcome>cadastrarBO</from-outcome>
       <to-view-id>/view/cadastrarBO.jsp</to-view-id>
       <redirect/>
       </navigation-case>
       <navigation-case>
       <from-outcome>pessoa</from-outcome>
       <to-view-id>/view/cadastrarBO.jsp</to-view-id>
       <redirect/>
       </navigation-case>
      ...
      <managed-bean>
       <managed-bean-name>fato</managed-bean-name>
       <managed-bean-class>vo.FatoVO</managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
       <managed-bean>
       <managed-bean-name>fatoAction</managed-bean-name>
       <managed-bean-class>controller.CadastroBO</managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>