Save dashboard state without reorderListener?

UI Components for JSF
Post Reply
User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

17 Jun 2010, 16:57

Hello Cagatay,

Maybe I have misunderstood your dashboard component. I read in the docu
State
Dashboard is a stateful component, whenever a widget is reordered dashboard model will be updated, by persisting this information, you can easily create a stateful dashboard so for example if your applications allows users to change the layout, next time a user logs in you can present the dashboard layout based on the preferences of user.
But I have just found reorderListener. This listener is invoked everytime after each reordering. This is not passable for me. I would like to have a button so that user reorders, reorders, ... items many times and then at the end pushes this button and the DashboardModel gets updated. Is it possible to have a command button with "process" attribute pointed to the dashboard component so that DashboardModel will be updated after press this button?

Actually, this is a quite normally requirement.

Thanks in advance.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

17 Jun 2010, 17:58

Eh... I see you don't have that. That means, I have to extend your component again. :-)

What do you think, can I use serialize method for sortable items? http://docs.jquery.com/UI/Sortable#method-serialize. The idea is to pass all reordered IDs (saved before in a hidden field), update DashboardModel and queues a new DashboardActionEvent for a new actionListener (missing at the moment).

P.S. The next extension would be dynamically panels. This is not a problem, I already done something like for breadcrumb.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests