Examples of evaluateExpressionGet()


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

       * Utilizado o procedimento abaixo para obter o usuário logado.
       */
      FacesContext context = FacesContext.getCurrentInstance();
      Application app = context.getApplication();
      CustomerController customerController =
        (CustomerController) app.evaluateExpressionGet(context, "#{customerController}",
            CustomerController.class);
     
      Order order = new Order();
      order.setCustomer(customerController.getCustomer());
      order.setOrderDate(new Timestamp((new Date()).getTime()));
View Full Code Here

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

      /*
       * Recupera os dados que estão em sessão em adminController.
       */
      Application app = context.getApplication();
     
      AdminController adminController = (AdminController) app.evaluateExpressionGet(
          context, "#{adminController}", AdminController.class);
     
      //Se não tiver administrador logado.
      if (adminController.getAdmin().getId() == null) {
        logger.debug("Usuário não logado.");
View Full Code Here

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

      /*
       * Recupera os dados que estão em sessão em CustomerController.
       */
      Application app = context.getApplication();
     
      CustomerController customerController = (CustomerController) app.evaluateExpressionGet(
          context, "#{customerController}", CustomerController.class);
     
      //Se não tiver usuário logado.
      if (customerController.getCustomer().getId() == null) {
        logger.debug("Usuário não logado.");
View Full Code Here

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

        if (context == null)
          throw new UnsupportedOperationException("FacesContext not established yet. Unable to resolve EL bound query" +
                                                  "parameter value: \"" + value + "\"");
       
        Application app = context.getApplication();
        String dynamicValue = app.evaluateExpressionGet(context, value, String.class);
        target.add(dynamicValue);
      }
      else
        target.add(value);
    }
View Full Code Here

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

    if (BridgeUtil.getPortletRequestPhase() ==
        Bridge.PortletPhase.ACTION_PHASE)
    {
      // ensure the managed beans come into existence
      Boolean isIn =
        (Boolean) app.evaluateExpressionGet(ctx, "#{predestroyBean1.inBridgeRequestScope}",
                                            Object.class);
      Map<String, Object> m = extCtx.getRequestMap();
      m.remove("predestroyBean1");

      // Now verify that things worked correctly
View Full Code Here

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

    ExternalContext extCtx = ctx.getExternalContext();
    Application app = ctx.getApplication();

    // ensure the managed beans come into existence
    Boolean isIn =
      (Boolean) app.evaluateExpressionGet(ctx, "#{predestroySessionBean.inBridgeRequestScope}",
                                          Object.class);
    Map<String, Object> m = extCtx.getRequestMap();
    m.remove("predestroySessionBean");

    // Now verify that things worked correctly
View Full Code Here

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

    ExternalContext extCtx = ctx.getExternalContext();
    Application app = ctx.getApplication();

    // ensure the managed beans come into existence
    Boolean isIn =
      (Boolean) app.evaluateExpressionGet(ctx, "#{predestroySessionBean.inBridgeRequestScope}",
                                          Object.class);
    Map<String, Object> m = extCtx.getRequestMap();
    m.remove("predestroySessionBean");

    // Now verify that things worked correctly
View Full Code Here

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

    if (BridgeUtil.getPortletRequestPhase() ==
        Bridge.PortletPhase.ACTION_PHASE)
    {
      // ensure the managed beans come into existence
      Boolean isIn =
        (Boolean) app.evaluateExpressionGet(ctx, "#{predestroyBean1.inBridgeRequestScope}",
                                            Object.class);
      Map<String, Object> m = extCtx.getRequestMap();
      m.remove("predestroyBean1");

      // Now verify that things worked correctly
View Full Code Here

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

  }
 
  private <V> V lookupInContext(String expression, Class<? extends V> c) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application application = facesContext.getApplication();
    return c.cast(application.evaluateExpressionGet(facesContext, MessageFormat.format("#'{'{0}'}'", expression), c));
  }
 
  private String auctionDataModelExpressionString;

  private String auctionDataProviderExpressionString;
View Full Code Here

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

  private Object getFacesBean(Object beanName) {
    FacesContext context = getFacesContext();
    try {
      Application application = context.getApplication();
      String expression = "#{" + beanName + "}";
      return application.evaluateExpressionGet(context, expression, Object.class);
    } finally {
      context.release();
    }
  }
}
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.