This is the approach advocated by portlets too, in each portlet you have two methods :


  | * action(ActionRequest req, ActionResponse resp)
  | * render(RenderRequest req, RenderResponse resp)
  | 

action(...) is first called and then render is called. this is where you can hook the 
controller and then let the render dispatch to the appropriate view.

My idea is to extend the portlet interfaces to be able to convert nukes modules and 
blocks to that extended portlet.

The spec defines well some points that are missing or not in the good shape into nukes 
today :


  | * modules and blocks will fusion into the portlet
  | * the difference knowledge/operational is defined by the fact that you deploy a 
portlet and then add portlet instances and then add portlet windows.
  | * generic portlet preferences
  | * URL management
  | 

Nukes is a specialized portlet container that extends it. There are mainly two 
pluggable layers :


  | *  The user state layer : this manages the user state at different levels : window 
mode, portlet mode and portlet preferences
  | *  The instance layer : when you deploy a portlet that creates a Portlet object 
but it is not usable yet. This is where the instance layer plays a role. It is 
responsible to manage different instances.
  | 

Then the portlet container use these two layers to invoke the existing portlets and 
produce a result. The result is then passed to the theme that creates the HTML result.

So now, we don't want big changes in the current code. I still have some parts of the 
spec to implement. Then I will start to rebuild the infrastructure on top of that. 
I'll keep you informed of the changes, as soon as I have something I'll commit in the 
CVS. For those who wants to get a snapshot of my dev tree I can send it.

I don't think it will be difficult to migrate the current modules to the new format.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829441#3829441

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829441


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to