[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...

Stan Silvert ssilvert at jboss.com
Wed Aug 9 16:30:08 EDT 2006


  User: ssilvert
  Date: 06/08/09 16:30:08

  Modified:    src/main/org/jboss/seam/core  Pages.java
  Log:
  Add support for action params.  See http://jira.jboss.com/jira/browse/JBSEAM-329
  
  Revision  Changes    Path
  1.20      +4 -3      jboss-seam/src/main/org/jboss/seam/core/Pages.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Pages.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Pages.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- Pages.java	2 Aug 2006 17:50:26 -0000	1.19
  +++ Pages.java	9 Aug 2006 20:30:08 -0000	1.20
  @@ -22,6 +22,7 @@
   import org.dom4j.io.SAXReader;
   import org.jboss.seam.Component;
   import org.jboss.seam.ScopeType;
  +import org.jboss.seam.actionparam.ActionParamMethodBinding;
   import org.jboss.seam.annotations.Create;
   import org.jboss.seam.annotations.Intercept;
   import org.jboss.seam.annotations.Name;
  @@ -106,7 +107,7 @@
               {
                  if ( action.startsWith("#{") )
                  {
  -                  MethodBinding methodBinding = FacesContext.getCurrentInstance().getApplication().createMethodBinding(action, null);
  +                  MethodBinding methodBinding = new ActionParamMethodBinding(FacesContext.getCurrentInstance(), action);
                     actionsByViewId.put(viewId, methodBinding);
                  }
                  else
  @@ -216,7 +217,7 @@
               String expression = "#{" + action + "}";
               if ( !isActionAllowed(facesContext, expression) ) return result;
               result = true;
  -            MethodBinding actionBinding = facesContext.getApplication().createMethodBinding(expression, null);
  +            MethodBinding actionBinding = new ActionParamMethodBinding(facesContext, expression);
               outcome = toString( actionBinding.invoke(facesContext, null) );
               fromAction = expression;
            }
  
  
  



More information about the jboss-cvs-commits mailing list