/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
@Override public int doStartTag() throws JspException { separatorTag = new SeparatorTag(); separatorTag.setPageContext(pageContext); separatorTag.setParent(getParent()); if (binding != null) { separatorTag.setBinding(binding); } if (rendered != null) { separatorTag.setRendered(rendered); } facetTag = new FacetTag(); facetTag.setPageContext(pageContext); facetTag.setParent(separatorTag); facetTag.setName(Facets.LABEL); facetTag.doStartTag(); labelTag = new LabelTag(); labelTag.setPageContext(pageContext); labelTag.setParent(facetTag); if (label != null) { labelTag.setValue(label); } labelTag.setJspId(jspId + PREFIX + idSuffix++); labelTag.doStartTag(); return super.doStartTag(); }
@Override public int doEndTag() throws JspException { labelTag.doEndTag(); facetTag.doEndTag(); separatorTag.doEndTag(); return super.doEndTag(); }
panelTag.doStartTag(); FacetTag facetTag = new FacetTag(); facetTag.setPageContext(pageContext); facetTag.setName(Facets.LAYOUT); facetTag.setParent(panelTag); facetTag.doStartTag(); gridLayoutTag.doEndTag(); facetTag.doEndTag();
@Override public int doEndTag() throws JspException { if (renderedPartially == null) { // Move attribute renderedPartially from selectOne to menuCommand component UIComponent inComponent = inTag.getComponentInstance(); AbstractUICommandBase command = (AbstractUICommandBase) menuCommandTag.getComponentInstance(); javax.el.ValueExpression expression = inComponent.getValueExpression(Attributes.RENDERED_PARTIALLY); if (expression != null) { command.setValueExpression(Attributes.RENDERED_PARTIALLY, expression); } else { Object renderedPartially = inComponent.getAttributes().get(Attributes.RENDERED_PARTIALLY); command.setRenderedPartially(StringUtils.split((String) renderedPartially, ", ")); } } inTag.doEndTag(); facetTag.doEndTag(); menuCommandTag.doEndTag(); return super.doEndTag(); }
protected String getFacetName() { return isFacet() ? ((FacetTag)_parent).getName() : null; }
menuCommandTag.doStartTag(); facetTag = new FacetTag(); facetTag.setPageContext(pageContext); facetTag.setParent(menuCommandTag); facetTag.setName(Facets.CHECKBOX); facetTag.doStartTag(); inTag = new SelectBooleanCheckboxTag(); inTag.setPageContext(pageContext);
@Override public int doEndTag() throws JspException { if (renderedPartially == null) { // Move attribute renderedPartially from selectOne to menuCommand component UIComponent inComponent = inTag.getComponentInstance(); AbstractUICommandBase command = (AbstractUICommandBase) menuCommandTag.getComponentInstance(); javax.el.ValueExpression expression = inComponent.getValueExpression(Attributes.RENDERED_PARTIALLY); if (expression != null) { command.setValueExpression(Attributes.RENDERED_PARTIALLY, expression); } else { Object renderedPartially = inComponent.getAttributes().get(Attributes.RENDERED_PARTIALLY); command.setRenderedPartially(StringUtils.split((String) renderedPartially, ", ")); } } inTag.doEndTag(); facetTag.doEndTag(); menuCommandTag.doEndTag(); return super.doEndTag(); }
protected String getFacetName() { final Tag parent = getParent(); if (parent instanceof FacetTag) { return ((FacetTag) parent).getName(); } else { return null; } }
menuCommandTag.doStartTag(); facetTag = new FacetTag(); facetTag.setPageContext(pageContext); facetTag.setParent(menuCommandTag); facetTag.setName(Facets.RADIO); facetTag.doStartTag(); inTag = new SelectOneRadioTag(); inTag.setPageContext(pageContext);
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
protected String getFacetName() { return isFacet() ? ((FacetTag)_parent).getName() : null; }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> * * @return the name of the facet */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> * * @return the name of the facet */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> * * @return the name of the facet */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> * * @return the name of the facet */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> * * @return the name of the facet */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> * * @return the name of the facet */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }
/** * <p>Return the facet name that we should be stored under, if any; * otherwise, return null (indicating that we will be a child component). * </p> * * @return the name of the facet */ protected String getFacetName() { Tag parent = getParent(); if (parent instanceof FacetTag) { return (((FacetTag) parent).getName()); } else { return (null); } }