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 FormContext.java
Date Fri, 31 Oct 2003 12:27:32 GMT
bruno       2003/10/31 04:27:32

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody
                        FormContext.java
  Log:
  Removed get/setActionEvent, events are now stored as part of the Form object.
  
  Revision  Changes    Path
  1.5       +0 -22     cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/FormContext.java
  
  Index: FormContext.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/FormContext.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FormContext.java	24 Sep 2003 20:47:05 -0000	1.4
  +++ FormContext.java	31 Oct 2003 12:27:32 -0000	1.5
  @@ -53,13 +53,11 @@
   import java.util.Locale;
   
   import org.apache.cocoon.environment.Request;
  -import org.apache.cocoon.woody.event.ActionEvent;
   
   public class FormContext {
       
       protected Request request;
       protected Locale locale;
  -    protected ActionEvent actionEvent;
   
       public FormContext(Request request, Locale locale) {
           this.request = request;
  @@ -68,26 +66,6 @@
   
       public FormContext(Request request) {
           this(request, request.getLocale());
  -    }
  -
  -    /**
  -     * Sets the current ActionEvent. An ActionEvent is the result of a certain user
  -     * action that caused a form submit. For example, pressing a button.
  -     *
  -     * <p>This method will be called by the widget that detected an action has been
  -     * performed on it. The Event will then be performed after all widgets have been
  -     * through the "readFromRequest" stage.
  -     *
  -     * <p>If an action event is set, validation is automatically disabled.
  -     */
  -    public void setActionEvent(ActionEvent actionEvent) {
  -        if (this.actionEvent != null)
  -            throw new IllegalStateException("There is already an actionEvent set on this
formContext!");
  -        this.actionEvent = actionEvent;
  -    }
  -
  -    public ActionEvent getActionEvent() {
  -        return actionEvent;
       }
   
       public Request getRequest() {
  
  
  

Mime
View raw message