use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.
the class AbstractAuditViewBean method handleTblSubConfigHrefNameRequest.
/**
* Called on request from the UI to edit an event handler.
*
* @param event Request Invocation Event.
*/
@SuppressWarnings("unused")
public void handleTblSubConfigHrefNameRequest(RequestInvocationEvent event) {
String auditHandler = (String) getDisplayFieldValue(TBL_SUB_CONFIG_HREF_NAME);
setPageSessionAttribute(AUDIT_HANDLER_NAME, auditHandler);
setPageSessionAttribute(SERVICE_NAME, serviceName);
setPageSessionAttribute(PG_SESSION_PROFILE_VIEWBEANS, (Serializable) singletonList(viewBeanPath));
ViewBean vb = getEditViewBean();
unlockPageTrail();
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.
the class AbstractAuditViewBean method handleButton3Request.
/**
* Called on request from the UI to return to the previous page.
*
* @param event Request Invocation Event.
*/
@SuppressWarnings("unused")
public void handleButton3Request(RequestInvocationEvent event) {
backTrail();
try {
String name = (String) getPageSessionAttribute(SAVE_VB_NAME);
ViewBean vb = getViewBean(Class.forName(name));
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
} catch (ClassNotFoundException e) {
debug.warning("AbstractAuditViewBean.handleButton3Request:", e);
}
}
use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.
the class CoreAttributesViewBean method handleButton3Request.
/**
* Handles cancel request.
*
* @param event Request invocation event.
*/
public void handleButton3Request(RequestInvocationEvent event) throws ModelControlException {
backTrail();
ViewBean vb = (AuthPropertiesViewBean) getViewBean(AuthPropertiesViewBean.class);
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.
the class PWResetServlet method onPageSessionDeserializationException.
@Override
protected void onPageSessionDeserializationException(RequestContext requestContext, ViewBean viewBean, Exception e) throws ServletException, IOException {
ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
ViewBean targetView = viewBeanManager.getViewBean(PWResetInvalidURLViewBean.class);
targetView.forwardTo(requestContext);
throw new CompleteRequestException();
}
use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.
the class PWResetServlet method onUncaughtException.
/**
* Forwards to uncaught exception view bean, to respond to uncaught
* application error messages.
*
* @param requestContext request context
* @param e Exception that was not handled by the application.
* @throws ServletException
* @throws IOException
*/
protected void onUncaughtException(RequestContext requestContext, Exception e) throws ServletException, IOException {
PWResetModelImpl.debug.error("PWResetServlet.onUncaughtException", e);
ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
ViewBean targetView = viewBeanManager.getViewBean(PWResetUncaughtExceptionViewBean.class);
targetView.forwardTo(requestContext);
throw new CompleteRequestException();
}
Aggregations