p:dialog use as 'window'

UI Components for JSF
Post Reply
bchammer
Posts: 4
Joined: 21 Aug 2011, 07:53

22 Aug 2011, 06:14

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!

bchammer
Posts: 4
Joined: 21 Aug 2011, 07:53

24 Aug 2011, 02:00

bump

smallya
Posts: 264
Joined: 19 Mar 2010, 19:22
Contact:

24 Aug 2011, 04:51

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.
Netbeans 7.2| GlassFish 3.2 | PostgreSQL 9.1| MongoDB | Primefaces 3.4.2
_______________________________________________________________
Subraya Mallya
http://tinyhabit.com |http://twitter.com/tinyhabit

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests