Package javax.faces.context

Examples of javax.faces.context.FacesContext


  // @StartGeneration

  protected void setProperties(UIComponent component) {
        super.setProperties(component);
        FacesContext facesContext  = getFacesContext();

    setBooleanAttribute(facesContext,component,"disableKeyNavigation",disableKeyNavigation);
    setBooleanAttribute(facesContext,component,"disabled",disabled);
    setStringAttribute(facesContext,component,"preference",preference);
    setIntegerAttribute(facesContext,component,"rows",rows);
View Full Code Here


   
    // @StartGeneration

  protected void setProperties(UIComponent component) {
        super.setProperties(component);
        FacesContext facesContext  = getFacesContext();

    setStringAttribute(facesContext,component,"accesskey",accesskey);
    setStringAttribute(facesContext,component,"crop",crop);
    setBooleanAttribute(facesContext,component,"disableautoselect",disableautoselect);
    setBooleanAttribute(facesContext,component,"editable",editable);
View Full Code Here

   
    //  @StartGeneration 

  protected void setProperties(UIComponent component) {
        super.setProperties(component);
        FacesContext facesContext  = getFacesContext();

    setIntegerAttribute(facesContext,component,"cols",cols);
    setIntegerAttribute(facesContext,component,"maxlength",maxlength);
    setBooleanAttribute(facesContext,component,"multiline",multiline);
    setStringAttribute(facesContext,component,"onchange",onchange);
View Full Code Here

            event.getSessionMap().put(PRE_LOGIN_URL, requestedUrl);
        }
    }

    public void observePostLoginEvent(@Observes PostLoginEvent event) {
        FacesContext context = event.getFacesContext();
        if (context.getExternalContext().getSessionMap().get(PRE_LOGIN_URL) != null) {
            String oldUrl = (String) context.getExternalContext().getSessionMap().get(PRE_LOGIN_URL);
            context.getExternalContext().getSessionMap().remove(PRE_LOGIN_URL);
            try {
                event.getFacesContext().getExternalContext().redirect(oldUrl);
            } catch (IOException ex) {
                throw new RuntimeException(ex);
            }
View Full Code Here

     */
    public void observePreNavigateEvent(@Observes PreNavigateEvent event) {
        log.debugf("PreNavigateEvent observed %s, %s", event.getOutcome(), event.getFromAction());
        if (Identity.RESPONSE_LOGIN_SUCCESS.equals(event.getOutcome())
                && "#{identity.login}".equals(event.getFromAction())) {
            FacesContext context = event.getContext();
            Map<String, Object> sessionMap = context.getExternalContext().getSessionMap();
            postLoginEvent.fire(new PostLoginEvent(context, sessionMap));
        }
    }
View Full Code Here

            if(log.isTraceEnabled() ) {
                log.trace("*** new TimerBean renderable... " + myId );
            }

            FacesContext fc = FacesContext.getCurrentInstance();
            synchronous = (String) fc.getExternalContext().getInitParameterMap().
                    get( "com.icesoft.faces.synchronousUpdate" );
            boolean timed = Boolean.valueOf( (String) fc.getExternalContext().getInitParameterMap().
                    get("org.icesoft.examples.serverClock"));

            if (timed) {
                ir = renderManager.getIntervalRenderer("org.icesoft.clock.clockRenderer");
                ir.setInterval(5000);
View Full Code Here

            add(BeanManagerServletContextListener.BEANMANAGER_SERVLETCONTEXT_KEY);
        }
    };

    public BeanManager getBeanManager() {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        if (facesContext == null) {
            return null;
        }
        ServletContext servletContext = (ServletContext) facesContext.getExternalContext().getContext();
        return getBeanManager(servletContext);
    }
View Full Code Here

  // @StartGeneration

  protected void setProperties(UIComponent component) {
        super.setProperties(component);
        FacesContext facesContext  = getFacesContext();

    setBooleanAttribute(facesContext,component,"editable",editable);
    setStringAttribute(facesContext,component,"label",label);
    setStringAttribute(facesContext,component,"mode",mode);
    setStringAttribute(facesContext,component,"properties",properties);
View Full Code Here

    // @StartGeneration

  protected void setProperties(UIComponent component) {
        super.setProperties(component);
        FacesContext facesContext  = getFacesContext();

    setStringAttribute(facesContext,component,"properties",properties);

  }
View Full Code Here

   
    // @StartGeneration

  protected void setProperties(UIComponent component) {
        super.setProperties(component);
        FacesContext facesContext  = getFacesContext();

    setStringAttribute(facesContext,component,"pickertooltiptext",pickertooltiptext);

  }
View Full Code Here

TOP

Related Classes of javax.faces.context.FacesContext

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.