Package javax.servlet.jsp.tagext

Examples of javax.servlet.jsp.tagext.Tag


    //*********************************************************************
    // Tag logic

    // simply send our name and value to our appropriate ancestor
    public int doEndTag() throws JspException {
  Tag t = findAncestorWithClass(this, ParamParent.class);
  if (t == null)
      throw new JspTagException(
    Resources.getMessage("PARAM_OUTSIDE_PARENT"));

  // take no action for null or empty names
View Full Code Here


     * ChooseTag wants it to do so.  The condition will not even be
     * evaluated if ChooseTag instructs us not to run.
     */
    public int doStartTag() throws JspException {

        Tag parent;

        // make sure we're contained properly
        if (!((parent = getParent()) instanceof ChooseTag))
            throw new JspTagException(
    Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
View Full Code Here

    //*********************************************************************
    // Tag logic

    // Supply our value to our parent <fmt:message> tag
    public int doEndTag() throws JspException {
  Tag t = findAncestorWithClass(this, MessageSupport.class);
  if (t == null) {
      throw new JspTagException(Resources.getMessage(
                            "PARAM_OUTSIDE_MESSAGE"));
  }
  MessageSupport parent = (MessageSupport) t;
View Full Code Here

      return EVAL_PAGE;
  }

  String prefix = null;
  if (!bundleSpecified) {
      Tag t = findAncestorWithClass(this, BundleSupport.class);
      if (t != null) {
    // use resource bundle from parent <bundle> tag
    BundleSupport parent = (BundleSupport) t;
    locCtxt = parent.getLocalizationContext();
    prefix = parent.getPrefix();
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

        // 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

      return null;
    }

    for (;;)
    {
      Tag tag = from.getParent();

      if (tag == null)
      {
        return null;
      }

      if ((isInterface && klass.isInstance(tag))
          || klass.isAssignableFrom(tag.getClass()))
        return tag;
      else
        from = tag;
    }
  }
View Full Code Here

   * If so, it returns the facet name on the <f:facet> tag.
   * Otherwise, it returns null.
   */
  private String _getParentFacetName()
  {
    Tag parent = getParent();
    if (parent instanceof FacetTag)
    {
        return (((FacetTag) parent).getName());
    }
    return null;
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

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

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.