You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2011/06/15 17:39:47 UTC
[jira] [Commented] (PIVOT-758) Required Fields inside a Form
[ https://issues.apache.org/jira/browse/PIVOT-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049818#comment-13049818 ]
Sandro Martini commented on PIVOT-758:
--------------------------------------
Extract from discussion in Mailing List:
> This would only work if all form fields were guaranteed to be TextInputs, which they are not.
> There is no way to generically ensure that a "required" field has a value, because there is no API in Component such as "hasValue():boolean" (nor do I think there should be).
All the Form "required" stuff should be removed in 2.0.1 final, so for for the 2.1:
if (opt., only when desired) use validators in all input elements (text, date, etc), verify if it makes sense to implement a way to let application developers to use a Form method to call all validators of its elements and collect all results.
And probably even this issue could be renamed ...
> Required Fields inside a Form
> -----------------------------
>
> Key: PIVOT-758
> URL: https://issues.apache.org/jira/browse/PIVOT-758
> Project: Pivot
> Issue Type: Improvement
> Components: wtk, wtk-terra
> Reporter: Sandro Martini
> Assignee: Sandro Martini
> Priority: Minor
> Fix For: 2.1
>
>
> Improve the implementation of "required" inside Form, so is will be possible to make some simple validation (for example at form submit, like in HTML forms), like verify that all required fields have a value inside.
> The old discussion is here:
> http://apache-pivot-users.399431.n3.nabble.com/Form-required-does-it-have-any-functionality-td3057011.html#a3067323
> Comments, suggestions, etc are welcome.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira