public <T extends WOComponent> T pageWithName(Class<T> componentClass) { if (log.isDebugEnabled()) log.debug( "Controller named '" + getClass().getName() + "' which was originally created on " + pageNameThatCreated + "' is creating pageWithName '" + componentClass.getName() + "' while performing action in page '" + ERXWOContext.currentContext() == null ? "Unknown" : ERXWOContext.currentContext().page().name() + "'"); return ERXApplication.erxApplication().pageWithName(componentClass); }
/** * @param nextPage The page that should be returned by {@link #performAction()}. Defaults to the * page in the {@link WOContext} in which this class was created. * @param nextPageResultKey The key in which to set the result in the nextPage */ public ERXNextPageForResultWOAction(WOComponent nextPage, String nextPageResultKey) { // We assume that this class is instantiated in the originating page and so we capture the // current page in context when this class is created and we will use that as the default // nextPage. _nextPage = (nextPage == null ? ERXWOContext.currentContext().page() : nextPage); _nextPageResultKey = nextPageResultKey; }
public ERXAbstractPerformWOAction() { if (log.isDebugEnabled()) { WOContext context = ERXWOContext.currentContext(); pageNameThatCreated = (context == null ? "Unknown" : context.page().name()); log.info( "Controller named '" + getClass().getName() + "' just instantiated in page named '" + pageNameThatCreated + "'"); } }
public WOContext context() { return ERXWOContext.currentContext(); }