Package org.ajax4jsf.component

Examples of org.ajax4jsf.component.UIInclude


  protected void applyNextHandler(FaceletContext ctx, UIComponent component)
      throws IOException, FacesException, ELException {
    String path;
      if (component instanceof UIInclude) {
        UIInclude include = (UIInclude) component;
        path = include.getViewId();
         if(include.isWasNavigation()){
           component.getChildren().clear();
         }
      } else {
        path = (String) component.getAttributes().get("viewId");
      }
View Full Code Here


   *
   * @see org.ajax4jsf.webapp.taglib.UIComponentTagBase#setProperties(javax.faces.component.UIComponent)
   */
  protected void setProperties(UIComponent component) {
    super.setProperties(component);
    UIInclude include = (UIInclude) component;
    if (this.viewId != null) {
      if (this.viewId.isLiteralText()) {
        try {

          String value = (String) getFacesContext().getApplication()
              .getExpressionFactory().coerceToType(
                  this.viewId.getExpressionString(),
                  String.class);

          include.setViewId(value);
        } catch (ELException e) {
          throw new FacesException(e);
        }
      } else {
        component.setValueExpression("viewId", this.viewId);
View Full Code Here

   */
  public int doStartTag() throws JspException {
    int i = super.doStartTag();
    String resourcePath;
    UIComponent component = getComponentInstance();
    UIInclude includeComponent = null;
    if (component instanceof UIInclude) {
      includeComponent = (UIInclude) component;
      resourcePath = includeComponent.getViewId();
       if(includeComponent.isWasNavigation()){
       component.getChildren().clear();
       }
    } else {
      resourcePath = (String) component.getAttributes().get("viewId");
    }
View Full Code Here

   * @see org.ajax4jsf.renderkit.RendererBase#doEncodeBegin(javax.faces.context.ResponseWriter,
   *      javax.faces.context.FacesContext, javax.faces.component.UIComponent)
   */
  protected void doEncodeBegin(ResponseWriter writer, FacesContext context,
      UIComponent component) throws IOException {
    UIInclude panel = (UIInclude) component;
    if (!UIInclude.LAYOUT_NONE.equals(panel.getLayout())) {
      writer.startElement(getTag(panel), panel);
      getUtils().encodeId(context, component);
      getUtils().encodePassThru(context, component);
      getUtils().encodeAttributesFromArray(context, component,
          STYLE_ATTRIBUTES);
View Full Code Here

   * @see org.ajax4jsf.renderkit.RendererBase#doEncodeEnd(javax.faces.context.ResponseWriter,
   *      javax.faces.context.FacesContext, javax.faces.component.UIComponent)
   */
  protected void doEncodeEnd(ResponseWriter writer, FacesContext context,
      UIComponent component) throws IOException {
    UIInclude panel = (UIInclude) component;
    if (!UIInclude.LAYOUT_NONE.equals(panel.getLayout())) {
      writer.endElement(getTag(panel));

    }
  }
View Full Code Here

   */
  public int doStartTag() throws JspException {
    int i = super.doStartTag();
    String resourcePath;
    UIComponent component = getComponentInstance();
    UIInclude includeComponent = null;
    if (component instanceof UIInclude) {
      includeComponent = (UIInclude) component;
      resourcePath = includeComponent.getViewId();
       if(includeComponent.isWasNavigation()){
       component.getChildren().clear();
       }
    } else {
      resourcePath = (String) component.getAttributes().get("viewId");
    }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.component.UIInclude

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.