You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ralf Hauser (JIRA)" <ji...@apache.org> on 2008/06/11 14:54:45 UTC

[jira] Commented: (VALIDATOR-265) Validate fields which are generated upon user input

    [ https://issues.apache.org/jira/browse/VALIDATOR-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604209#action_12604209 ] 

Ralf Hauser commented on VALIDATOR-265:
---------------------------------------

basically, the form fields are not the classic hard-coded fields with getters and setter-methods in the Form java class, but are generated in relation to a list of content elements on the fly

> Validate fields which are generated upon user input
> ---------------------------------------------------
>
>                 Key: VALIDATOR-265
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-265
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Framework
>            Reporter: Mark Stricker
>            Priority: Minor
>
> We use a form where we display some input fields which depend on the number of email addresses the user entered on the page before.
> Example:
> =========================================
> Entered email addresses on first page: 
> test1@test.ch
> test2@test.ch
> test3@test.ch
> Shown input fields on second page:
> <input type="text" name="sms_test1@test.ch" value="" />
> <input type="text" name="sms_test2@test.ch" value="" />
> <input type="text" name="sms_test3@test.ch" value="" />
> =========================================
> For input validation we would like to use the validation framework but as far as we know, there is no way to implement this at the moment. It would be nice if for example it would be possible to use regular expressions for the property attribute.
> <field property="regex" depends="maxlength">
>  ...
> </field>

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