2 Replies Latest reply on Nov 11, 2008 5:24 PM by visumagic

    Where can I  get Seam2 ,ajax4jsf demo

    visumagic

      Hi
      I'm exploring seam2 and ajax4jsf.plz let me know where I can get demo war for this


      thanks
      raghu

        • 1. Re: Where can I  get Seam2 ,ajax4jsf demo
          visumagic

          I'm trying one example bu following jpa seam sample application.


          Here I have a xhtml with
             


          <h:inputText value="aa" >
           <a:support event="onkeyup" actionListener="#{CollegeProfile.inc}" reRender="searchResults"/>
          </h:inputText>
            <a:commandButton id="inc" value="Find Hotels" action="#{CollegeProfile.inc}" reRender="searchResults"/>
          ..
          
          <a:outputPanel id="searchResults">
          
          <h:outputText id="rp2" value="#{CollegeProfile.i}" />
          </a:outputPanel>



          CollegeProfile


          int i;
                  public int getI() {
                          return i;
                  }
          
                  public void setI(int i) {
                          this.i = i;
                  }
          
                  public void inc(){
                          i++;
                  }



          As expected searchResults element should re-render when ever i click on a:button , but it's not working for me ..


          plz suggest me , is there any thing i need to to do other than this code ..


          thanks
          raghu

          • 2. Re: Where can I  get Seam2 ,ajax4jsf demo
            visumagic

            working fine
            .. i did a unkown mistake , the action method should be non-polymorphic function


            thanks
            raghu