CallPageFlow Class

com.bea.wlw.netui.tags.databinding.invoke
CallPageFlow Class

public class CallPageFlow

    extends CallMethod

A tag that is used to call a method on the current PageFlowController. The PageFlow on which to call the method is found given the location of the JSP page in the webapp; if no PageFlow is found in the current directory, an ObjectNotFoundException is thrown and the tag execution fails.

This tag extends the CallMethod tag, which defines additional attributes.

Once the method has been called, any return value is set in the PageContext attribute map under the resultId attribute that is provided on the CallMethod tag. In the case that the return value is a primitive type, the primitive type's object wrapper is set in the PageContext under the resultId key.

Attribute Descriptions
AttributeRequiredRuntime Expression EvaluationData Bindable
failOnErrorNoNoNo
A boolean that if true will cause the tag to report any method invocation errors in-line in the rendered page.
methodYesNoNo
Name of the method in the page flow that will be invoked.
resultIdNoNoNo
The PageContext attribute name where the result, if non-null, is stored.

Related Topics

<netui-data:callPageFlow> Tag Sample
MethodParameter
CallMethod
CallControl


Hierarchy
Object
  TagSupport
    BodyTagSupport
      AbstractBaseTag
        AbstractCallMethod
          CallMethod
            CallPageFlow
All Implemented Interfaces

BodyTag, IterationTag, Serializable, Tag

Field Summary

   
Fields from  com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, CLASS, ID, JAVASCRIPT_STATUS, NAME, NETUI_UNIQUE_CNT, ONCLICK, ONDBLCLICK, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, STYLE, TABINDEX
 
Fields from  javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields from  javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 

Constructor Summary

CallPageFlow()

 

Method Summary

protected String
getObjectName()
Get the name of the object that is the target of the invocation.
public String
getTagName()
Get the name of this tag.
protected Object
resolveObject()
Get the PageFlow for the using JSP's directory.
 
Methods from  com.bea.wlw.netui.tags.databinding.invoke.CallMethod
findMethod, getObject, localRelease, setObject
 
Methods from  com.bea.wlw.netui.tags.databinding.invoke.AbstractCallMethod
addParameter, doEndTag, doStartTag, findMethod, getFailOnError, getMethod, getObjectName, getParameterNodes, getResultId, handleReturnValue, localRelease, resolveObject, setFailOnError, setMethod, setResultId
 
Methods from  com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, evaluateAttributeToString, filter, filter, getJavaScriptUtils, getNearestForm, getScriptReporter, getTagName, getUserLocale, localRelease, registerTagError, release, renderAttribute, rewriteName, write
 
Methods from  javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods from  javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.jsp.tagext.BodyTag
doInitBody, setBodyContent
 
Methods from interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
 
Methods from interface javax.servlet.jsp.tagext.Tag
doEndTag, doStartTag, getParent, release, setPageContext, setParent
 

Constructor Detail

CallPageFlow

public CallPageFlow()
 

Method Detail

getObjectName() Method

protected String getObjectName()
Get the name of the object that is the target of the invocation.

Overrides
CallMethod.getObjectName()

Returns

a name for the object on which the method will be invoked.

getTagName() Method

public String getTagName()
Get the name of this tag. This is used to identify the type of this tag for reporting tag errors.

Overrides
CallMethod.getTagName()

Returns

a constant String representing the name of this tag.

resolveObject() Method

protected Object resolveObject()
throws ObjectNotFoundException
Get the PageFlow for the using JSP's directory. This is an implementation of the CallMethod.resolveObject() method that finds the current PageFlow using the PageFlowUtils.ensureCurrentPageFlow(HttpServletRequest, HttpServletResponse) method.

Overrides
CallMethod.resolveObject()

Returns

the current PageFlow. If there is no current PageFlow, the ObjectNotFoundException will be thrown.

Exceptions

ObjectNotFoundException