UITabContainer question (Book in GateIn)
freak2051 Feb 3, 2011 6:16 AMHi,
I have this situation:
1) There is portal page with one main portlet let’s call it Portlet 1 (Master) and many slave portlets which depend on Portlet 1. On Portlet1 user can search for entities and when selects some one then JSR-286 events are sent to many depending portlets for updating view (usually with id’s or another identification data). Depended portlets are basically just showing different piece of data of main entity. Please see attachment.
1) There is portal page with one main portlet let’s call it Portlet 1 (Master) and many slave portlets which depend on Portlet 1. On Portlet1 user can search for entities and when selects some one then JSR-286 events are sent to many depending portlets for updating view (usually with id’s or another identification data). Depended portlets are basically just showing different piece of data of main entity. Please see the picture at the end.
2) In Gatein I use UITabContainer for holding depended portlets and from UI point of view everything looks like good.
3) But performance is really poor because UITabContainer processes every tab with all portlets every action/render request. I guess this is because switching tabs is happening on client via Javascript so complete container must be processed.
Question:
Can I change this default behaviour for another (sent complete new request after switching tab) ? And how to do it? After this change the performance issue should be gone because only tab what is selected (and shown) is also processed.
Note 1:
I switched from Oracle Portal and there is top component called “Book” for it. And it behaves exactly as I need and it’s most logical. I didn’t realize that can be even different in UITabContainer (or at least should configurable).
Note2:
I can’t use much different approach like pages because you can’t sent events across pages in Gatein and basically I need exactly UITabContainer but with different behavior.
Note3:
I tried some change in UITabContainer.gtml groovy template but I suppose that you can only influence rendering but not processing (all needed logic including portlets) of tabs.
thanks for any ideas.
-
mock.png 51.6 KB