Hello. I am having a problem getting "repopulateField" to work. In short, I have added date validation to one of my actions. In my validation xml file, I have this:

    <field name="moviereview.reviewdate">
        <field-validator type="conversion" short-circuit="true">
                <param name="repopulateField">true</param>
                <message>Date of Review entered is not a valid date.</message>
       </field-validator>
        <field-validator type="date">
                <param name="min">01/01/2007</param>
                <param name="max">12/31/2008</param>
                <message>Date of Review is out of range. </message>
        </field-validator>
    </field>

My problem is that "repopulateField" is not actually repopulating the moviereview.reviewdate field on a conversion error. The field is blank.

In my action, I have a "moviereview" object that has a getter and setter (i.e. "setMoviereview() and getMoviereview()"). So, "reviewdate" is a Date that belongs to that parent object. I don't know if that's related at all, though.

Any idea why this isn't working?

Kevin

Reply via email to