1 Reply Latest reply on Mar 15, 2011 8:34 PM by Rocky S

    RichFaces 4.0.0cr1 Problems

    Mohammad Weshah Novice

      this code is not working on richfaces 4 but it works on 3.3.3 (JSF 2) ,when i press the button nothing displyed or rerendered .

       

      <?xml version='1.0' encoding='UTF-8' ?>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

            xmlns:h="http://java.sun.com/jsf/html"

            xmlns:a4j="http://richfaces.org/a4j"

            xmlns:rich="http://richfaces.org/rich"

            xmlns:f="http://java.sun.com/jsf/core">

            <f:view>

          <h:head>

              <title>Facelet Title</title>

          </h:head>

          <h:body>

           <h:form >

                  <rich:panel header="RichFaces Greeter" style="width: 315px">

                      <h:outputText value="Your name: " />

                      <h:inputText value="#{user.name}">

                          <f:validateLength minimum="1" maximum="30" />

                      </h:inputText>

       

       

                        <a4j:commandButton value="Get greeting"  reRender="greeting" />

       

                      <h:panelGroup id="greeting">

                          <h:outputText value="Hello, " rendered="#{not empty user.name}" />

                          <h:outputText value="#{user.name}" />

                          <h:outputText value="!" rendered="#{not empty user.name}" />

                      </h:panelGroup>

       

              </rich:panel>

       

              </h:form>

       

          </h:body>

          </f:view>

      </html>