You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2003/08/26 15:56:35 UTC
cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel Button.java
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();