You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "David E. Jones (JIRA)" <ji...@apache.org> on 2010/02/11 23:54:28 UTC

[jira] Closed: (OFBIZ-3473) SimpleMapProcessor don't stop after the first error

     [ https://issues.apache.org/jira/browse/OFBIZ-3473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David E. Jones closed OFBIZ-3473.
---------------------------------

       Resolution: Not A Problem
    Fix Version/s: SVN trunk
         Assignee: David E. Jones

The description isn't totally clear on the code that produced this behavior, but based on the description it sounds like this is what it should be doing.

This patch should not be committed. If it was committed it would break and/or impede the function of existing code.

The intent of simple-method validation is to allow for a set of validations to be done and then the result of all of them reported back to a user so that they don't get stuck in a frustrating loop of having to deal with one issue at a time (a real nightmare for large forms).

In your simple-method you can quit any time with the check-errors operation. For more information about both of these parts of the simple-methods, please read the MiniLang Guide.

> SimpleMapProcessor don't stop after the first error
> ---------------------------------------------------
>
>                 Key: OFBIZ-3473
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3473
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Dimitri Unruh
>            Assignee: David E. Jones
>             Fix For: SVN trunk
>
>         Attachments: SimpleMapProcess.patch
>
>
> Hi @all,
> the SimpleMapProcessor don't stop the validation for a given field after the first error.
> For example:
> I need to validate  a birthdate from an input field. So I process two validation for the field:
> 1. isDate
> 2. isDateBeforeToday
> If the string is not a proper date, the process should stop here, because the secand validation would throw an exception.
> I modified this. Hopefully you like it :)
> Dimitri

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