Package org.apache.myfaces.tobago.component

Examples of org.apache.myfaces.tobago.component.UIWizard


  }

  @Override
  protected void setProperties(final UIComponent uiComponent) {
    super.setProperties(uiComponent);
    final UIWizard component = (UIWizard) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
        component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
      }
    }
    if (var != null) {
      component.setVar(var);
    }

    if (title != null) {
      component.setValueExpression("title", title);
    }

    if (outcome != null) {
      component.setOutcome(outcome);
    }

    if (allowJumpForward != null) {
      if (!allowJumpForward.isLiteralText()) {
        component.setValueExpression("allowJumpForward", allowJumpForward);
      } else {
        component.setAllowJumpForward(Boolean.parseBoolean(allowJumpForward.getExpressionString()));
      }
    }
    if (controller != null) {
      if (!controller.isLiteralText()) {
        component.setValueExpression("controller", controller);
      /*} else {
        component.setController(controller.getExpressionString());*/
      }
    }
  }
View Full Code Here


  }

  @Override
  protected void setProperties(final UIComponent uiComponent) {
    super.setProperties(uiComponent);
    final UIWizard component = (UIWizard) uiComponent;
    final FacesContext context = FacesContext.getCurrentInstance();
    final Application application = context.getApplication();
    if (markup != null) {
      if (!markup.isLiteralText()) {
        component.setValueExpression("markup", markup);
      } else {
        component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
      }
    }
    if (var != null) {
      component.setVar(var);
    }

    if (title != null) {
      component.setValueExpression("title", title);
    }

    if (outcome != null) {
      component.setOutcome(outcome);
    }

    if (allowJumpForward != null) {
      if (!allowJumpForward.isLiteralText()) {
        component.setValueExpression("allowJumpForward", allowJumpForward);
      } else {
        component.setAllowJumpForward(Boolean.parseBoolean(allowJumpForward.getExpressionString()));
      }
    }
    if (controller != null) {
      if (!controller.isLiteralText()) {
        component.setValueExpression("controller", controller);
      /*} else {
        component.setController(controller.getExpressionString());*/
      }
    }
  }
View Full Code Here

  }

  @Override
  protected void setProperties(UIComponent uiComponent) {
    super.setProperties(uiComponent);
    UIWizard component = (UIWizard) uiComponent;
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    if (controller != null && isValueReference(controller)) {
      component.setValueBinding("controller", application.createValueBinding(controller));
    }
    if (outcome != null) {
      if (isValueReference(outcome)) {
        component.setValueBinding("outcome", application.createValueBinding(outcome));
      } else {
        component.setOutcome(outcome);
      }
    }
    if (var != null) {
      if (isValueReference(var)) {
        component.setValueBinding("var", application.createValueBinding(var));
      } else {
        component.setVar(var);
      }
    }
    if (title != null) {
      if (isValueReference(title)) {
        component.setValueBinding("title", application.createValueBinding(title));
      } else {
        component.setTitle(title);
      }
    }
    if (allowJumpForward != null) {
      if (isValueReference(allowJumpForward)) {
        component.setValueBinding("allowJumpForward", application.createValueBinding(allowJumpForward));
      } else {
        component.setAllowJumpForward(Boolean.valueOf(allowJumpForward));
      }
    }

  }
View Full Code Here

  }

  @Override
  protected void setProperties(UIComponent uiComponent) {
    super.setProperties(uiComponent);
    UIWizard component = (UIWizard) uiComponent;
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    if (controller != null && isValueReference(controller)) {
      component.setValueBinding("controller", application.createValueBinding(controller));
    }
    if (outcome != null) {
      if (isValueReference(outcome)) {
        component.setValueBinding("outcome", application.createValueBinding(outcome));
      } else {
        component.setOutcome(outcome);
      }
    }
    if (var != null) {
      if (isValueReference(var)) {
        component.setValueBinding("var", application.createValueBinding(var));
      } else {
        component.setVar(var);
      }
    }
    if (title != null) {
      if (isValueReference(title)) {
        component.setValueBinding("title", application.createValueBinding(title));
      } else {
        component.setTitle(title);
      }
    }
    if (allowJumpForward != null) {
      if (isValueReference(allowJumpForward)) {
        component.setValueBinding("allowJumpForward", application.createValueBinding(allowJumpForward));
      } else {
        component.setAllowJumpForward(Boolean.valueOf(allowJumpForward));
      }
    }

  }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.tobago.component.UIWizard

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.