Package org.araneaframework.template.framework.context

Examples of org.araneaframework.template.framework.context.WizardContext


    index = null;
  }
 
  protected int before(Writer out) throws Exception {
       
    WizardContext wizard = (WizardContext) readAttribute(WIDGET_CONTEXT_KEY_REQUEST, PageContext.REQUEST_SCOPE);   
   
    int curIndex = wizard.getCurrentPageIndex();
    int count = wizard.countPages();
   
    String ifIndex = (String) evaluate("index", this.index, String.class);
   
    boolean not = false;
    if (ifIndex.startsWith(INDEX_NOT_PREFIX)) {
View Full Code Here


  public static final String WIZARD_SUBMIT_LABEL_ID = "#Submit";
  public static final String WIZARD_CANCEL_LABEL_ID = "#Cancel";

  protected int before(Writer out) throws Exception {
       
    WizardContext wizard = (WizardContext) UiWidgetUtil.getWidgetFromContext(null, pageContext);
   
    int index = wizard.getCurrentPageIndex();
    int count = wizard.countPages();
   
    writeEventButtonTag(WIZARD_GOTO_EVENT_ID,
        new Integer(index - 1).toString(), index == 0, WIZARD_GOTO_PREV_LABEL_ID);
    writeEventButtonTag(WIZARD_GOTO_EVENT_ID,
        new Integer(index + 1).toString(), index == count - 1, WIZARD_GOTO_NEXT_LABEL_ID);
View Full Code Here

*/
public class WizardHeaderTag extends UiBaseTag {
  private static Logger log = Logger.getLogger(WizardHeaderTag.class);

  protected int before(Writer out) throws Exception {
    WizardContext wizard = (WizardContext) UiWidgetUtil.getWidgetFromContext(null, pageContext);
   
    int index = wizard.getCurrentPageIndex();
    int count = wizard.countPages();
   
    StringBuffer sb = new StringBuffer();
    sb.append("Page ");
    sb.append(index + 1);
    sb.append(" of ");
View Full Code Here

TOP

Related Classes of org.araneaframework.template.framework.context.WizardContext

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.