Examples of ButtonTag


Examples of org.apache.myfaces.tobago.taglib.component.ButtonTag

  @Override
  public int doStartTag() throws JspException {

    int result = super.doStartTag();

    ButtonTag button = new ButtonTag();
    button.setPageContext(pageContext);
    button.setParent(getParent());
    button.setLabel(StringUtils.isEmpty(label) ? "Previous" : label); // todo: i18n
    button.setAction("#{" + wizard + ".previous}");
    button.setDisabled("#{!" + wizard + ".previousAvailable}");
    button.doStartTag();
    button.doEndTag();

    return result;
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.taglib.component.ButtonTag

  @Override
  public int doStartTag() throws JspException {

    int result = super.doStartTag();

    ButtonTag button = new ButtonTag();
    button.setPageContext(pageContext);
    button.setParent(getParent());
    button.setLabel(StringUtils.isEmpty(label) ? "Finish Wizard" : label); // todo: i18n
    button.setAction(action);
    button.setActionListener("#{" + wizard + ".finish}");
    button.setDisabled(Boolean.toString(action == null));
//    button.setDisabled(controller.replace("}", ".finishAvailable}").replace("#{", "#{!"));
    button.doStartTag();
    button.doEndTag();

    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.