AutoSubmit clears validation errors inside any subform
------------------------------------------------------
Key: TRINIDAD-1865
URL: https://issues.apache.org/jira/browse/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
4.tab-out
---> 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:subform>
<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:selectManyListbox>
</tr:subform>
<tr:inputText value="Lucka" autoSubmit="true" label="First Name"
required="true" validator="#{identity.validateInputText}">
<tr:validateLength maximum="15"/>
</tr:inputText>
<tr:subform>
<tr:inputText label="Salary" autoSubmit="true" required="true" >
<tr:validateDoubleRange maximum="20"/>
</tr:inputText>
</tr:subform> <tr:subform>
<tr:inputText showRequired="false" required="true" autoSubmit="true"
label="Job Title">
<tr:validateLength maximum="20"/>
</tr:inputText>
</tr:subform>
</tr:form>
Karel
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.