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

Geoff Callender updated TAP5-2391:
----------------------------------
    Description: 
Found this bug in 5.4-beta-22. I've confirmed that the bug was not present in 
5.4-beta-6.

When an error is recorded with Form.recordError(Field field, String 
errorMessage) or ValidationTracker.recordError(Field field, String 
errorMessage) it normally is shown in the UI by decorating the field in error 
and displaying the errorMessage below it.

However, when the request is AJAX, the field is no longer being decorated and 
the errorMessage isn't shown with it. I have verified that the client knows 
about the error, because <t:errors globalOnly="false"/> will show it.

Comparing the HTTP responses of beta-22 with beta-6, I see that beta-6 has an 
extra entry in the inits, like this:

["t5/core/fields:showValidationError", "firstName_8cf3108fe0ece9", "First Name 
must not be Acme."]

  was:
Found this bug in 5.4-beta-22. I've confirmed that the bug was not present in 
5.4-beta-6.

When an error is recorded with Form.recordError(Field field, String 
errorMessage) or ValidationTracker.recordError(Field field, String 
errorMessage) it normally is shown in the UI by decorating the field in error 
and displaying the errorMessage below it.

However, when the request is AJAX, the field isn't decorated and the 
errorMessage isn't shown with it. The client knows about the error, because if 
you can see it with <t:errors globalOnly="false"/> .

Comparing the responses of beta-6 and beta-22, I see that beta-22 is missing an 
entry like the following from inits:

["t5/core/fields:showValidationError", "firstName_8cf3108fe0ece9", "First Name 
must not be Acme."]


> Field-specific error not shown when AJAX used
> ---------------------------------------------
>
>                 Key: TAP5-2391
>                 URL: https://issues.apache.org/jira/browse/TAP5-2391
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Geoff Callender
>            Priority: Critical
>
> Found this bug in 5.4-beta-22. I've confirmed that the bug was not present in 
> 5.4-beta-6.
> When an error is recorded with Form.recordError(Field field, String 
> errorMessage) or ValidationTracker.recordError(Field field, String 
> errorMessage) it normally is shown in the UI by decorating the field in error 
> and displaying the errorMessage below it.
> However, when the request is AJAX, the field is no longer being decorated and 
> the errorMessage isn't shown with it. I have verified that the client knows 
> about the error, because <t:errors globalOnly="false"/> will show it.
> Comparing the HTTP responses of beta-22 with beta-6, I see that beta-6 has an 
> extra entry in the inits, like this:
> ["t5/core/fields:showValidationError", "firstName_8cf3108fe0ece9", "First 
> Name must not be Acme."]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to