hi;
just tried 3.0 because of curiosity. Most of the things seems backward compatible except dialog.
if dialog is placed inside a form and the form is updated, the content of the dialog appears at the end of the page.
I guess its...Too early to report bugs for 3.0....
Thanks primefaces;
Primefaces 3.0 dialog
Dialog has never worked inside a form, it should not (and I see no need for it) to be enclosed in a form. Just put a form inside it instead and make it post with ajax when clicking a button or closing it.
Using PF 3.0 with default JSF implementation of JBoss 6
A dialog can be inside a form. The issue is that neither a dialog nor any of its parent components should be updated, only its content should be updated. For more info see: http://primefaces.prime.com.tr/forum/vi ... 269#p27269
-
- Posts: 51
- Joined: 06 Sep 2010, 23:01
- Location: São Paulo - Brazil
For me, the problem of "duplicated p:dialog" only happened with p:commandButton.
When I used h:commandButton the problem not happened:
hope it helps.
Code: Select all
<p:commandButton action="#{Bean.method}" process="@form" update="@form" />
Code: Select all
<h:commandButton action="#{Bean.method}">
<f:ajax execute="@form" render="@form" />
</h:commandButton>
hope it helps.
Mojarra 2.0.2 (FCS b10)
GlassFish 3.0.1
PrimeFaces 2.2.1
GlassFish 3.0.1
PrimeFaces 2.2.1
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
JSF implementation does not execute all the javascript in partial response whereas PrimeFaces does as it is more powerful in this particular case based on jquery. So dialog is recreated.
In summary, do not update dialogs directly or their containers, just update their contents.
Ajax with JSF is very easy I know, but there are best practices. Would you recreate all the widgets if you were using a javascript library like vanilla jQuery UI without JSF. No right? Same applies here.
In summary, do not update dialogs directly or their containers, just update their contents.
Ajax with JSF is very easy I know, but there are best practices. Would you recreate all the widgets if you were using a javascript library like vanilla jQuery UI without JSF. No right? Same applies here.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 57 guests