/** * @return */ protected ELContext getELContext() { FacesContext ctx = getFacesContext(); if (ctx == null) { throw new NullPointerException("FacesContext ctx"); } return getFacesContext().getELContext(); }
public String getComponentClass( ClassLoader classLoader, String tagName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { if(tagName.equals("view") || tagName.equals("subview") || tagName.equals("verbatim")) { return null; } UIComponentTagBase componentTag = (UIComponentTagBase) getTagHandler(classLoader, tagName); String componentType = componentTag.getComponentType(); ComponentInfo componentInfo = componentInfoMap.get(componentType); return componentInfo.getComponentClass(); }
/** * <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); }
public Object getComponent( ClassLoader classLoader, String tagName) throws ClassNotFoundException, InstantiationException, IllegalAccessException { UIComponentTagBase componentTag = (UIComponentTagBase) getTagHandler(classLoader, tagName); String componentType = componentTag.getComponentType(); ComponentInfo componentInfo = componentInfoMap.get(componentType); String componentClass = componentInfo.getComponentClass(); return classLoader.loadClass(componentClass).newInstance(); }
/** * @see http://java.sun.com/javaee/5/docs/api/javax/faces/webapp/UIComponentTagBase.html#getELContext() * @return */ protected ELContext getELContext() { FacesContext ctx = getFacesContext(); if (ctx == null) throw new NullPointerException("FacesContext ctx"); return getFacesContext().getELContext(); }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> * * @return the {code ELContext} for this {@code FacesContext} */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> * * @return the {code ELContext} for this {@code FacesContext} */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> * * @return the {code ELContext} for this {@code FacesContext} */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> * * @return the {code ELContext} for this {@code FacesContext} */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> * * @return the {code ELContext} for this {@code FacesContext} */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> * * @return the {code ELContext} for this {@code FacesContext} */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }
/** * <p>Return the {@link ELContext} for the {@link FacesContext} for * this request.</p> * * <p>This is a convenience for * <code>getFacesContext().getELContext()</code>.</p> * * @return the {code ELContext} for this {@code FacesContext} */ protected ELContext getELContext() { FacesContext fc = getFacesContext(); ELContext result = null; if (null != fc) { result = fc.getELContext(); } return result; }