本文整理了Java中javax.faces.webapp.UIComponentClassicTagBase.generateIncrementedId()
方法的一些代码示例,展示了UIComponentClassicTagBase.generateIncrementedId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIComponentClassicTagBase.generateIncrementedId()
方法的具体详情如下:
包路径:javax.faces.webapp.UIComponentClassicTagBase
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!