You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Michael Pritt (JIRA)" <ji...@apache.org> on 2014/06/25 19:50:25 UTC

[jira] [Commented] (WICKET-4344) Implement onValidateModelObjects() and beforeUpdateFormComponentModels() for nested forms

    [ https://issues.apache.org/jira/browse/WICKET-4344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14043825#comment-14043825 ] 

Michael Pritt commented on WICKET-4344:
---------------------------------------

The only workaround is for a parent to know about the child and it's validation.  Please fix.

> Implement onValidateModelObjects() and beforeUpdateFormComponentModels() for nested forms
> -----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4344
>                 URL: https://issues.apache.org/jira/browse/WICKET-4344
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5.7
>            Reporter: Christian Wellekötter
>
> The onValidateModelObjects() Method in a Form is used for late-stage validation that allows outside frameworks to validate any beans that the form is updating (like JSR303 Bean Validation). This method is called after the model is updated.
> If you override this method for validation in your form and your form is nested in another form, this method will not be invoked if the outer form is submitted. Only the onValidateModelObjects() Method of the outer form is invoked.
> It would be great, if you change the implementation in the form in that way you did for the nested form validation and submission.
> The same problem exists for the beforeUpdateFormComponentModels() Method.



--
This message was sent by Atlassian JIRA
(v6.2#6252)