Ajax command button not working

UI Components for JSF
Post Reply
varunagrawal
Posts: 36
Joined: 12 Aug 2010, 15:49

29 Jun 2011, 16:35

<p:panel id="mypanel">
<p:commandButton value="Home" update="home,mypanel,eexp" actionListener="#{WebsiteController.setRendered('home')}" >
</p:commandButton>
<br></br>
<p:outputPanel id="home">
<p:editor value="#{WebsiteController.corpwebsite.home}" width="800" height="400" id="eexp" rendered="#{WebsiteController.rendered.equals('home')}" > </p:editor>
</p:outputPanel>
</p:panel>

The above is the code. Everything works fine if I add ajax=false in the command button. However I wish to do an ajax update which does not fire any event on the server side.

I use primefaces 2.2.1 and glassfish 2.1 , jsf 2.0.
- I have tried action instead of actionListner but does not help.
- I have tried using prependId="false" but does not help.
- I have tried using ajax='true' but does not help.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 40 guests