/** * Set a context value. (e.g. UI properties for sub views.) * Try to avoid any application (vs view/ui) logic. * @param key to set * @param value to set */ public void set(String key, String value) { moreParams().put(key, value); }
/** * Set a context value. (e.g. UI properties for sub views.) * Try to avoid any application (vs view/ui) logic. * @param key to set * @param value to set */ public void set(String key, String value) { moreParams().put(key, value); }
/** * Set a context value. (e.g. UI properties for sub views.) * Try to avoid any application (vs view/ui) logic. * @param key to set * @param value to set */ public void set(String key, String value) { moreParams().put(key, value); }
/** * Lookup a value from the current context. * @param key to lookup * @param defaultValue if key is missing * @return the value of the key or the default value */ public String $(String key, String defaultValue) { // moreParams take precedence String value = moreParams().get(key); if (value == null) { value = request().getParameter(key); } return value == null ? defaultValue : value; }
/** * Lookup a value from the current context. * @param key to lookup * @param defaultValue if key is missing * @return the value of the key or the default value */ public String $(String key, String defaultValue) { // moreParams take precedence String value = moreParams().get(key); if (value == null) { value = request().getParameter(key); } return value == null ? defaultValue : value; }
/** * Lookup a value from the current context. * @param key to lookup * @param defaultValue if key is missing * @return the value of the key or the default value */ public String $(String key, String defaultValue) { // moreParams take precedence String value = moreParams().get(key); if (value == null) { value = request().getParameter(key); } return value == null ? defaultValue : value; }