You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Gwyn Evans (JIRA)" <ji...@apache.org> on 2007/11/02 10:22:50 UTC

[jira] Commented: (WICKET-1124) Inner form validators not skipped when inner form disabled

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

Gwyn Evans commented on WICKET-1124:
------------------------------------

There is WICKET-709, which added the ability to remove the Validator, but (without yet looking at the source) I suspect the best way might be to have the validator check it's component is visible before validating.

> Inner form validators not skipped when inner form disabled
> ----------------------------------------------------------
>
>                 Key: WICKET-1124
>                 URL: https://issues.apache.org/jira/browse/WICKET-1124
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta4
>            Reporter: Gwyn Evans
>            Priority: Minor
>
> The specific issue I've just run across is where I have a outer form and, depending upon a checkbox, might have an inner form being enabled or not.  (It's an inner form, rather than just a part of the main form as it's off as a component with it's own panel.)
> Anyway, the inner form has password/confirmPassword fields and an EqualInputValidator, but if the form is displayed but then disabled again (via Ajax, if significant,) when the form's finally submitted I get a warning, saying "IFormValidator in form '...' depends on a component that has been removed from the page or is no longer visible. Offending component id `password`."
> As Igor commented, "looks like we need to update form processing code to skip inner disabled forms".
> /Gwyn

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.