incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Weßendorf (JIRA) <>
Subject [jira] Updated: (ADFFACES-144) client side validation: make converters and validators responsible for formatting detail string
Date Wed, 30 Aug 2006 21:31:22 GMT
     [ ]

Matthias Weßendorf updated ADFFACES-144:

        Status: Resolved  (was: Patch Available)
    Resolution: Fixed
      Assignee: Matthias Weßendorf

thanks for the patch, has been committed to the trunk

> client side validation: make converters and validators responsible for formatting detail
> -----------------------------------------------------------------------------------------------
>                 Key: ADFFACES-144
>                 URL:
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>            Reporter: Gabrielle Crawford
>         Assigned To: Matthias Weßendorf
>         Attachments: patch144.patch
> currently the client side validation framework takes an exception and pulls out the facesMessage,
then pulls the detail out of that, and replaces {0} with the label and {1} with the value.
This process should be done by the converter or validator itself and not the framework. 
> This change would make the behavior equivalent to the behavior on the server where converters
and validators must return fully formatted strings. However there is one difference between
the client and server which is that there is  a component available on the server which is
passed to the public methods getAsObject, getAsString, validate. In general converters and
validators on the server use the component to retrieve the label.  On the client there is
no component available. 
> The proposal is 
> 1] pass the component's label to the client converter's getAsObject and getAsString methods,
and to the validator's validate method. 
> 2] Make the client formatting method public so it's available for the converters and
validators to use, currently it's a private method.
> 3] stop having the framework do the replacement

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message