public class WidgetImportTag
extends org.apache.taglibs.standard.tag.rt.core.ImportTag
implements com.ibm.commerce.foundation.internal.client.taglib.ParameterizedTag
wcpgl:widgetImport
JSTL tag. It
extends the functionality of c:import tag. c:import tag supports importing a
JSP by using URL attribute. wcf:widgetImport tag supports importing a JSP by
using either URL or layout definition or widget definition. The order of
import is:
url
attribute is not null, then import the JSP
associated with the URL attribute. No further processing is done.
errorWidget
attribute is set, then this value is used to
look up error widget and the widget is imported.
ErrorWidget
is looked
up and the widget is imported.
c:import
tag. This tag handler
class will have access to any parameters set using the nested wcf:param
sub-tag. These parameters, along with the parameters set in the widget
definition and the parameters set by the business user for the widgets in the
layouts are aggregated and gets passed to the base tag handler class.Modifier and Type | Class and Description |
---|---|
class |
WidgetImportTag.URLManager |
class |
WidgetImportTag.WidgetSequenceComparator
WidgetSequenceComparator is the implementation of Comparator.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
WidgetImportTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Imports the list of URLs identified.
|
int |
doStartTag()
This method creates set of URLManager objects which will be processed in
the end.
|
java.util.Map |
getParameterMap()
This method is called by the "param" sub-tag.
|
void |
setDebug(java.lang.String debug)
Set debug mode
|
void |
setIdentifier(java.lang.String widgetIdentifier)
Setter for the widget identifier
|
void |
setSingletonKey(java.lang.String singeltonKeyValue)
Setter for singletonKey attribute
|
void |
setSlotId(java.lang.String newSlotId)
Set slotId of current instance
|
void |
setUniqueID(java.lang.String widgetUniqueID)
Setter for the widget uniqueId
|
void |
setUseIBMContextInSeparatedEnv(java.lang.String useIBMContextInSeparatedEnv)
Setter for useIBMContextInSeparatedEnv attribute
|
void |
setVarPageDesignDetails(java.lang.String varName)
Setter for Page Design details variable name
|
void |
setVarPageDesignDetailsJSON(java.lang.String varName)
Setter for Page Design details JSON variable name
|
java.lang.String |
toString()
Override toString method.
|
setCharEncoding, setContext, setUrl
addParameter, doCatch, doFinally, isAbsoluteUrl, release, setScope, setVar, setVarReader, stripSession
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public static final java.lang.String COPYRIGHT
public int doStartTag() throws javax.servlet.jsp.JspException
url,slotId,identifier
in that order. Importing multiple URLs
is supported only with slotId
parameter. If multiple widgets
are associated with a given slotId then all those widgets are imported
sequentiallydoStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class org.apache.taglibs.standard.tag.common.core.ImportSupport
Tag.EVAL_BODY_INCLUDE
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class org.apache.taglibs.standard.tag.common.core.ImportSupport
javax.servlet.jsp.JspException
public void setIdentifier(java.lang.String widgetIdentifier)
String
- - Widget Identifierpublic void setUniqueID(java.lang.String widgetUniqueID)
String
- - Widget Unique IDpublic void setSlotId(java.lang.String newSlotId)
newSlotId
- - slotId used in the JSPpublic void setDebug(java.lang.String debug)
debug
- - either true or false.public void setVarPageDesignDetails(java.lang.String varName)
public void setVarPageDesignDetailsJSON(java.lang.String varName)
public void setSingletonKey(java.lang.String singeltonKeyValue)
public void setUseIBMContextInSeparatedEnv(java.lang.String useIBMContextInSeparatedEnv)
public java.util.Map getParameterMap()
getParameterMap
in interface com.ibm.commerce.foundation.internal.client.taglib.ParameterizedTag
ParameterizedTag.getParameterMap()
public java.lang.String toString()
toString
in class java.lang.Object