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

Peter Muir peter at bleepbleep.org.uk
Tue Jan 8 08:11:43 EST 2008


  User: pmuir   
  Date: 08/01/08 08:11:43

  Modified:    src/main/org/jboss/seam/navigation  Param.java
  Log:
  JBSEAM-2112
  
  Revision  Changes    Path
  1.12      +3 -1      jboss-seam/src/main/org/jboss/seam/navigation/Param.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Param.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/navigation/Param.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- Param.java	8 Jan 2008 04:50:59 -0000	1.11
  +++ Param.java	8 Jan 2008 13:11:43 -0000	1.12
  @@ -12,6 +12,7 @@
   import javax.faces.validator.ValidatorException;
   
   import org.hibernate.validator.InvalidValue;
  +import org.jboss.seam.contexts.Contexts;
   import org.jboss.seam.core.SeamResourceBundle;
   import org.jboss.seam.core.Validators;
   import org.jboss.seam.core.Expressions.ValueExpression;
  @@ -164,7 +165,8 @@
   
         if (parameterValues==null || parameterValues.length==0)
         {
  -         if ( isRequired() )
  +         // Page parameters are propagated in the page context through faces requests
  +         if ( isRequired() && !Contexts.getPageContext().isSet( getName() ) )
            {
               addRequiredMessage(facesContext);
            }
  
  
  



More information about the jboss-cvs-commits mailing list