Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Date Validation using Struts Problem.

800409Jan 12 2006 — edited Jan 12 2006
For most of my screens my date validation works fine. But some of my screens have tabs on them. For the screens with tabs there is still one form. If the screen has 1 tab everything works fine. But in the case where there are 2 tabs and say the first one has a date field. When I'm on the second tab I get the validation error. So it seems that because the field is not defined on the page I'm getting a javascirpt error.. but only for dates.

the error is

Error: field has no property.

This error occurs in Firefox but not the most updated version of IE6 (sp2 I think?)

it does occur on IE6 under windows 2000.

Any ideas.

Here is my validation.xml for the field.
<field property="idfT384271"
                     depends="date">

                  <arg0 key="T384Form.idfT384271"/>
                  <var>
                    <var-name>datePattern</var-name>
                    <var-value>MM/dd/yyyy</var-value>
                  </var>
              </field>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2006
Added on Jan 12 2006
2 comments
196 views