You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Matej Knopp (JIRA)" <ji...@apache.org> on 2007/09/01 20:49:19 UTC
[jira] Commented: (WICKET-775) Buggy behaviour in
FormComponentPanel.setRequired(boolean)
[ https://issues.apache.org/jira/browse/WICKET-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524296 ]
Matej Knopp commented on WICKET-775:
------------------------------------
What do we do about it?
> Buggy behaviour in FormComponentPanel.setRequired(boolean)
> ----------------------------------------------------------
>
> Key: WICKET-775
> URL: https://issues.apache.org/jira/browse/WICKET-775
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.0-beta2
> Reporter: Kadir Sener GUMUS
> Fix For: 1.3.0-beta4
>
>
> When you set a required flag for a FormComponentPanel in a form, the component does not check its children while validating if it is required or not, and throws "required" exception! Because "checkRequired()" method that inherited from FormComponent calls "getInput()", then that method calls "getInputAsArray()", and then the last called method "getInputAsArray" looks for values from the http request parameters with the formComponentPanel name. Hence there is no any parameter in request with the formComponentPanel name, it thinks itself as empty and throws the validation error. IMHO, FormComponentPanel class should override "checkRequired()" method or "getInput()" method to delegate work to its children components.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.