public String getCommand() { MethodExpression expr = super.getActionExpression(); return expr != null ? expr.getExpressionString() : null; }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #getActionExpression}. */ @Override public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter) me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #getActionExpression}. */ public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter) me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #getActionExpression}. */ public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter) me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #getActionExpression}. */ @Override public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter) me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
/** * {@inheritDoc} * @deprecated This has been replaced by {@link #getActionExpression}. */ public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter)me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
String methodExpression = component.getActionExpression().getExpressionString(); System.out.println("Method expression of the action being invoked: " + methodExpression);
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #getActionExpression}. */ @Override public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter) me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #getActionExpression}. */ @Override public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter) me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
/** * @deprecated Use getActionExpression() instead. */ public MethodBinding getAction() { MethodExpression actionExpression = getActionExpression(); if (actionExpression instanceof _MethodBindingToMethodExpression) { return ((_MethodBindingToMethodExpression)actionExpression).getMethodBinding(); } if(actionExpression != null) { return new _MethodExpressionToMethodBinding(actionExpression); } return null; }
/** * {@inheritDoc} * * @deprecated This has been replaced by {@link #getActionExpression}. */ @Override public MethodBinding getAction() { MethodBinding result = null; MethodExpression me; if (null != (me = getActionExpression())) { // if the MethodExpression is an instance of our private // wrapper class. if (me.getClass().equals(MethodExpressionMethodBindingAdapter.class)) { result = ((MethodExpressionMethodBindingAdapter) me).getWrapped(); } else { // otherwise, this is a real MethodExpression. Wrap it // in a MethodBinding. result = new MethodBindingMethodExpressionAdapter(me); } } return result; }
public void afterPhase(PhaseEvent event) { FacesContext context = event.getFacesContext(); if (context.isPostback()) { UICommand component = findInvokedCommandComponent(context); if (component != null && component.getActionExpression() != null) { String methodExpression = component.getActionExpression().getExpressionString(); if (StringUtils.hasText(methodExpression)) { methodExpression = methodExpression.replace("#{", "").replace("}", ""); //restart the conversation if invoke method is called if (methodExpression.endsWith("invoke")) { String methodExpressionParts[] = methodExpression.split("\\."); if (methodExpressionParts != null && methodExpressionParts.length > 0) { ConversationManager conversationManager = ConversationManager.getInstance(false); Conversation conversation = conversationManager.getConversation(methodExpressionParts[0]); ConversationUtils.invalidateAndRestart(conversation); } } } } } }
MethodExpression actionExpression = getActionExpression(); if (actionExpression instanceof _MethodBindingToMethodExpression)