[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2226) Need Customer actionOutcome and actionMethod

Danny Chen (JIRA) jira-events at lists.jboss.org
Thu Nov 8 10:24:55 EST 2007

Need Customer actionOutcome and actionMethod

                 Key: JBSEAM-2226
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2226
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: Core
    Affects Versions: 2.0.0.GA
            Reporter: Danny Chen

For conversion id, JBoss Seam provide customize method, for example:

But for <s:link>, <s:button>'s actionOutcome and actionMethod, there isn't a way to change these id. I find it is hardcode in:

   public String getName()
      return isMethodBinding() ? "actionMethod" : "actionOutcome";

private static boolean callAction(FacesContext facesContext)
      //TODO: refactor with Pages.instance().callAction()!!
      boolean result = false;
      String outcome = facesContext.getExternalContext()
      String fromAction = outcome;
      if (outcome==null)
         String actionId = facesContext.getExternalContext()
         if (actionId!=null)
            if ( !SafeActions.instance().isActionSafe(actionId) ) return result;
            String expression = SafeActions.toAction(actionId);
            result = true;
            MethodExpression actionExpression = Expressions.instance().createMethodExpression(expression);
            outcome = toString( actionExpression.invoke() );
            fromAction = expression;
            handleOutcome(facesContext, outcome, fromAction);
         handleOutcome(facesContext, outcome, fromAction);
      return result;

Can let us change them just like conversion id? Thanks

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list