本文整理了Java中javax.faces.webapp.UIComponentClassicTagBase.getParentUIComponentClassicTagBase()
方法的一些代码示例,展示了UIComponentClassicTagBase.getParentUIComponentClassicTagBase()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIComponentClassicTagBase.getParentUIComponentClassicTagBase()
方法的具体详情如下:
包路径:javax.faces.webapp.UIComponentClassicTagBase
类名称:UIComponentClassicTagBase
方法名:getParentUIComponentClassicTagBase
[英]Locate and return the nearest enclosing UIComponentClassicTagBaseif any; otherwise, return null
.
[中]找到并返回最近的封闭UIComponentClassicTagBaseif(如果有);否则,返回null
。
代码示例来源:origin: javax/javaee-web-api
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源:origin: com.sun.faces/jsf-api
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源:origin: javax.faces/javax.faces-api
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源:origin: com.sun.faces/jsf-api
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) {
代码示例来源:origin: org.glassfish/javax.faces
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源:origin: eclipse-ee4j/mojarra
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源:origin: javax.faces/com.springsource.javax.faces
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源:origin: jboss/jboss-javaee-specs
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
if (tag == null) { // PENDING - i18n
throw new JspException("Not nested in a UIComponentTag");
代码示例来源: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 = 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.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.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/com.springsource.org.apache.myfaces
UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
代码示例来源:origin: javax.faces/com.springsource.javax.faces
/**
* <p>Create a new child component using <code>createComponent</code>,
* initialize its properties, and add it to its parent as a child.
* </p>
* @param context {@link FacesContext} for the current request
* @param parent Parent {@link UIComponent} for the new child
* @param componentId Component identifier for the new child,
* or <code>null</code> for no explicit identifier
*/
private UIComponent createChild(FacesContext context, UIComponent parent,
String componentId) throws JspException {
UIComponent component = createComponent(context, componentId);
UIComponentTagBase parentTag = getParentUIComponentClassicTagBase(pageContext);
int indexOfNextChildTag = parentTag.getIndexOfNextChildTag();
if (indexOfNextChildTag > parent.getChildCount()) {
indexOfNextChildTag = parent.getChildCount();
}
parent.getChildren().add(indexOfNextChildTag, component);
created = true;
return (component);
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
@SuppressWarnings("unchecked")
public int doAfterBody() throws JspException
UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext);
代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces
public int doAfterBody() throws JspException
UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext);
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext);
代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces
getParentUIComponentClassicTagBase(pageContext);
内容来源于网络,如有侵权,请联系作者删除!