ControlContext
This is a context to support simple JSP portlets with or without backing files. You can use this class directly from a JSP.
All the setter methods in this class should only be called during
the handlePostbackData method of the backing file.
The framework acts on the changes after completion of this method.
Object
ControlContext
JspContentContext
Serializable
Field Summary |
protected static final |
|
public static final |
|
public static final |
|
public static final |
|
Fields from com.bea.netuix.servlets.controls. |
debug |
Constructor Summary |
|
|
Method Summary |
public |
|
public |
|
public |
|
public static |
|
public |
|
protected |
|
public void |
|
public final void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
Methods from com.bea.netuix.servlets.controls. |
getContextFromRequest, getContextKey, getControl, getRequestKey, getUniqueId, removeContextFromRequest, setContextInRequest |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String CLASS_NAME
public static final String CONTENT_CHANGE
public static final String CONTROL_PARAM
public static final String EVENT_PARAM
Constructor Detail |
public JspContentContext()
Constructs JspContentContext
public JspContentContext(UIControl control)
Constructs JspContentContext
Method Detail |
publicPostbackURLgetBaseUrl(HttpServletRequestrequest,HttpServletResponseresponse,Stringevent)
Returns a URL that can be used to submit requests.
publicPostbackURLgetBaseUrl(HttpServletRequestrequest,HttpServletResponseresponse,Stringparam,Stringevent)
Returns a URL that can be used to submit requests.
public String getContentUri()
Returns the current URI of the content JSP, if non-null. If the URI has been set to null, returns the original URI as set when this object was initialized.
public staticJspContentContextgetJspContentContext(HttpServletRequestrequest)
Retrieves this context from the request
public Locale getResolvedLocale()
Sets the Locale used when resolving the current URI
protected String getSendRedirectPath()
Returns the redirect path if set.
public void sendRedirect(String path)
Redirects the client to the given path. The path set should follow the same
rules that apply to the sendRedirect method in
javax.servlet.http.HttpServletResponse. This method should only be called
during postback. Note that the actual redirect happens after executing the
handlePostbackData method on the backing file.
public final void setActivePage(String pageLabel)
Changes the active page. Should be called only during postback.
public void setContentUri(String contentUri)
Sets the URI of the content JSP.
public void setJspContentContextInRequest(HttpServletRequest request)
Sets this context in the request.
public void setResolvedLocale(Locale locale)
Sets the Locale used when resolving the current URI
public void setupModeChangeEvent(WindowMode modeValue)
Sets up a mode change event. Should be called only during postback
public void setupStateChangeEvent(WindowState stateValue)
Sets up a state change event. Should be called only during postback