[
https://issues.apache.org/jira/browse/WICKET-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794643#action_12794643
]
Tamas Cserveny commented on WICKET-2541:
----------------------------------------
Encountered with the same issue. Hidden text fields remained required even
though they were hidden.
Workaround:
Changed wicket:enclosure to wicket:container and hiding the container worked.
> FormComponents hidden by wicket:enclosure should not be validated upon form
> submit
> ----------------------------------------------------------------------------------
>
> Key: WICKET-2541
> URL: https://issues.apache.org/jira/browse/WICKET-2541
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.3
> Reporter: Christian Oldiges
> Assignee: Juergen Donnerstag
> Priority: Minor
>
> FormComponents that are hidden by an enclosing wicket:enclosure tag should
> not by validated.
> If there is a form with 2 form components A and B and an enclosure is used to
> hide both A and B and it is controlled by B.isVisible (wicket:enclosure
> child="B"), the FormComponent A is still validated.
> Simple example: a RequiredTextField is still required even if made invisible
> by a surrounding enclosure.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.