Package javax.faces.application

Examples of javax.faces.application.Application.createValueBinding()


    try{
    String param = ((HttpServletRequest) ctx.getExternalContext().getRequest()).getParameter("uniqueId");
        if(param != null){       
          uniqueId = Integer.parseInt(((HttpServletRequest) ctx.getExternalContext().getRequest()).getParameter("uniqueId"));
          Application app = ctx.getApplication();   
          ValueBinding binding = app.createValueBinding("#{approvalActionSession}");   
          Object value = binding.getValue(ctx);   
          ((ApproveActionSessionBean) value).setUniqueId(uniqueId);
        }
    }catch(NumberFormatException e){
    
View Full Code Here


  }

  private EditServiceManagedBean getEditServiceBean(){
    FacesContext context = FacesContext.getCurrentInstance();   
    Application app = context.getApplication();   
    ValueBinding binding = app.createValueBinding("#{editService}");   
    Object value = binding.getValue(context);   
    return (EditServiceManagedBean) value;
  }
}
View Full Code Here

        if (!initialized) {
            return "EXPIRED";
        }
        FacesContext context = FacesContext.getCurrentInstance();
        Application app = context.getApplication();
        ValueBinding binding = app.createValueBinding("#{approvalActionSession}");
        Object value = binding.getValue(context);
        ApproveActionSessionBean approvalActionSession = (ApproveActionSessionBean) value;
        return (String) approvalActionSession.getStatusText().get(Integer.valueOf(data.getStatus()));
    }
View Full Code Here

  }
 
    public static EditServiceManagedBean getBean() {   
      FacesContext context = FacesContext.getCurrentInstance();
      Application app = context.getApplication();
      ValueBinding binding = app.createValueBinding("#{editService}");
      Object value = binding.getValue(context);
      return (EditServiceManagedBean) value;
    }
   
  /** @return the serviceName */
 
View Full Code Here

     }

     public static EjbcaJSFHelper getBean(){   
       FacesContext context = FacesContext.getCurrentInstance();   
       Application app = context.getApplication();   
       ValueBinding binding = app.createValueBinding("#{web}");   
       Object value = binding.getValue(context);   
       return (EjbcaJSFHelper) value;
     }
}
View Full Code Here

            if (component instanceof ActionSource)
            {
                FacesContext facesContext = FacesContext.getCurrentInstance();
                Application application = facesContext.getApplication();
                UpdateActionListener al = new UpdateActionListener();
                al.setPropertyBinding(application.createValueBinding(_property));
                if (UIComponentTag.isValueReference(_value))
                {
                    al.setValueBinding(application.createValueBinding(_value));
                }
                else
View Full Code Here

                Application application = facesContext.getApplication();
                UpdateActionListener al = new UpdateActionListener();
                al.setPropertyBinding(application.createValueBinding(_property));
                if (UIComponentTag.isValueReference(_value))
                {
                    al.setValueBinding(application.createValueBinding(_value));
                }
                else
                {
                    al.setValue(_value);
                }
View Full Code Here

        }

        if (_binding != null)
        {
            Application application = context.getApplication();
            ValueBinding componentBinding = application.createValueBinding(_binding);
            UIComponent component = application.createComponent(componentBinding,
                                                                context,
                                                                componentType);
            component.setId(id);
            component.setValueBinding("binding", componentBinding);
View Full Code Here

            MapEntry entry = (MapEntry) iterator.next();
            Object key = entry.getKey();

            if (UIComponentTag.isValueReference((String) key))
            {
                valueBinding = application.createValueBinding((String) key);
                key = valueBinding.getValue(facesContext);
            }

            if (entry.isNullValue())
            {
View Full Code Here

            else
            {
                Object value = entry.getValue();
                if (UIComponentTag.isValueReference((String) value))
                {
                    valueBinding = application.createValueBinding((String) value);
                    value = valueBinding.getValue(facesContext);
                }
                map.put(ClassUtils.convertToType(key, keyClass), ClassUtils.convertToType(value, valueClass));
            }
        }
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.