[
https://issues.apache.org/jira/browse/WICKET-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor Vaynberg resolved WICKET-2780.
-----------------------------------
Resolution: Fixed
tried with 1.4.10, when i enter 123456 in the second field i get:
* '123456' is not a valid Date.
* error
> Containers in forms inside a border is not validated correctly
> --------------------------------------------------------------
>
> Key: WICKET-2780
> URL: https://issues.apache.org/jira/browse/WICKET-2780
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.1, 1.4.7
> Environment: Tested with 1.4.1, but 1.4.7 code looks identical
> Reporter: Adriano dos Santos Fernandes
> Assignee: Juergen Donnerstag
> Attachments: bordervalidation.zip, bordervalidation2.zip
>
>
> I've a border that have a form and in that form there is a DateField
> component. DateField is a FormComponentPanel with a embedded DateTextField.
> This code below in Form.java does not validate that component correctly, when
> an invalid date is entered.
> // Borders need special treatment
> if (!error[0] && (getParent() instanceof Border))
> {
> MarkupContainer border = getParent();
> Iterator<? extends Component> iter = border.iterator();
> while (!error[0] && iter.hasNext())
> {
> Component child = iter.next();
> if ((child != this) && (child instanceof
> FormComponent))
> {
> visitor.component(child);
> }
> }
> }
> The problem is that the visitor is not used to go deeper in the hierarchy, so
> the DateTextField is never reached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.