Package javax.servlet.jsp.tagext

Examples of javax.servlet.jsp.tagext.Tag


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

    // simply send our name and value to our parent <transform> tag
    public int doEndTag() throws JspException {
  Tag t = findAncestorWithClass(this, TransformSupport.class);
  if (t == null)
      throw new JspTagException(
    Resources.getMessage("PARAM_OUTSIDE_TRANSFORM"));
  TransformSupport parent = (TransformSupport) t;

View Full Code Here


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

    public void setValue(Object value) {
        this.value = value;
    }

    public int doEndTag() throws JspException {
        Tag parentTag = getParent();
        if (parentTag instanceof URLTag) {
            ((URLTag) parentTag).addParam(name, value);
        } else {
            throw new JspException("Invalid nesting, factory:param is not inside a factory:url tag.");
        }
View Full Code Here

        // If we're not inside of a facet, and if we are inside of a
        // rendersChildren==true component, stuff any template text or
        // custom tag output into a transient component.
        if (null == getFacetName() &&
            null != parentTag) {
            Tag p = this.getParent();
            // If we're not inside a JSP tag or we're not inside
            // a UIComponentTag flush the buffer
            if (null == p || !(p instanceof UIComponentTagBase)) {
                JspWriter out = pageContext.getOut();
                if (!(out instanceof BodyContent)) {
View Full Code Here

     * otherwise, return null (indicating that we will be a child component).
     * </p>
     */
    protected String getFacetName() {

        Tag parent = getParent();
        if (parent instanceof FacetTag) {
            return (((FacetTag) parent).getName());
        } else {
            return (null);
        }
View Full Code Here

    /**
     * Returns the closest parent form tag, or null if there is none.
     */
    protected Form getNearestForm()
    {
        Tag parentTag = getParent();
        while (parentTag != null) {
            if (parentTag instanceof Form)
                return (Form) parentTag;
            parentTag = parentTag.getParent();
        }
        return null;
    }
View Full Code Here

              boolean format) {

  LocalizationContext locCtxt = null;
 
  // Get formatting locale from enclosing <fmt:bundle>
  Tag parent = findAncestorWithClass(fromTag, BundleSupport.class);
  if (parent != null) {
      /*
       * use locale from localization context established by parent
       * <fmt:bundle> action, unless that locale is null
       */
 
View Full Code Here

     * setting exists
     */
    static TimeZone getTimeZone(PageContext pc, Tag fromTag) {
  TimeZone tz = null;

  Tag t = findAncestorWithClass(fromTag, TimeZoneSupport.class);
  if (t != null) {
      // use time zone from parent <timeZone> tag
      TimeZoneSupport parent = (TimeZoneSupport) t;
      tz = parent.getTimeZone();
  } else {
View Full Code Here

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

    // simply send our name and value to our parent <transform> tag
    public int doEndTag() throws JspException {
  Tag t = findAncestorWithClass(this, TransformSupport.class);
  if (t == null)
      throw new JspTagException(
    Resources.getMessage("PARAM_OUTSIDE_TRANSFORM"));
  TransformSupport parent = (TransformSupport) t;

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.