Package org.apache.empire.jsf2.pages

Examples of org.apache.empire.jsf2.pages.PageNavigationHandler


        return ObjectUtils.getBoolean(disabled);
    }

    private UIInput createSelectOneMenu(TextResolver textResolver)
    {
        SelectInputControl control = (SelectInputControl)InputControlManager.getControl(SelectInputControl.NAME);
        HtmlSelectOneMenu input = control.createMenuComponent(this);
        // css style
        String userStyle = StringUtils.toString(getAttributes().get("styleClass"));
        String cssStyle  = TagEncodingHelper.getTagStyleClass("eSelect", null, null, userStyle);
        input.setStyleClass(cssStyle);
        // other attributes
        copyAttributes(input);
        // Options
        Options options = getOptionList();
        boolean addEmpty = isAllowNull() && !options.contains("");
        control.initOptions(input, textResolver, options, addEmpty, getNullText());
        // disabled
        boolean disabled = isDisabled();
        input.setDisabled(disabled);
        control.addRemoveDisabledStyle(input, disabled);
        // input.setLabel(getLabelString());
        // input.setRequired(col.isRequired() && !col.isAutoGenerated());
        // input.setId(this.getId() + INPUT_SUFFIX);
        input.setValue(getValue());
        return input;
View Full Code Here


        return ObjectUtils.getBoolean(disabled);
    }

    private UIInput createSelectOneMenu(TextResolver textResolver)
    {
        SelectInputControl control = (SelectInputControl)InputControlManager.getControl(SelectInputControl.NAME);
        HtmlSelectOneMenu input = control.createMenuComponent(this);
        // css style
        String userStyle = StringUtils.toString(getAttributes().get("styleClass"));
        String cssStyle  = TagEncodingHelper.getTagStyleClass("eSelect", null, null, userStyle);
        input.setStyleClass(cssStyle);
        // other attributes
View Full Code Here

    // trace
    SampleApplication.log.trace("SampleApplication created");
    SampleApplication.sampleApplication = this;

    // register custom control types
    InputControlManager.registerControl(new FileInputControl());
  }
View Full Code Here

    // trace
    SampleApplication.log.trace("SampleApplication created");
    SampleApplication.sampleApplication = this;

    // register custom control types
    InputControlManager.registerControl(new FileInputControl());
  }
View Full Code Here

    // trace
    SampleApplication.log.trace("SampleApplication created");
    SampleApplication.sampleApplication = this;

    // register custom control types
    InputControlManager.registerControl(new FileInputControl());
  }
View Full Code Here

   
    /* Pages */

    public static Page getPage(final FacesContext fc)
    {
        Page page = (Page) getManagedBean(fc, "page");
        if (page==null)
            log.error("Page bean {} does not exist!");
        return page;
    }
View Full Code Here

   
    /* Pages */

    public static Page getPage(final FacesContext fc)
    {
        Page page = (Page) getManagedBean(fc, "page");
        if (page==null)
            log.error("Page bean {} does not exist!");
        return page;
    }
View Full Code Here

   
    /* Pages */

    public static Page getPage(final FacesContext fc)
    {
        Page page = (Page) getManagedBean(fc, "page");
        if (page==null)
            log.error("Page bean {} does not exist!");
        return page;
    }
View Full Code Here

  }

  public void doLogout()
  {
    // Perform logout
    PageOutcome logout = this.getPageDefinition().getRedirect().addParam("logout", String.valueOf(true));
    navigateTo( logout );
   
        // Invalidate Session
    FacesUtils.getContext().getExternalContext().invalidateSession();
  }
View Full Code Here

  }

  public void doLogout()
  {
    // Perform logout
    PageOutcome logout = this.getPageDefinition().getRedirect().addParam("logout", String.valueOf(true));
    redirectTo( logout );
   
        // Invalidate Session
    FacesUtils.getContext().getExternalContext().invalidateSession();
  }
View Full Code Here

TOP

Related Classes of org.apache.empire.jsf2.pages.PageNavigationHandler

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.