You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by rl...@apache.org on 2004/03/25 06:12:59 UTC
cvs commit: jakarta-struts/src/examples/org/apache/struts/webapp/validator MessageResources.properties TypeForm.java
rleland 2004/03/24 21:12:59
Modified: src/examples/org/apache/struts/webapp/validator
MessageResources.properties TypeForm.java
Log:
Bug#: 27899
Modify example to test proper behaviour is a property
is named 'name'
Revision Changes Path
1.2 +1 -0 jakarta-struts/src/examples/org/apache/struts/webapp/validator/MessageResources.properties
Index: MessageResources.properties
===================================================================
RCS file: /home/cvs/jakarta-struts/src/examples/org/apache/struts/webapp/validator/MessageResources.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MessageResources.properties 8 Jan 2004 16:18:19 -0000 1.1
+++ MessageResources.properties 25 Mar 2004 05:12:59 -0000 1.2
@@ -55,6 +55,7 @@
multiRegistrationForm.description=multi-page example with client side JavaScript validation and server side validation
# Type form
+typeForm.name.displayname=String Field
typeForm.byte.displayname=Byte Field
typeForm.checkbox.wouldrecommend=I would recommend
typeForm.checkbox.used.languages=Programming Languages used
1.4 +23 -15 jakarta-struts/src/examples/org/apache/struts/webapp/validator/TypeForm.java
Index: TypeForm.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/examples/org/apache/struts/webapp/validator/TypeForm.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TypeForm.java 14 Mar 2004 06:23:49 -0000 1.3
+++ TypeForm.java 25 Mar 2004 05:12:59 -0000 1.4
@@ -4,13 +4,13 @@
* $Date$
*
* Copyright 2000-2004 The Apache Software Foundation.
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,7 +36,7 @@
*/
public final class TypeForm extends ValidatorForm implements Serializable {
private String action = null;
-
+ private String name = null; //Used to test Multiform per page validation when property name is 'name'
private String sByte = null;
private String sShort = null;
private String sInteger = null;
@@ -54,15 +54,23 @@
private List lNames = initNames();
- public String getAction() {
- return action;
- }
-
- public void setAction(String action) {
- this.action = action;
- }
+ public String getAction() {
+ return action;
+ }
+
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
- public String getByte() {
+ public String getByte() {
return sByte;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org