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

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

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

UIComponentClassicTagBase.getCreated介绍

[英]Return true if we dynamically created a new component instance during execution of this tag. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance.
[中]如果在执行此标记期间动态创建了新组件实例,则返回true。此方法设计用于嵌套在此标记中的标记,并且仅返回在此标记实例上执行doStartTag()doEndTag()之间的有用结果。

代码示例

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

@Override
public boolean getCreated()
{
  return target.getCreated();
}

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

@Override
public boolean getCreated() { // NOPMD
  return classicDelegate.getCreated();
}

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

public boolean getCreated() {
  return classicDelegate.getCreated();
}

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

@Override
public boolean getCreated() { // NOPMD
  return classicDelegate.getCreated();
}

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

@Override
public boolean getCreated() { // NOPMD
  return classicDelegate.getCreated();
}

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

@Override
public boolean getCreated() { // NOPMD
  return classicDelegate.getCreated();
}

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

@Override
public boolean getCreated() { // NOPMD
  return classicDelegate.getCreated();
}

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

public boolean getCreated() {
  return classicDelegate.getCreated();
}

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

public boolean getCreated() {
  return classicDelegate.getCreated();
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

@Override
public int doStartTag() throws JspException
{
  UIComponentClassicTagBase componentTag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext);
  if (componentTag == null)
  {
    throw new JspException("no parent UIComponentTag found");
  }
  if (!componentTag.getCreated())
  {
    return Tag.SKIP_BODY;
  }
  Validator validator = createValidator();
  UIComponent component = componentTag.getComponentInstance();
  if (component == null)
  {
    throw new JspException("parent UIComponentTag has no UIComponent");
  }
  if (!(component instanceof EditableValueHolder))
  {
    throw new JspException("UIComponent is no EditableValueHolder");
  }
  ((EditableValueHolder)component).addValidator(validator);
  return Tag.SKIP_BODY;
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

@Override
public int doStartTag() throws JspException
{
  UIComponentClassicTagBase componentTag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext);
  if (componentTag == null)
  {
    throw new JspException("no parent UIComponentTag found");
  }
  if (!componentTag.getCreated())
  {
    return Tag.SKIP_BODY;
  }
  UIComponent component = componentTag.getComponentInstance();
  if (component == null)
  {
    throw new JspException("parent UIComponentTag has no UIComponent");
  }
  if (!(component instanceof ValueHolder))
  {
    throw new JspException("UIComponent is no ValueHolder");
  }
  Converter converter = createConverter();
  ((ValueHolder)component).setConverter(converter);
  return Tag.SKIP_BODY;
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

@Override
public int doStartTag() throws JspException
{
  UIComponentClassicTagBase componentTag =
      UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
  if (componentTag == null)
  {
    throw new JspException("no parent UIComponentTag found");
  }
  if (!componentTag.getCreated())
  {
    return Tag.SKIP_BODY;
  }
  Converter converter = createConverter();
  UIComponent component = componentTag.getComponentInstance();
  if (component == null)
  {
    throw new JspException("parent UIComponentTag has no UIComponent");
  }
  if (!(component instanceof ValueHolder))
  {
    throw new JspException("UIComponent is no ValueHolder");
  }
  ((ValueHolder)component).setConverter(converter);
  return Tag.SKIP_BODY;
}

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

public int doStartTag()
    throws JspException
{
  UIComponentClassicTagBase componentTag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext);
  if (componentTag == null)
  {
    throw new JspException("no parent UIComponentTag found");
  }
  if (!componentTag.getCreated())
  {
    return Tag.SKIP_BODY;
  }
  UIComponent component = componentTag.getComponentInstance();
  if (component == null)
  {
    throw new JspException("parent UIComponentTag has no UIComponent");
  }
  if (!(component instanceof ValueHolder))
  {
    throw new JspException("UIComponent is no ValueHolder");
  }
  Converter converter = createConverter();
  ((ValueHolder)component).setConverter(converter);
  return Tag.SKIP_BODY;
}

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

public int doStartTag()
    throws JspException
{
  UIComponentClassicTagBase componentTag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
  if (componentTag == null)
  {
    throw new JspException("no parent UIComponentTag found");
  }
  if (!componentTag.getCreated())
  {
    return Tag.SKIP_BODY;
  }
  Converter converter = createConverter();
  UIComponent component = componentTag.getComponentInstance();
  if (component == null)
  {
    throw new JspException("parent UIComponentTag has no UIComponent");
  }
  if (!(component instanceof ValueHolder))
  {
    throw new JspException("UIComponent is no ValueHolder");
  }
  ((ValueHolder)component).setConverter(converter);
  return Tag.SKIP_BODY;
}

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

public int doStartTag()
    throws javax.servlet.jsp.JspException
{
  UIComponentClassicTagBase componentTag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext);
  if (componentTag == null)
  {
    throw new JspException("no parent UIComponentTag found");
  }
  if (!componentTag.getCreated())
  {
    return Tag.SKIP_BODY;
  }
  Validator validator = createValidator();
  UIComponent component = componentTag.getComponentInstance();
  if (component == null)
  {
    throw new JspException("parent UIComponentTag has no UIComponent");
  }
  if (!(component instanceof EditableValueHolder))
  {
    throw new JspException("UIComponent is no EditableValueHolder");
  }
  ((EditableValueHolder)component).addValidator(validator);
  return Tag.SKIP_BODY;
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl

@Override
public int doStartTag() throws JspException
{
  if (log.isLoggable(Level.FINE))
    log.fine("JSF 1.2 Spec : Create a new instance of the ActionListener");
  ActionListener actionListener = new SetPropertyActionListener(target, value);
  UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
  if (tag == null)
    throw new JspException("Could not find a " + "parent UIComponentClassicTagBase ... is this "
        + "tag in a child of a UIComponentClassicTagBase?");
  if (tag.getCreated())
  {
    UIComponent component = tag.getComponentInstance();
    if (component == null)
      throw new JspException(" Could not locate a UIComponent " + "for a UIComponentClassicTagBase w/ a "
          + "JSP id of " + tag.getJspId());
    if (!(component instanceof ActionSource))
      throw new JspException("Component w/ id of " + component.getId()
          + " is associated w/ a tag w/ JSP id of " + tag.getJspId() + ". This component is of type "
          + component.getClass() + ", which is not an " + ActionSource.class);
    if (log.isLoggable(Level.FINE))
      log.fine(" ... register it with the UIComponent " + "instance associated with our most immediately "
          + "surrounding UIComponentTagBase");
    ((ActionSource)component).addActionListener(actionListener);
  }
  return SKIP_BODY;
}

代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

@Override
public int doStartTag() throws JspException
{
  if (log.isLoggable(Level.FINE))
    log.fine("JSF 1.2 Spec : Create a new instance of the ActionListener");
  ActionListener actionListener = new SetPropertyActionListener(target, value);
  UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
  if (tag == null)
    throw new JspException("Could not find a " + "parent UIComponentClassicTagBase ... is this "
        + "tag in a child of a UIComponentClassicTagBase?");
  if (tag.getCreated())
  {
    UIComponent component = tag.getComponentInstance();
    if (component == null)
      throw new JspException(" Could not locate a UIComponent " + "for a UIComponentClassicTagBase w/ a "
          + "JSP id of " + tag.getJspId());
    if (!(component instanceof ActionSource))
      throw new JspException("Component w/ id of " + component.getId()
          + " is associated w/ a tag w/ JSP id of " + tag.getJspId() + ". This component is of type "
          + component.getClass() + ", which is not an " + ActionSource.class);
    if (log.isLoggable(Level.FINE))
      log.fine(" ... register it with the UIComponent " + "instance associated with our most immediately "
          + "surrounding UIComponentTagBase");
    ((ActionSource)component).addActionListener(actionListener);
  }
  return SKIP_BODY;
}

代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces

"tag in a child of a UIComponentClassicTagBase?");
if(tag.getCreated())

代码示例来源:origin: org.apache.myfaces.core/myfaces-impl

if (tag.getCreated())

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

if (!tag.getCreated()) {
  return (SKIP_BODY);

相关文章

微信公众号

最新文章

更多

UIComponentClassicTagBase类方法