Page 1 of 1

p:commandButton suddenly stopped working across the app

Posted: 04 Aug 2010, 20:52
by smallya
Hi
I had used p:commandButton across lots of pages in my application and it was working just great. Then suddenly midway through last week one p:commandButton stopped doing form submit. The method specified in action was not being invoked. I changed it to h:commandButton and things seem to work fine with the loss of (ajax) update attribute.

I saw no error messages in the log when the p:commandButton form submit was done to tell me something is going wrong. It was dying a silent death. Now today I started getting that issue in p:menuButton - no form submit and no error.

In the interest of time I left it to be diagnosed later. Now I find across my application all p:commandButtons do not seem to work. I am on the latest 2.2 RC1 drop 70. Has anyone else run into this issue?

I have banged my head on this for two days with no luck. Appreciate any insights.

Re: p:commandButton suddenly stopped working across the app

Posted: 04 Aug 2010, 20:55
by cagatay.civici
You are using a unstable snapshot of 2.2.

Re: p:commandButton suddenly stopped working across the app

Posted: 04 Aug 2010, 21:05
by smallya
Cagatay
Thanks for the pointer
I was PrimeFaces 2.1 when this problem first came so I upgraded to see if things might have changed with JSF 2.0 API migration that you guys were doing.

Re: p:commandButton suddenly stopped working across the app

Posted: 04 Aug 2010, 22:41
by cagatay.civici
If this mystery happened when using 2.1 then I have no explanation :)

Re: p:commandButton suddenly stopped working across the app

Posted: 05 Aug 2010, 02:35
by timotius_pamungkas
same thing occurs to my app. I don't know the pattern, but it seems occur for button on container like wizard, during unsuccessful ajax submit (e.g. due to some input componet ge h:validateLongRange).

Re: p:commandButton suddenly stopped working across the app

Posted: 05 Aug 2010, 12:55
by cagatay.civici
If you can come up with a scenario we'll try to replicate to find out the issue.