/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #setActionExpression(javax.el.MethodExpression)}. */ public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
/** * @deprecated Use setActionExpression instead. */ public void setAction(MethodBinding action) { if (action != null) { setActionExpression(new _MethodBindingToMethodExpression(action)); } else { setActionExpression(null); } }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #setActionExpression(javax.el.MethodExpression)}. */ @Override public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #setActionExpression(javax.el.MethodExpression)}. */ public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
/** * {@inheritDoc} * @deprecated This has been replaced by {@link #setActionExpression(javax.el.MethodExpression)}. */ public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
/** * @deprecated Use setActionExpression instead. */ public void setAction(MethodBinding action) { if(action != null) { setActionExpression(new _MethodBindingToMethodExpression(action)); } else { setActionExpression(null); } }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #setActionExpression(javax.el.MethodExpression)}. */ @Override public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #setActionExpression(javax.el.MethodExpression)}. */ @Override public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
/** * {@inheritDoc} * * @deprecated This has been replaced by * {@link #setActionExpression(javax.el.MethodExpression)}. */ @Override public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
/** * {@inheritDoc} * * @deprecated This has been replaced by * {@link #setActionExpression(javax.el.MethodExpression)}. */ @Override public void setAction(MethodBinding action) { MethodExpressionMethodBindingAdapter adapter; if (null != action) { adapter = new MethodExpressionMethodBindingAdapter(action); setActionExpression(adapter); } else { setActionExpression(null); } }
public void afterPhase(PhaseEvent event) { if (JsfUtils.isFlowRequest()) { FacesContext context = event.getFacesContext(); if (context.getExternalContext().getRequestParameterMap().containsKey("_eventId")) { UICommand eventSource = new UICommand(); eventSource.setTransient(true); eventSource.setParent(context.getViewRoot()); eventSource.setId("_eventId"); String eventId = context.getExternalContext().getRequestParameterMap().get("_eventId"); eventSource.setActionExpression(convertEventIdToMethodExpression(context, eventId)); context.getViewRoot().queueEvent(new ActionEvent(eventSource)); } } }
public final void testProcessAction_NullOutcome() { String outcome = null; MethodExpression expression = new MethodExpressionStub(outcome); UICommand commandButton = new UICommand(); commandButton.setActionExpression(expression); ActionEvent event = new ActionEvent(commandButton); this.listener.processAction(event); assertFalse("An unexpected event was signaled", this.jsfMock.externalContext().getRequestMap().containsKey(JsfView.EVENT_KEY)); }
public final void testProcessAction() { String outcome = "foo"; MethodExpression expression = new MethodExpressionStub(outcome); UICommand commandButton = new UICommand(); commandButton.setActionExpression(expression); ActionEvent event = new ActionEvent(commandButton); this.listener.processAction(event); assertTrue("The event was not signaled", this.jsfMock.externalContext().getRequestMap().containsKey(JsfView.EVENT_KEY)); assertEquals("The event should be " + outcome, outcome, this.jsfMock.externalContext().getRequestMap().get(JsfView.EVENT_KEY)); }
command.setActionExpression(action);
command.setActionExpression(action);
command.setActionExpression(action);
command.setActionExpression(action);
command.setActionExpression(action);
command.setActionExpression(action);