Package javax.el

Examples of javax.el.MethodExpression.invoke()


        if (afterPhaseExpression != null)
        {
            PhaseEvent event = new PhaseEvent(facesContext, getPhase(), _getLifecycle(facesContext));
            try
            {
                afterPhaseExpression.invoke(facesContext.getELContext(), new Object[] { event });
            }
            catch (Throwable t)
            {
                log.log(Level.SEVERE, "An Exception occured while processing " +
                        afterPhaseExpression.getExpressionString() +
View Full Code Here


        }
        MethodExpression afterPhase = viewRoot.getAfterPhaseListener();
        if (null != afterPhase) {
            try {
                PhaseEvent event = new PhaseEvent(context, PhaseId.RESTORE_VIEW, lifecycle);
                afterPhase.invoke(context.getELContext(), new Object[]{event});
            }
            catch (Exception e) {
                if (LOGGER.isLoggable(Level.SEVERE)) {
                    LOGGER.log(Level.SEVERE,
                               "severe.component.unable_to_process_expression",
View Full Code Here

//        context.setDateHeader("Last-Modified",modified.getTime());
//      }
      // Send content
      OutputStream out = context.getOutputStream();
      MethodExpression send = (MethodExpression) UIComponentBase.restoreAttachedState(facesContext,data.createContent);
      send.invoke(elContext,new Object[]{out,data.value});
    }
  }

 
  @Override
View Full Code Here

    MethodExpression listenerExpression = before ? getBeforePhaseListener()
        : getAfterPhaseListener();
    PhaseEvent event = null;
    if (null != listenerExpression) {
      event = createPhaseEvent(context, phase);
      listenerExpression.invoke(context.getELContext(),
          new Object[] { event });
    }
    if (null != this.phaseListeners) {
      for (PhaseListener listener : phaseListeners) {
        PhaseId phaseId = listener.getPhaseId();
View Full Code Here

        FlowDeque<Flow> flowStack = getFlowStack(context);
        flowStack.addFirst(toPush, lastDisplayedViewId);
        FlowCDIContext.flowEntered();
        MethodExpression me  = toPush.getInitializer();
        if (null != me) {
            me.invoke(context.getELContext(), null);
        }
    }
   
    private Flow peekFlow(FacesContext context) {
        FlowDeque<Flow> flowStack = getFlowStack(context);
View Full Code Here

    }
   
    private void callFinalizer(FacesContext context, Flow currentFlow) {
        MethodExpression me  = currentFlow.getFinalizer();
        if (null != me) {
            me.invoke(context.getELContext(), null);
        }
        FlowCDIContext.flowExited();
    }
   
    private FlowDeque<Flow> getFlowStack(FacesContext context) {
View Full Code Here

          if (!submittedCurrentDate.equals(currentDate)) {
            updateCurrentDate(facesContext, submittedCurrentDate);
            MethodExpression methodExpression = getCurrentDateChangeListener();
            if (methodExpression != null) {
                methodExpression.invoke(facesContext.getELContext(), new Object[] { dateChangeEvent });
            }
          }
         
        } catch (Exception e) {
          // XXX nick - kaa - add log.debug(...)
View Full Code Here

    final TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
    final String id  = suggest.getClientId(facesContext);
    final UIIn in = (UIIn) suggest.getParent();
    final MethodExpression suggestMethodExpression = suggest.getSuggestMethodExpression();
    final AutoSuggestItems items
        = createAutoSuggestItems(suggestMethodExpression.invoke(facesContext.getELContext(), new Object[]{in}));
    // todo: declare unused/unsupported stuff deprecated

    writer.startElement(HtmlElements.DIV, null);
    writer.writeClassAttribute(Classes.create(suggest));
    writer.writeIdAttribute(id);
View Full Code Here

          if (!submittedCurrentDate.equals(currentDate)) {
            updateCurrentDate(facesContext, submittedCurrentDate);
            MethodExpression methodExpression = getCurrentDateChangeListener();
            if (methodExpression != null) {
                methodExpression.invoke(facesContext.getELContext(), new Object[] { dateChangeEvent });
            }
          }
         
        } catch (Exception e) {
          // XXX nick - kaa - add log.debug(...)
View Full Code Here

        Map<String, Object> results = new HashMap<String, Object>();
        for (int i = 0; i < requestedValues.length; i++) {
      String requestedValue = requestedValues[i];
      if (requestedValue != null) {
          setValue(suggestingAction.invoke(
            context.getELContext(), new Object[]{requestedValue}));

          setRowIndex(-1);

          int j = 0;
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.