nl.gx.webmanager.taglib
Class FormPartTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by nl.gx.webmanager.taglib.FormPartTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class FormPartTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

Implements the wm:formPart tag. This tag retrieves a formpart using its alias as search criterium.
Example of usage:

 <wm:formPart var="userNameFormPart" alias="username" />
 ${userNameFormPart}
 
This will look up the formpart with the alias "username".


Constructor Summary
FormPartTag()
           
 
Method Summary
 void doTag()
           
protected  java.lang.String getAlias()
          Return Specifies the alias of the formpart to search for.
protected  java.lang.String getVar()
          Return the JSP variable to store the result in.
 void setAlias(java.lang.String alias)
          Specifies the alias of the formpart to search for.
 void setVar(java.lang.String var)
          Specifies the JSP variable to store the result in.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormPartTag

public FormPartTag()
Method Detail

setAlias

public void setAlias(java.lang.String alias)
Specifies the alias of the formpart to search for. This is the alias that is used in the XSL of the formhandlers to identify the formpart.

Parameters:
alias - name of the language label.

getAlias

protected java.lang.String getAlias()
Return Specifies the alias of the formpart to search for. This is the alias that is used in the XSL of the formhandlers to identify the formpart.

Returns:
alias name of the language label.

setVar

public void setVar(java.lang.String var)
Specifies the JSP variable to store the result in.

Parameters:
var - specifies the JSP variable to store the result in.

getVar

protected java.lang.String getVar()
Return the JSP variable to store the result in.

Returns:
var the JSP variable to store the result in

doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2007-2011 GX Software BV. All Rights Reserved.