Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2226

Customise actionOutcome and actionMethod parameter names on s:link

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.GA
    • Fix Version/s: The future
    • Component/s: Core
    • Labels:
      None

      Description

      For conversion id, JBoss Seam provide customize method, for example:
      <core:manager
      conversation-timeout="300000"
      conversation-id-parameter="cid"
      />

      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:

      UIAction:
      public String getName()

      { return isMethodBinding() ? "actionMethod" : "actionOutcome"; }

      Pages:
      private static boolean callAction(FacesContext facesContext)
      {
      //TODO: refactor with Pages.instance().callAction()!!

      boolean result = false;

      String outcome = facesContext.getExternalContext()
      .getRequestParameterMap().get("actionOutcome");
      String fromAction = outcome;

      if (outcome==null)
      {
      String actionId = facesContext.getExternalContext()
      .getRequestParameterMap().get("actionMethod");
      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); }

      }
      else

      { handleOutcome(facesContext, outcome, fromAction); }

      return result;
      }

      Can let us change them just like conversion id? Thanks

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cftdanny Danny Chen
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: