From: yxyang <nu...@jb...> - 2005-07-28 08:25:25
|
Hi When i read ./portlet/src/main/org/jboss/portal/portlet/PortletController.java source code in the jbp2.2 head, i have a question about the following quoted code. To handle a ServerInvocation, the first thing is to call protected void process(ServerInvocation invocation, PortalProvider portalProvider). I think this will call processAction of the target portlet. Is this correct? After this, when render() is called, why does the getRenderList() include all web components? It is expected (my thinking) that only the components belong to the target page should be included, isn't it? Or i missed something else? thanks Yang anonymous wrote : | | protected Collection getRenderList(ServerInvocation invocation) | { | ArrayList list = new ArrayList(); | ServerRequest req = invocation.getRequest(); | Server server = req.getServer(); | ContainerRegistry containerRegistry = server.getContainerRegistry(); | for (Iterator i = containerRegistry.getContainers().iterator();i.hasNext();) | { | Container container = (Container)i.next(); | if (container instanceof WebApp) | { | WebApp webApp = (WebApp)container; | for (Iterator j = webApp.getComponents().iterator();j.hasNext();) | { | Component component = (Component)j.next(); | list.add(component); | } | } | } | return list; | } | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887005#3887005 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887005 |