ivelin      2002/10/27 00:24:43

  Modified:    src/java/org/apache/cocoon/acting AbstractXMLFormAction.java
  Log:
  Implement automated population with default values of unchecked check-boxes
  
  Revision  Changes    Path
  1.8       +15 -11    
xml-cocoon2/src/java/org/apache/cocoon/acting/AbstractXMLFormAction.java
  
  Index: AbstractXMLFormAction.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/acting/AbstractXMLFormAction.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AbstractXMLFormAction.java        21 Sep 2002 22:57:18 -0000      1.7
  +++ AbstractXMLFormAction.java        27 Oct 2002 07:24:43 -0000      1.8
  @@ -164,17 +164,21 @@
     }
   
   
  -  /** 
  +  /**
      *
      * FormListener callback
  -   * called in the beginning Form.populate()
  +   * called in the beginning of Form.populate()
      * before population starts.
      *
  -   * This is the place to handle unchecked checkboxes, special validation or 
  -   * application specific rules.
  +   * This is the place to intialize the model for this request.
  +   * 
  +   * This method should not handle unchecked check boxes
  +   * when the form is session scope, which is the most common case.
  +   * It should only do so, if the form is request scoped.
      *
  -   */
  -  public void reset( Form form )
  +   */  
  +
  +public void reset( Form form )
     {
       // Do Nothing by default
       return;
  @@ -454,7 +458,7 @@
         }
     }
   
  -
  +  
     /**
      * Extract xmlform-model
      * action parameter and
  @@ -466,7 +470,7 @@
      *
      */
     protected Object getFormModel()
  -  {
  +  { 
       try
         {
           String modelClassName = getParameters().getParameter("xmlform-model", null);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to