Package javax.servlet.jsp.tagext

Examples of javax.servlet.jsp.tagext.Tag


     {@inheritDoc}
     */
    @Override
    public int doEndTag()
    {
        Tag t = null;
        while( (t = getParent()) != null && !(t instanceof ParamHandler) )
            ;
        if( t != null )
        {
            String val = m_value;
View Full Code Here


    /**
     * Finds the input:form tag enclosing the given tag and returns it.
     */
    public static Form findFormTag(Tag tag) {
        Tag formTag = TagSupport.findAncestorWithClass(tag, Form.class);
        if (formTag != null) {
            return (Form) formTag;
        } else {
            return null;
        }
View Full Code Here

        // JSF-Spec 1.2 9.4.9
        // Locate the one and only UIViewRoot custom action instance by walking up the tag tree
        // until you find a UIComponentELTag instance that has no parent. If the
        // getCreated() method of this instance returns true, check the binding attribute.

        Tag parent = this;
        UIComponentELTag parentTag = null;
        while ((parent = parent.getParent()) != null)
        {
            if (parent instanceof UIComponentELTag)
            {
                parentTag = (UIComponentELTag)parent;
            }
View Full Code Here

public class AntTarget extends TagSupport {
   
    public AntTarget() {}

    public int doStartTag() throws JspException {
  Tag parent=getParent();
  if( parent == null  )
      throw new JspException( "AntTarget used as top-level tag,"+
            "must be inside <ant>");
  if( ! (parent instanceof AntTag ))
      throw new JspException( "AntTarget must be child of <ant>");
View Full Code Here

public class AntProperty extends TagSupport {
   
    public AntProperty() {}

    public int doStartTag() throws JspException {
  Tag parent=getParent();
  if( parent == null  )
      throw new JspException( "AntProperty used as top-level tag,"+
            "must be inside <ant>");
  if( ! (parent instanceof AntTag))
      throw new JspException( "AntProperty must be child of <ant>");
View Full Code Here

     * @exception JspException if a processing error occurs
     */
    public int doEndTag() throws JspException {
       
        // Find our parent TableTag instance
        Tag parent = getParent();
        while ((parent != null) && !(parent instanceof TableTag)) {
            parent = parent.getParent();
        }
        if (parent == null) {
            throw new JspException("Must be nested in a TableTag instance");
        }
        TableTag table = (TableTag) parent;
View Full Code Here

     * @exception JspException if a processing error occurs
     */
    public int doEndTag() throws JspException {

        // Find our parent ActionsTag instance
        Tag parent = getParent();
        while ((parent != null) && !(parent instanceof ActionsTag)) {
            parent = parent.getParent();
        }
        if ((parent == null) || !(parent instanceof ActionsTag))
            throw new JspException("Must be nested in an ActionsTag isntance");
        ActionsTag actions = (ActionsTag) parent;

View Full Code Here

     * Determine the Row Number - from the IterateTag
     */
    protected int getRowNumber()
    {
        // Determine if embedded in an IterateTag
        Tag tag = findAncestorWithClass(this, IterateTag.class);

        if (tag == null)
        {
            return 1;
        }
View Full Code Here

        // create the verbatim component if not inside a facet (facets are rendered
        // by their parents) and in a component that renders children
        if (!isFacet())
        {
            Tag parent = getParent();

            // flush if in a loop tag and not in a jsp tag
            if (parent != null && parent instanceof LoopTag)
            {
                JspWriter outWriter = pageContext.getOut();
View Full Code Here

        // create the verbatim component if not inside a facet (facets are rendered
        // by their parents) and in a component that renders children
        if (!isFacet())
        {
            Tag parent = getParent();

            // flush if in a loop tag and not in a jsp tag
            if (parent != null && parent instanceof LoopTag)
            {
                JspWriter outWriter = pageContext.getOut();
View Full Code Here

TOP

Related Classes of javax.servlet.jsp.tagext.Tag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.