UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) {
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { // PENDING - i18n throw new JspException("Not nested in a UIComponentTag");
@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; }
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; }
@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; }
@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; }
UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
/** * <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); }
@SuppressWarnings("unchecked") public int doAfterBody() throws JspException UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext);
public int doAfterBody() throws JspException UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext);
UIComponentClassicTagBase parentTag = getParentUIComponentClassicTagBase(pageContext);