-
15. Re: future directions
pmn92 Feb 21, 2008 11:42 AM (in response to pmn92)If you say so but to my understanding PF is a protocol to refresh portlets without refreshing the entire page. What bothers me is not PF it is the apparent lack of concept for layout, perhaps it is only a lack of explanation.
Julien and you wrote that it is possible to change layout programmatically, could you explain how? It is frustrating to be lead in the dark ... I really tried my best to read PortalNodeEventListener, WindowNavigationEvent and could not find any way of doing this there. -
16. Re: future directions
theute Feb 21, 2008 2:06 PM (in response to pmn92)"PMN" wrote:
Julien and you wrote that it is possible to change layout programmatically, could you explain how? It is frustrating to be lead in the dark ... I really tried my best to read PortalNodeEventListener, WindowNavigationEvent and could not find any way of doing this there.
You should check how the admin portlet does it. If i remember well it's just a portal object property. -
17. Re: future directions
soshah Feb 21, 2008 3:09 PM (in response to pmn92)
If you say so but to my understanding PF is a protocol to refresh portlets without refreshing the entire page. What bothers me is not PF it is the apparent lack of concept for layout, perhaps it is only a lack of explanation.
Presentation Framework is a work in progress even at the concept/design level. Besides providing smart aggreation/partial refresh/otb ajax client, it will deal with the concept of Layout Management and Theme Management
Now the specifics of features/functions to be supported by the Layout Management piece is still on the drawing board and we can definitely draw from the ideas being projected by you/community.
I will start a Design Discussion on the LayoutManagement piece once we are ready to start on the component of the Presentation Framework.
Currently, our focus is on getting the Aggregation piece/other integrations in order.
Hope this is helpful information
Thanks -
18. Re: future directions
pmn92 Feb 23, 2008 1:32 PM (in response to pmn92)It sounds excellent to me, thanks sohil.
Now I like to get an answer from Julien or Thomas as they both say I can change layout for a page and region for a portlet. It needs to be in the PortalNodeEventListener and for the page being displaid.
The classes I get there are PortalNode, PortalRuntimeContext and NavigationalStateContext. PortlaNode has a map of properties and I suppose I could change properties in there, what properties and will it be sufficient?
Changing layout needs a full redraw, changing region may not need a full redraw (as opposed as partial refresh), that's why I have doubts about their answer. -
19. Re: future directions
theute Feb 25, 2008 7:59 AM (in response to pmn92)I thought you meant, switching the layout, like it is done in the admin portlet. (Changing the layout for a page or a portal).
If so you just need to change the "layout.id" property on the page or portal you want to. A full refresh is needed. -
20. Re: future directions
pmn92 Feb 25, 2008 4:41 PM (in response to pmn92)Thanks Thomas, I will try that.
If I can change layout then I can have a workaround to changing region by changing the layout to one of the few layouts I need. Once I have this ability I can use region renderer and other renderers adequately. I will go back to this whenever I have time to redesign my app.
For example, if EDIT mode is used to configure and customize the VIEW mode, in most cases the layout is different.
Layout is really key. Let me try to explain how jbp misses it.
First you can see a grid as a vertical division. Each column have lines and each line in a column can embed a grid as well. Each can be resizeable and with a very simple scheme, column could be resizeable horizontally (changing their width), line vertically (changing their height). In addition of resizing there is also collapse effect with a variant providing vertical accordion or horizontal accordion.
YUI is perfect with grid and resize for layout/region/window, their beta implementation of layout is strange and does not fit well (not the concept just the implementation)
Hope this helps, I 'll revisit my design in a few months. You seem to develop faster than I do anyway.