javax.faces.webapp.UIComponentClassicTagBase.generateIncrementedId()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(11.7k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中javax.faces.webapp.UIComponentClassicTagBase.generateIncrementedId()方法的一些代码示例,展示了UIComponentClassicTagBase.generateIncrementedId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIComponentClassicTagBase.generateIncrementedId()方法的具体详情如下:
包路径:javax.faces.webapp.UIComponentClassicTagBase
类名称:UIComponentClassicTagBase
方法名:generateIncrementedId

UIComponentClassicTagBase.generateIncrementedId介绍

暂无

代码示例

代码示例来源:origin: javax/javaee-web-api

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: com.sun.faces/jsf-api

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: org.glassfish/javax.faces

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: eclipse-ee4j/mojarra

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: com.sun.faces/jsf-api

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: javax.faces/javax.faces-api

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: jboss/jboss-javaee-specs

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: javax.faces/com.springsource.javax.faces

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: org.glassfish/jakarta.faces

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: javax/javaee-web-api

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 *
 * @return the value as specified above
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: org.glassfish/javax.faces

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 *
 * @return the value as specified above
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: eclipse-ee4j/mojarra

if (!isSpecifiedIdUnique(this.id)) {
  if (isNestedInIterator) {
    this.id = generateIncrementedId(this.id);
  } else {
    StringWriter writer = new StringWriter(128);

代码示例来源:origin: javax.faces/com.springsource.javax.faces

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: javax.faces/javax.faces-api

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 *
 * @return the value as specified above
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: org.glassfish/jakarta.faces

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 *
 * @return the value as specified above
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 *
 * @return the value as specified above
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 *
 * @return the value as specified above
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * <p>If this method has been called before on this tag's useful
 * lifetime (before {@link #release} was called), return the
 * previously returned value.  Otherwise, if {@link #getJspId}
 * returns non-<code>null</code>, prepend {@link #UNIQUE_ID_PREFIX}
 * to the <code>jspId</code> and return the result.</p>
 *
 * @return the value as specified above
 */
protected String getFacesJspId() {
  if (null == facesJspId) {
    if (null != jspId) {
      facesJspId = UNIQUE_ID_PREFIX + jspId;
      // if this tag happens to be nested within <c:forEach>,
      //  jspId will be the same for each iteration. So it is
      // transformed into a unique "id" by appending a counter which
      // gets stored in request scope with jspId as the key for use
      // during the next iteration.
      if (isDuplicateId(facesJspId)) {
        facesJspId = generateIncrementedId(facesJspId);
      }
    } else {
      // jspId will be null if we're running in a container
      // that doesn't support JspIdConsumer
      facesJspId = getFacesContext().getViewRoot().createUniqueId();
    }
  }
  return facesJspId;
}

相关文章

微信公众号

最新文章

更多

UIComponentClassicTagBase类方法