<p:commandButton actionListener="..." oncomplete="//some function that clicks Button2"/>
<p:commandButton id="Button2" actionListener="..." update="dialogBox" oncomplete="showDialogBox()"/>
I am doing this because i am changing the "dialogBox" update dynamically....
Its not working...The dialogBox gets showed but it doesnot gets updated...
I debugged it..the actionlistener is getting called...and on its complete, the showDialogBox() is getting called..
update problem
-
- Posts: 16
- Joined: 14 Jan 2011, 09:27
I am updating a <h:panelGroup id="..." layout="block"> within p:dialog...So I am not having a problem with it.
And why p:dialog does not works after updating? I was facing this issue also in past month..
Currently I am facing only update issue..
And why p:dialog does not works after updating? I was facing this issue also in past month..
Currently I am facing only update issue..
-
- Posts: 90
- Joined: 19 Dec 2010, 17:08
I am having similar problems. Did you find the solution?
-
- Posts: 90
- Joined: 19 Dec 2010, 17:08
interesting.... was that just a luck shoot ? or there is a logical reason ?
note that form and dialogs are naming containers.. their children gets there id prepended..
in forms you can deactivate that.. in dialogs there is no option for that..
so updating a contentwrapper of a dialog has to look like this:
update="dialogID:contentwrapperID"
in forms you can deactivate that.. in dialogs there is no option for that..
so updating a contentwrapper of a dialog has to look like this:
update="dialogID:contentwrapperID"
PrimeFaces 3.2
Mojarra 2.0.2
Glassfish 3.0.1
Mojarra 2.0.2
Glassfish 3.0.1
-
- Posts: 16
- Joined: 14 Jan 2011, 09:27
if the start of listener is because of a non-actionListener based component which clicks the command button(not commandButton1), the Listener of commandButton2 is fired properly..
As per my experience , the thing has nothing to do with prependId...(Please correct me if i am wrong)
In my case, i want to invoke it on click of TreeNode..which implements actionSource...(means a action listener)..
the thing fails in such condition...
As per my experience , the thing has nothing to do with prependId...(Please correct me if i am wrong)
In my case, i want to invoke it on click of TreeNode..which implements actionSource...(means a action listener)..
the thing fails in such condition...
-
- Information
-
Who is online
Users browsing this forum: No registered users and 31 guests