myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karel Simek (JIRA)" <>
Subject [jira] Created: (TRINIDAD-1865) AutoSubmit clears validation errors inside any subform
Date Sun, 25 Jul 2010 18:21:49 GMT
AutoSubmit clears validation errors inside any subform

                 Key: TRINIDAD-1865
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 2.0.0-alpha-2
         Environment: windows 7 64bit, netbeans 6.9, FF 3.6
            Reporter: Karel Simek

To reproduce this bug:

1. make one input element inside a subform to display an error message (for example invalid
"aaa" for "Salary") 
2. navigate to any other element with autoSubmit (for example "Job Title")
3. change the value
---> the first component's error message mysteriously dissappears =)

I have found this during "ARIAfication" of Trinidad components. This nasty bug effectively
breaks the on-the-fly validation in Trinidad (where components are isolated in subforms) as
the errors get cleared after each value change of any component. 

<tr:form inlineStyle="text-align:left">
            <tr:selectManyListbox size="3" showRequired="true" required="true" autoSubmit="true"
label="Select your favorite food">
                <tr:selectItem value=""  label="Option1" />
                <tr:selectItem value="1" label="Option1" />
                <tr:selectItem value="2" label="Option2" />
                <tr:selectItem value="4" label="Option3" longDesc="this is long description"
shortDesc="this is short description"/>
            <tr:inputText  value="Lucka" autoSubmit="true" label="First Name" required="true"
                  <tr:validateLength maximum="15"/>

     <tr:inputText label="Salary" autoSubmit="true" required="true" >
                <tr:validateDoubleRange maximum="20"/>
  </tr:subform> <tr:subform>
     <tr:inputText showRequired="false" required="true"  autoSubmit="true" label="Job Title">
                <tr:validateLength maximum="20"/>


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

View raw message