Ajax command button

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

12 Jul 2011, 15:13

<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.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

12 Jul 2011, 17:33

To help you debug you can use the FireBug plugin to FireFox and see what requests and responses are looking like.

Also, you might try taking rendered out of the equation (i.e. remove that attribute from anything that is a parent of the p:commandButton). See http://primefaces.prime.com.tr/forum/vi ... =3&t=13269

varunagrawal
Posts: 36
Joined: 12 Aug 2010, 15:49

28 Jul 2011, 16:00

I solved it.
Just had 2 forms in that page. I think nested forms was the problem.

thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests