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

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

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

UIComponentClassicTagBase.getParentNamingContainerTag介绍

暂无

代码示例

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

/**
 * @param id the component ID
 * @return <code>true</code> if this ID is unique within the closest naming
 *  container, otherwise <code>false</code>
 */
private boolean isSpecifiedIdUnique(String id) {
  UIComponentClassicTagBase containerTag = getParentNamingContainerTag();
  UIComponent c = containerTag.component.findComponent(id);
  if (c == null) {
    return true;
  } else {
    UIComponent parent = c.getParent();
    if (parent.equals(this.parentTag.component)) {
      // the component we found has the same parent, If we find
      // a sibling with the same ID, return true so that the
      // id is incremented, otherwise, return false.
      List<String> created = this.parentTag.createdComponents;
      return !(created != null && created.contains(id));
    } else {
      return false;
    }
  }
}

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

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

getParentNamingContainerTag().getNamingContainerChildIds().get(clientId);
if (getParentNamingContainerTag().getNamingContainerChildIds().containsKey(clientId)) {
      + clientId
      + "', first used in tag: '"
      + getParentNamingContainerTag().getNamingContainerChildIds().get(clientId).getClass().getName()
  throw new JspException(new IllegalStateException(msg));
} else {
  getParentNamingContainerTag().getNamingContainerChildIds().put(clientId, this);

相关文章

微信公众号

最新文章

更多

UIComponentClassicTagBase类方法