cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples Form1Handler.java
Date Fri, 31 Oct 2003 12:24:55 GMT
bruno       2003/10/31 04:24:55

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/samples
                        Form1Handler.java
  Log:
  updated for changed FormHandler interface
  
  Revision  Changes    Path
  1.5       +10 -9     cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Form1Handler.java
  
  Index: Form1Handler.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/samples/Form1Handler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Form1Handler.java	24 Sep 2003 20:47:07 -0000	1.4
  +++ Form1Handler.java	31 Oct 2003 12:24:55 -0000	1.5
  @@ -50,19 +50,20 @@
   */
   package org.apache.cocoon.woody.samples;
   
  -import org.apache.cocoon.woody.FormContext;
  -import org.apache.cocoon.woody.FormHandler;
   import org.apache.cocoon.woody.event.ActionEvent;
  -//import org.apache.cocoon.woody.event.RepeaterHandler;
  +import org.apache.cocoon.woody.event.AbstractFormHandler;
  +import org.apache.cocoon.woody.event.ValueChangedEvent;
   
   /**
    * Example FormHandler for the "Form1" sample form.
  + * This implementation currently doesn't do anything interesting.
    */
  -public class Form1Handler implements FormHandler {
  -// FIXME: find another use-case, this repeaters are handled by <repeater-action>
widgets
  -//    private RepeaterHandler delegate = new RepeaterHandler("contacts", "add-contact",
"remove-selected-contacts", "select");
  -    
  -    public void handleActionEvent(FormContext context, ActionEvent actionEvent) {
  -//        this.delegate.handleActionEvent(context, actionEvent);
  +public class Form1Handler extends AbstractFormHandler {
  +    public void handleActionEvent(ActionEvent actionEvent) {
  +        //System.out.println("action event reported to Form1Handler: " + actionEvent.getActionCommand());
  +    }
  +
  +    public void handleValueChangedEvent(ValueChangedEvent valueChangedEvent) {
  +        //System.out.println("value changed reported to Form1Handler");
       }
   }
  
  
  

Mime
View raw message