| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.ClosingUIBean com.opensymphony.webwork.components.RemoteCallUIBean com.opensymphony.webwork.components.Div
All known Subclasses: com.opensymphony.webwork.components.Panel,
Div | public class Div extends RemoteCallUIBean (Code) | |
The div tag is primarily an AJAX tag, providing a remote call from the current page to update a section
of content without having to refresh the entire page.
It creates a HTML <DIV /> that obtains it's content via a remote XMLHttpRequest call
via the dojo framework.
If a "listenTopics" is supplied, it will listen to that topic and refresh it's content when any message
is received.
Important: Be sure to setup the page containing this tag to be Configured for AJAX
Examples
<ww:div ... />
author: Ian Roughley author: Rene Gielen version: $Revision: 2788 $ since: 2.2 |
COMPONENT_NAME | final public static String COMPONENT_NAME(Code) | | |
TEMPLATE_CLOSE | final public static String TEMPLATE_CLOSE(Code) | | |
evaluateExtraParams | public void evaluateExtraParams()(Code) | | |
getDefaultOpenTemplate | public String getDefaultOpenTemplate()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
setDelay | public void setDelay(String delay)(Code) | | How long to wait before fetching the content (in milliseconds)
|
setListenTopics | public void setListenTopics(String listenTopics)(Code) | | Topic name to listen to (comma delimited), that will cause the DIV's content to be re-fetched
|
setLoadingText | public void setLoadingText(String loadingText)(Code) | | The text to display to the user while the new content is being fetched (especially good if the content will take awhile)
|
setUpdateFreq | public void setUpdateFreq(String updateFreq)(Code) | | How often to re-fetch the content (in milliseconds)
|
Methods inherited from com.opensymphony.webwork.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean escapeXml)(Code)(Java Doc) protected String determineNamespace(String namespace, OgnlValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected WebWorkException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public OgnlValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|