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/formmodel Button.java
Date Tue, 26 Aug 2003 13:56:35 GMT
bruno       2003/08/26 06:56:35

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/formmodel
                        Button.java
  Log:
  check that submitted value is not only != null but also contains something.
  
  Revision  Changes    Path
  1.3       +1 -1      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/Button.java
  
  Index: Button.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/Button.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Button.java	5 Jul 2003 22:53:33 -0000	1.2
  +++ Button.java	26 Aug 2003 13:56:35 -0000	1.3
  @@ -76,7 +76,7 @@
   
       public void readFromRequest(FormContext formContext) {
           String value = formContext.getRequest().getParameter(getFullyQualifiedId());
  -        if (value != null) {
  +        if (value != null && value.length() > 0) {
               formContext.setActionEvent(new ActionEvent() {
                   public String getActionCommand() {
                       return definition.getActionCommand();
  
  
  

Mime
View raw message