2 Replies Latest reply on Jun 25, 2009 10:42 AM by prerit bhargava

    problem in RichFaces

    prerit bhargava Newbie
      i am trying to put 2 separate buttons in two different panels.
      Q1.  Is this possible?
      Q2. If yes.....i'm putting my code.Can somebody pls lemme know wat the problem is??
          I'm trying to figure out the problem myself but its not helping!!!
      wen i try my code....two panels r created but the first button is missing!!!
      Pls Help!!!
      Thanks!!!

      home.xhtml

      <!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:s="http://jboss.com/products/seam/taglib"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:rich="http://richfaces.org/rich"
          xmlns:a4j="http://richfaces.org/a4j"
          template="layout/template.xhtml">

          <ui:define name="body">

      <h:form id="form1">
             
              <rich:panel>
              <f:facet name="prerit">Welcome to Seam!</f:facet>
              <div class="division1">
             
            
                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                                  <a4j:commandButton id="asd" binding="#{test.butt}" reRender="asd" value="qaz" action="#{test.hell}"/>                      
                  </h:panelGrid>
            </div>
                  </rich:panel>
           
                 
                  <rich:panel>
                  <div class="foofoo">
                 <h:panelGrid columns="4" style=" width : 67px; height : 23px;">
                                  <a4j:commandButton id="asd1" binding="#{test.butt}" reRender="asd1" value="qaz1" action="#{test.hell}"/>                      
                       </h:panelGrid>
                 
                  </div>
                 
                  </rich:panel>
                
              </h:form>  
          </ui:define>
      </ui:composition>

      "hell" is the function in the class test which prints "in hello" on the console.
      "butt" is the HtmlAjaxCommandButton variable.