You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tomas Havelka (JIRA)" <de...@myfaces.apache.org> on 2007/08/24 15:35:31 UTC

[jira] Created: (TRINIDAD-647) Client-side validation doesn't work

Client-side validation doesn't work
-----------------------------------

                 Key: TRINIDAD-647
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-647
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.0.2-core
            Reporter: Tomas Havelka


When client-validation is set to ALERT in trinidad-config.xml validation error occurs on each submit, even if the form data are filled correctly. For example for any input filed (select, etc.) which value is required and filled, validation error alert appears with message that validation error occurs, but with no component validation error message.
This is new side effect of any changes made to version 1.0.2, because in version 1.0.1 this works fine.

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


Re: [jira] Created: (TRINIDAD-647) Client-side validation doesn't work

Posted by Adam Winer <aw...@gmail.com>.
I've actually already fixed this one in 1.0.3-SNAPSHOTs.
You could reproduce it in trinidad-demo right on index.jspx.

-- Adam


On 8/24/07, Danny Robinson <da...@gmail.com> wrote:
> Thomas, can you provide more details, perhaps a screenshot or the actual
> error text along with a simple page to reproduce the problem.  Have you also
> tried this with the trinidad-demo application?
>
>
>  On 8/24/07, Tomas Havelka (JIRA) <de...@myfaces.apache.org> wrote:
> > Client-side validation doesn't work
> > -----------------------------------
> >
> >                  Key: TRINIDAD-647
> >                  URL:
> https://issues.apache.org/jira/browse/TRINIDAD-647
> >              Project: MyFaces Trinidad
> >           Issue Type: Bug
> >     Affects Versions: 1.0.2-core
> >             Reporter: Tomas Havelka
> >
> >
> > When client-validation is set to ALERT in trinidad-config.xml validation
> error occurs on each submit, even if the form data are filled correctly. For
> example for any input filed (select, etc.) which value is required and
> filled, validation error alert appears with message that validation error
> occurs, but with no component validation error message.
> > This is new side effect of any changes made to version 1.0.2, because in
> version 1.0.1 this works fine.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
>
>
>
> --
> Chordiant Software Inc.
> www.chordiant.com

Re: [jira] Created: (TRINIDAD-647) Client-side validation doesn't work

Posted by Danny Robinson <da...@gmail.com>.
Thomas, can you provide more details, perhaps a screenshot or the actual
error text along with a simple page to reproduce the problem.  Have you also
tried this with the trinidad-demo application?

On 8/24/07, Tomas Havelka (JIRA) <de...@myfaces.apache.org> wrote:
>
> Client-side validation doesn't work
> -----------------------------------
>
>                  Key: TRINIDAD-647
>                  URL: https://issues.apache.org/jira/browse/TRINIDAD-647
>              Project: MyFaces Trinidad
>           Issue Type: Bug
>     Affects Versions: 1.0.2-core
>             Reporter: Tomas Havelka
>
>
> When client-validation is set to ALERT in trinidad-config.xml validation
> error occurs on each submit, even if the form data are filled correctly. For
> example for any input filed (select, etc.) which value is required and
> filled, validation error alert appears with message that validation error
> occurs, but with no component validation error message.
> This is new side effect of any changes made to version 1.0.2, because in
> version 1.0.1 this works fine.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Chordiant Software Inc.
www.chordiant.com

[jira] Resolved: (TRINIDAD-647) Client-side validation doesn't work

Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Winer resolved TRINIDAD-647.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3-core
         Assignee: Adam Winer

I've actually already fixed this in 1.0.3.  FYI, the bug was in
_validateAlert;  it only returns without showing an alert if:

  if (failureMap.length == 0)
    return true;

... but failureMap isn't an array - it's a map.  So this
test doesn't work (it's undefined == 0, which is false).
    


> Client-side validation doesn't work
> -----------------------------------
>
>                 Key: TRINIDAD-647
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-647
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.0.2-core
>            Reporter: Tomas Havelka
>            Assignee: Adam Winer
>             Fix For: 1.0.3-core
>
>
> When client-validation is set to ALERT in trinidad-config.xml validation error occurs on each submit, even if the form data are filled correctly. For example for any input filed (select, etc.) which value is required and filled, validation error alert appears with message that validation error occurs, but with no component validation error message.
> This is new side effect of any changes made to version 1.0.2, because in version 1.0.1 this works fine.

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