Hi,
I created a jsf page Sample.xhtml. IN sample.xhtml there is one commandLink is there. On clicking the commandLink I'm opening another jsf page dialog.xhtml by using RequestContext.getCurrentInstance().openDialog("diaog",options,null).
While closing the the dialog I've to refresh the Sample.xhtml. Can anybody give solution for this.....
Sudhir K
Primefaces 4.0/JSF 2.1/Java 1.7/Tomcat 7
How to refresh a page on closing a dialog framework.
- snooperman
- Posts: 155
- Joined: 06 Nov 2012, 18:43
Put
in your button that closes the dialog.
Code: Select all
onclick="location.reload();"
var details = {
. . PF.version: "5.0.x",
. . JSF.version: "2.x",
. . Tomcat.version: "8.x"
}
. . PF.version: "5.0.x",
. . JSF.version: "2.x",
. . Tomcat.version: "8.x"
}
Make sure you shouldn't use this callback for commandButton directly.Normally dialog component will have close event to do this job.It looks like dialogReturn event not captured for close actionhttps://code.google.com/p/primefaces/is ... il?id=6278.I think only closable option added.But Try out from your side.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- Information
-
Who is online
Users browsing this forum: No registered users and 44 guests