U mean a javascript error ?
u need to define a message.properties file too which will define the error
messa
2006/8/6, Bart Busschots [EMAIL PROTECTED]:
OK, I got all this figured out in the end.
The validator was being called but because of problems with the page
attribute in the form the
for example :
mentor.createStudentGroup
.groupName.label = the Student Group Name
2006/8/7, Romu [EMAIL PROTECTED]:
U mean a javascript error ?
u need to define a message.properties file too which will define the
error messa
2006/8/6, Bart Busschots [EMAIL PROTECTED]:
OK, I got
Romu wrote:
U mean a javascript error ?
No, I don't use clientside validation on my forms. It's going to the
server anyhow so I don't see the point, just an extra layer for things
to not work in.
u need to define a message.properties file too which will define the
error
messa
Good
?
-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 06, 2006 3:33 PM
To: Struts Users Mailing List
Subject: Re: Validator not getting called and I can't see why [resolved]
OK, I got all this figured out in the end.
The validator was being called but because
OK, I got all this figured out in the end.
The validator was being called but because of problems with the page
attribute in the form the validator appears to have been receiving a
page value of zero and hence not validating the items on pages 1 or two
because neither 1 nor 2 are less that or
Can you override the validate() method inside your form and just call
super.validate(), then see what the error collection has?
At least then you know it was called, but may not have done what you thought it
should:
package view.struts.forms;
import javax.servlet.http.HttpServletRequest;
: Friday, August 04, 2006 10:41 AM
To: Struts Users Mailing List
Subject: Re: Validator not getting called and I can't see why
Hi Eric,
Thanks for the reply but I'm using a DynaValidatorForm so I don't have a
class to override things in. I would assume that DynaValidatorForm
validates correctly
Try turning on logging in debug mode, should give you more info about
what its doing.
Niall
On 8/3/06, Bart Busschots [EMAIL PROTECTED] wrote:
I'm either missing something stupid (which is always possible) or I've
managed to break the validator. I have an app that uses validator all
over the
Hi Niall,
I don't seem to be able to get log output form the validator. Maybe I'm
doing something wrong?
This is my commons-logging.properties file:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.defaultlog=debug
On 8/5/06, Bart Busschots [EMAIL PROTECTED] wrote:
Hi Niall,
I don't seem to be able to get log output form the validator. Maybe I'm
doing something wrong?
This is my commons-logging.properties file:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
Just curios - that's the only createStudentGroupForm instance in your
struts config?
Since DynaValidatorForm extends DynaActionForm it inherits' the
DynaActionForm toString - which always just starts off with
DynaActionForm[... - in the action, can you log the actual class
Do you have the property page being submitted with your form:
html:hidden property=page value=1/
Also, are you sure that the validation isn't working and the error
messages aren't getting displayed? Can you send the jsp source?
-Matt
On 8/3/06, Bart Busschots [EMAIL PROTECTED] wrote:
I'm
12 matches
Mail list logo