In the portlet context it is advantageous to just repaint one particular portlet instead of the whole page when interacting with it. However, Pages do not have Ajax-able DOM ids to use, since a Page generally handles the whole HTML page in the non-portlet case. Calling target.addComponent(getPage()) leads to a "normal" repaint of the whole portal page.
Is there a way to tell it to repaint just the body of the Page? Is it possible to use a WebMarkupContainer for the body element and possibly override add()/get() etc. to delegate to that container? Otherwise we can rewrite to use one "portlet page" and use (Ajax-able) panels for what we use pages for today... some portlets already use Panels for state switching already (e.g. portlets using a BreadCrumbBar) so specifying a "regime" for portlet writing here where we have a standard replacable panel container. Med vennlig hilsen TOR IVER WILHELMSEN Senior systemutvikler Arrive AS T (+47) 48 16 06 18 E-post: [email protected] http://www.arrive.no http://servicedesk.arrive.no
