Page 1 of 1

p:dialog use as 'window'

Posted: 22 Aug 2011, 06:14
by bchammer
I want to create a web app that allows the user to enable/disable and position and size different widgets on the screen.
Think of different windows on Windows 7 for instance.
This way the user can chose what she wants to see and where it's placed.

1) is p:dialog the right way to go? I am new to primefaces so there may be a best practice that I am not aware of yet.
2) How can i 'remember' the state? One goal would be that if the user logs off all the windows (p:dialog) that are shown will be remembered (their position and size) so that if the user logs on the next time he sees exactly the same layout.

How can this be achieved?
Thanks!

Re: p:dialog use as 'window'

Posted: 24 Aug 2011, 02:00
by bchammer
bump

Re: p:dialog use as 'window'

Posted: 24 Aug 2011, 04:51
by smallya
Have you tried the dashboard widget? It allows you to tailor what you want to see etc. http://www.primefaces.org/showcase-labs ... hboard.jsf
As for size you can embed panels inside each of the dashboard columns and allow user to size the panels.

Dashboard does allow you to maintain state. You will have to code some of the callbacks.

Not sure we are talking about the same thing.