| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DefaultViewSelector
Imlementations of this interface allow a JSF application to specify which
 JSF view will be selected when the incoming request does not provide a View
 Id.  The implementation can optionally return null to revert to
 the default View Id specified in portlet.xml.
| Method Summary | |
|---|---|
|  java.lang.String | selectViewId(javax.portlet.RenderRequest request,
             javax.portlet.RenderResponse response)This method allows a JSF application to specify which JSF view will be when the incoming request does not provide a view id. | 
|  void | setPortletContext(javax.portlet.PortletContext portletContext)This method will be called by the MyFacesGenericPortlet in order to give the selector an opportunity to store a reference to the PortletContext. | 
| Method Detail | 
|---|
void setPortletContext(javax.portlet.PortletContext portletContext)
java.lang.String selectViewId(javax.portlet.RenderRequest request,
                              javax.portlet.RenderResponse response)
                              throws javax.portlet.PortletException
request - The RenderRequestresponse - The RenderResponse
null if the selector wishes to
         revert to the default View Id specified in portlet.xml.
javax.portlet.PortletException - if a View Id can not be determined because of
                          some underlying error.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||