RE: page field on DynaValidatorForm class

2003-09-02 Thread aies22
Hi,

You need not define the page field on your DynaValidatorForm declaration. It
is defined in the org.apache...DynaValidatorForm  class.
Embedding html:hidden property=page value=1/ in the form does the
work.

Noam

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 31, 2003 7:57 PM
To: 'Struts Users Mailing List'
Subject: page field on DynaValidatorForm class


Hi,

Do I need to include the declaration of a 
form-property name=page ... in a form of type DynaValidatorForm in
the struts-config.xml?

Thanks in advance,
Erez



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: page field on DynaValidatorForm class

2003-09-02 Thread Erez Efrati
Hi Noam,

I have looked into the code of Struts, and turns out that if you don't
specify a 'page' property in the struts-config.xml the page property
will no get set and will be left as 0 in the DynaValidateForm. As a
rule, any parameter on the request that does not exist in the
configuration of a DynaActionForm and derived, will be ignored, skipped
and no warning gets printed - a bit sad but true.

Erez



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 02, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: RE: page field on DynaValidatorForm class

Hi,

You need not define the page field on your DynaValidatorForm
declaration. It
is defined in the org.apache...DynaValidatorForm  class.
Embedding html:hidden property=page value=1/ in the form does the
work.

Noam

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 31, 2003 7:57 PM
To: 'Struts Users Mailing List'
Subject: page field on DynaValidatorForm class


Hi,

Do I need to include the declaration of a 
form-property name=page ... in a form of type DynaValidatorForm in
the struts-config.xml?

Thanks in advance,
Erez



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: page field on DynaValidatorForm class

2003-09-02 Thread aies22
Thanks Erez, you were right.

I was in the midst of finding that out myself, and you just saved me some
hours of frustration :-)

Noam

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 12:40 PM
To: 'Struts Users Mailing List'
Subject: RE: page field on DynaValidatorForm class


Hi Noam,

I have looked into the code of Struts, and turns out that if you don't
specify a 'page' property in the struts-config.xml the page property
will no get set and will be left as 0 in the DynaValidateForm. As a
rule, any parameter on the request that does not exist in the
configuration of a DynaActionForm and derived, will be ignored, skipped
and no warning gets printed - a bit sad but true.

Erez



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 02, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: RE: page field on DynaValidatorForm class

Hi,

You need not define the page field on your DynaValidatorForm
declaration. It
is defined in the org.apache...DynaValidatorForm  class.
Embedding html:hidden property=page value=1/ in the form does the
work.

Noam

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 31, 2003 7:57 PM
To: 'Struts Users Mailing List'
Subject: page field on DynaValidatorForm class


Hi,

Do I need to include the declaration of a 
form-property name=page ... in a form of type DynaValidatorForm in
the struts-config.xml?

Thanks in advance,
Erez



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



page field on DynaValidatorForm class

2003-08-31 Thread Erez Efrati
Hi,

Do I need to include the declaration of a 
form-property name=page ... in a form of type DynaValidatorForm in
the struts-config.xml?

Thanks in advance,
Erez



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]