could you give an example please ?
A new user logs on to the system.
Based on the settings the user entered a portal is created.
For instance the user is asked how many news portlets he wants on the screen.
The user is able to design it's own portal based on the instances of portlets that are created.
To help him a template is available which gives for every general type of user a portal (*-object.xml).
After filling in the questions the portal should be created with the preferences the user has entered.
Also the constrains are entered into the page for every instance. So the user is able to setup user rights for other users/roles.
Even in cases where I don't have enough instance, I should be able to create a new instance of a portlet (newportlet-instances.xml or extending the existing *-instances.xml)
I'm using dojo to move the portlets around on the client and make them resizeable (FloatPane).
With the servlet that you helped me with I can save the position of the window (as preference of the portlet instance, every portlet instance is tied to one page for a user).
I'm have created my own layout style that injects the type of window I want passed on the position/area on the screen (also dojo based).
To communicate with the server from out of the window I'm using RPC
(also dojo based). With this communication I can remove or add portlets to a page.
But the page flow stays as is (for the moment). I can even created new pages if needed, so the user can save multiple instances of a page and change some preferences on the new page (newpage-object.xml).
If I could create pages with an xml style I can preserve the information to create a portal in a manor that is portable and according to standards.
I hope it is a bit more clear for you.