Find JSRs
Submit this Search


Ad Banner
 
 
 
 

JSR 329 Portlet 2 Bridge for JSF Specification -=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=-

*** SECTION 2.6.2 PORTLET SERVED RESOURCES ***

Replace "If the request is for a non-JSF resource"

... with "If automatic resource dispatching is enabled and the request is for a non-JSF resource"

-=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=-

*** SECTION 4.2.5 REQUEST PROCESSING ***

Replace "A nonFaces view target is recognized if the request contains the parameter _jsfBridgeNonFacesView."

... with "A non-Faces view target is recognized if automatic non-Faces view dispatching is enabled and the request contains the parameter _jsfBridgeNonFacesView."

Also Replace "It then uses a portlet RequestDispatcher to dispatch(include) the nonFaces target."

... with the following:

It then uses a portlet RequestDispatcher to dispatch(include) the nonFaces target. Automatic non-Faces view dispatching is enabled if the portlet developer has specified the following init-param in the portlet.xml descriptor:

<init-param>
<name>javax.portlet.faces.automaticNonFacesViewDispatching</name>
<value>true</value>
</init-param>

-=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=-

*** SECTION 5.2.7 EXECUTING A PORTLET RESOURCE REQUEST ***

Replace "If the request targets a non-Faces resource, acquire a portlet RequestDispatcher and use forward() to render the resource"

... with the following:

If automatic resource dispatching is enabled and the request targets a non-Faces resource, acquire a portlet RequestDispatcher and use forward() to render the resource. Bridge implementations may optionally perform security checks before acquiring the RequestDispatcher. Automatic resource dispatching is enabled if the portlet developer has specified the following init-param in the portlet.xml descriptor:

<init-param>
<name>javax.portlet.automaticResourceDispatching</name>
<value>true</value>
</init-param>

-=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=-

*** CHAPTER 4 TESTS ***

Replace "A nonFaces view target is recognized if the request contains the parameter _jsfBridgeNonFacesView."

... with "A non-Faces view target is recognized if automatic non-Faces view dispatching is enabled the request contains the parameter _jsfBridgeNonFacesView."

-=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=-

*** CHAPTER 5 TESTS ***

Replace "If the request targets a non-Faces resource, acquire a portlet RequestDispatcher"

... with "If automatic resource dispatching is enabled and the request targets a non-Faces resource, acquire a portlet RequestDispatcher"

-=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=--=-=-=-=-=-

*** BRIDGE API ***

The GenericFacesPortlet.doDispatch(RenderRequest,RenderResponse) method would need to be modified in order to check for the new "javax.portlet.faces.automaticNonFacesViewDispatching" init-param.