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


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.

Reply via email to