[ http://issues.apache.org/jira/browse/ADFFACES-144?page=all ]

Gabrielle Crawford updated ADFFACES-144:
----------------------------------------

    Status: Patch Available  (was: Open)

> client side validation: make converters and validators responsible for 
> formatting detail string
> -----------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-144
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-144
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>            Reporter: Gabrielle Crawford
>         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: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to