/** @return the controller that handles the scenario where the user stops a stoppable task */ public IERXPerformWOAction nextPageForCancelController() { if ( _nextPageForCancelController == null ) { // By default, return the originating page _nextPageForCancelController = new ERXNextPageForResultWOAction(_referringPage);; } return _nextPageForCancelController; }
public static void appendScriptHeader(WOResponse response) { ERXResponseRewriter.appendScriptTagOpener(response); }
/** * Calls {@link er.extensions.appserver.ERXResponseRewriter#addScriptCodeInHead(WOResponse, WOContext, String)}. * * @param response * the response to write into * @param context * the context * @param script * the javascript code to insert */ public static void addScriptCodeInHead(WOResponse response, WOContext context, String script) { ERXResponseRewriter.addScriptCodeInHead(response, context, script); }
@Override public void appendToResponse(WOResponse response, WOContext context) { super.appendToResponse(response, context); if(ERXApplication.erxApplication().isDevelopmentMode()) { ERXResponseRewriter.addStylesheetResourceInHead(response, context, "WOLips", "wolips.css"); } }
protected String _containerID(WOContext context) { return ERXWOContext.safeIdentifierName(context, false); }
public static boolean testsEnabled() { boolean isDevMode = ERXApplication.erxApplication().isDevelopmentMode(); return isDevMode || ERXProperties.booleanForKeyWithDefault("SeleniumTestsEnabled", false); }
/** * Calls {@link er.extensions.appserver.ERXResponseRewriter#addStylesheetResourceInHead(WOResponse, WOContext, String, String)} * * @param context * the context * @param response * the response to write into * @param framework * the framework that contains the file * @param fileName * the name of the CSS file to add */ public static void addStylesheetResourceInHead(WOContext context, WOResponse response, String framework, String fileName) { ERXResponseRewriter.addStylesheetResourceInHead(response, context, framework, fileName); }
private WOActionResults html(String url) { return new ERXResponse("<html><body><a href='" + url + "'>go</a><body></html>"); }
public static void appendScriptFooter(WOResponse response) { ERXResponseRewriter.appendScriptTagCloser(response); }
/** * @param context the current WOContext * @return the AjaxModalDialog currently being processed * @throws RuntimeException if no AjaxModalDialog is currently being processed */ public static AjaxModalDialog _currentDialog(WOContext context) { AjaxModalDialog currentDialog = (AjaxModalDialog) ERXWOContext.contextDictionary().objectForKey(AjaxModalDialog.class.getName()); if (currentDialog == null) { currentDialog = (AjaxModalDialog) ERXResponseRewriter.pageUserInfo(context).objectForKey(AjaxModalDialog.class.getName()); } return currentDialog; }
public static void setUpdateContainerID(WORequest request, String updateContainerID) { if (updateContainerID != null) { ERXWOContext.contextDictionary().setObjectForKey(updateContainerID, ERXAjaxApplication.KEY_UPDATE_CONTAINER_ID); } }
public String id(WOComponent component, WOContext context) { String id = null; if (_id != null) { id = (String) _id.valueInComponent(component); } if (id == null) { id = ERXWOContext.safeIdentifierName(context, false); } return id; }
protected WOResponse stringResponse(String s) { return new ERXResponse(s); }
/** * @return the page controller that will be given the result of the long task and * return the next page except for the case where the user stops the task. * * */ public IERXPerformWOActionForResult nextPageForResultController() { if (_nextPageForResultController == null) { _nextPageForResultController = new ERXNextPageForResultWOAction(_referringPage); } //~ if (_nextPageForResultController == null) return _nextPageForResultController; }
public static void setCurrentUpdateContainerID(String updateContainerID) { if (updateContainerID == null) { ERXWOContext.contextDictionary().removeObjectForKey(AjaxUpdateContainer.CURRENT_UPDATE_CONTAINER_ID_KEY); } else { ERXWOContext.contextDictionary().setObjectForKey(updateContainerID, AjaxUpdateContainer.CURRENT_UPDATE_CONTAINER_ID_KEY); } }
public String id(WOComponent component, WOContext context) { String id = null; if (_id != null) { id = (String) _id.valueInComponent(component); } if (id == null) { id = ERXWOContext.safeIdentifierName(context, false); } return id; }
public String id() { String id = _id; if (id == null) { id = (String) valueForBinding("id"); if (id == null) { id = ERXWOContext.safeIdentifierName(context(), true); } _id = id; } return id; }
public String id() { String id = _id; if (id == null) { id = (String) valueForBinding("id"); if (id == null) { id = ERXWOContext.safeIdentifierName(context(), true); } _id = id; } return id; }
public String tabID() { String id = (String) valueForBinding("id"); if (id == null) { id = ERXWOContext.safeIdentifierName(context(), false) + "Tab"; } return id; }
public String id() { if (_id == null) { if (hasBinding("id")) { _id = (String) valueForBinding("id"); } else { _id = ERXWOContext.safeIdentifierName(context(), true); } } return _id; }