net.ontopia.topicmaps.webed.utils
Class WebEdUtils

java.lang.Object
  extended by net.ontopia.topicmaps.webed.utils.WebEdUtils

public class WebEdUtils
extends java.lang.Object

PUBLIC: Utility methods useful for writing web editor framework applications.

Since:
2.0

Constructor Summary
WebEdUtils()
           
 
Method Summary
static java.lang.String registerData(javax.servlet.jsp.PageContext pageContext, java.lang.String action_name, java.lang.String group_name, java.util.List paramlist)
          PUBLIC: Binds the parameters to the specified action in the given action group and returns the HTML form control name to be used to invoke the action with the given parameters.
static java.lang.String registerData(javax.servlet.jsp.PageContext pageContext, java.lang.String action_name, java.lang.String group_name, java.util.List paramlist, java.util.List sub_actions)
          PUBLIC: Binds the parameters to the specified action in the given action group and returns the HTML form control name to be used to invoke the action with the given parameters.
static java.lang.String registerData(javax.servlet.jsp.PageContext pageContext, java.lang.String action_name, java.lang.String group_name, java.util.List paramlist, java.util.Set curvalue)
          PUBLIC: Binds the parameters to the specified action in the given action group and returns the HTML form control name to be used to invoke the action with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebEdUtils

public WebEdUtils()
Method Detail

registerData

public static java.lang.String registerData(javax.servlet.jsp.PageContext pageContext,
                                            java.lang.String action_name,
                                            java.lang.String group_name,
                                            java.util.List paramlist)
                                     throws javax.servlet.jsp.JspTagException
PUBLIC: Binds the parameters to the specified action in the given action group and returns the HTML form control name to be used to invoke the action with the given parameters.

Parameters:
pageContext - The page context.
action_name - The name of the action to bind to (same as the -action- attribute on the JSP tags).
group_name - The name of the action group the action belongs to (same as the -actiongroup- attribute on the form tag).
paramlist - The parameters to the action. A list of navigator variable names.
Throws:
javax.servlet.jsp.JspTagException

registerData

public static java.lang.String registerData(javax.servlet.jsp.PageContext pageContext,
                                            java.lang.String action_name,
                                            java.lang.String group_name,
                                            java.util.List paramlist,
                                            java.util.Set curvalue)
                                     throws javax.servlet.jsp.JspTagException
PUBLIC: Binds the parameters to the specified action in the given action group and returns the HTML form control name to be used to invoke the action with the given parameters.

Parameters:
pageContext - The page context.
action_name - The name of the action to bind to (same as the -action- attribute on the JSP tags).
group_name - The name of the action group the action belongs to (same as the -actiongroup- attribute on the form tag).
paramlist - The parameters to the action. A list of navigator variable names.
curvalue - The current value of the form control. (Warning: getting this value right can be tricky.)
Throws:
javax.servlet.jsp.JspTagException
Since:
2.0.3

registerData

public static java.lang.String registerData(javax.servlet.jsp.PageContext pageContext,
                                            java.lang.String action_name,
                                            java.lang.String group_name,
                                            java.util.List paramlist,
                                            java.util.List sub_actions)
                                     throws javax.servlet.jsp.JspTagException
PUBLIC: Binds the parameters to the specified action in the given action group and returns the HTML form control name to be used to invoke the action with the given parameters.

Parameters:
pageContext - The page context.
action_name - The name of the action to bind to (same as the -action- attribute on the JSP tags).
group_name - The name of the action group the action belongs to (same as the -actiongroup- attribute on the form tag).
paramlist - The parameters to the action. A list of navigator variable names.
sub_actions - A list of actions to be invoked when this action is invoked.
Throws:
javax.servlet.jsp.JspTagException


Copyright © 2000-2012 Ontopia.