I am trying to create a page that has a set of rich panels on in it. The user should be able to re-arrange these panels on the page by dragging them around. The panels contain facelet fragments that are written separately, like google widgets.
My problem is how do I create a facelet layout that uses a backing bean as a layout model, i.e. the position of the panels is stored in a backing bean.
Another idea, is to some how programatically create instance of the panels and insert them into the view. Is it possible to instantiate a rich panel with its content from xhtml file programatically?
Any ideas on how to do this would be much appreciated. Thanks.