I have an application (JSF 2.0 / Primefaces 2.2RC-SNAPSHOT) that has
<p:layout>
I use a lot of the dialog box in my application, and before the new version of the hatching came out, there was no way to display the dialog with the modal over the layout without putting dialogs outside the tags.
So I did just that. The problem I'm facing right now is to notice that when loading my application, constructors and postcontructs are called. This is due to the fact that the image with the layout is loaded, and therefore all my dialogs are loaded.
I do not want these constructors to be called until I deal with the corresponding representations in my application.
I tested the appendToBody attribute on
<p:dialog>
but it seems like it's really buggy. Everything works fine with the initial rendering of the view. I can open a dialog, close it, etc., and it works great. If I switch to another view, and then return to the original view and open the dialog box, everything will work from the page. The dialog box is in the right place, but the content is missing.
My question is: 1. Is there a way that I can have dialog boxes outside my layout as a child
<h:body>
without creating all the associated bean constructors initiated when the application loads?
Or does anyone know how to fix the alignment problem when using the appendToBody tag? Thanks.
source share