Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes commandButton not invoking action first time form submitted with multiple tabs in p:tabView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "commandButton not invoking action first time form submitted with multiple tabs in p:tabView" Watch "commandButton not invoking action first time form submitted with multiple tabs in p:tabView" New topic
Author

commandButton not invoking action first time form submitted with multiple tabs in p:tabView

Zainab Haf
Greenhorn

Joined: Sep 17, 2012
Posts: 11
Hi,
I am facing a problem in p:tabView with dynamic="true" which i am stuck in for days.
i have three tabs each having separate form and p:fileUpload with command button for submitting the form and uploaded file
The problem is my first form or tab works fine..but the other two are not working or firing command button action at all instead it refreshes the page. They are invoked only when second time form filled and button pressed.
and to add one thing more the fileUploadListener even works fine in all these tabs but the command button wont work or fire action method the first time for other two tabs:

Is there something wrong with this primefaces tag(i m using latest version of primefaces 3.5 also) or i am mistaking or missing something?? any kind of guidance will be helpful.

Here is the page code which is included in another main page:



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: commandButton not invoking action first time form submitted with multiple tabs in p:tabView
 
Similar Threads
JSF : commandButton in dynamically loaded <ui:include> page doesn't work
prependId doesn't work properly
Action Event
problem in using richfaces
Cant get my datatable to update [PRIMEFACES]