This content has been marked as final.
Show 2 replies
-
1. Re: Where can I get Seam2 ,ajax4jsf demo
visumagic Nov 11, 2008 2:59 PM (in response to 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 Nov 11, 2008 5:24 PM (in response to visumagic)working fine
.. i did a unkown mistake , the action method should be non-polymorphic functionthanks
raghu