Search in sources :

Example 21 with ViewBean

use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.

the class ConsoleServletBase method onRequestHandlerNotSpecified.

/**
     * Forwards to invalid URL view bean, in case of no handler specified
     *
     * @param requestContext - request context
     * @throws ServletException
     */
protected void onRequestHandlerNotSpecified(RequestContext requestContext) throws ServletException {
    ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
    ViewBean targetView = viewBeanManager.getViewBean(AMInvalidURLViewBean.class);
    targetView.forwardTo(requestContext);
    throw new CompleteRequestException();
}
Also used : CompleteRequestException(com.iplanet.jato.CompleteRequestException) ViewBeanManager(com.iplanet.jato.ViewBeanManager) ViewBean(com.iplanet.jato.view.ViewBean)

Aggregations

ViewBean (com.iplanet.jato.view.ViewBean)21 CompleteRequestException (com.iplanet.jato.CompleteRequestException)7 ViewBeanManager (com.iplanet.jato.ViewBeanManager)6 AuthViewBeanBase (com.sun.identity.authentication.UI.AuthViewBeanBase)3 NonSyncStringBuffer (com.iplanet.jato.util.NonSyncStringBuffer)2 ContainerView (com.iplanet.jato.view.ContainerView)2 View (com.iplanet.jato.view.View)2 AMPropertySheetModel (com.sun.identity.console.base.model.AMPropertySheetModel)2 Iterator (java.util.Iterator)2 AMPostViewBean (com.sun.identity.console.base.AMPostViewBean)1 AMPrimaryMastHeadViewBean (com.sun.identity.console.base.AMPrimaryMastHeadViewBean)1 ServicesViewBean (com.sun.identity.console.realm.ServicesViewBean)1 CCMapList (com.sun.identity.console.ui.view.CCMapList)1 CCOrderedList (com.sun.identity.console.ui.view.CCOrderedList)1 CCUnOrderedList (com.sun.identity.console.ui.view.CCUnOrderedList)1 CCAddRemove (com.sun.web.ui.view.addremove.CCAddRemove)1 CCEditableList (com.sun.web.ui.view.editablelist.CCEditableList)1 CCRadioButton (com.sun.web.ui.view.html.CCRadioButton)1 CCActionTable (com.sun.web.ui.view.table.CCActionTable)1 HashMap (java.util.HashMap)1