client side validation: remove exception detail syntax requirement
------------------------------------------------------------------

                 Key: ADFFACES-109
                 URL: http://issues.apache.org/jira/browse/ADFFACES-109
             Project: MyFaces ADF-Faces
          Issue Type: Improvement
            Reporter: Gabrielle Crawford


The framework shows client errors like this "[label] - The value '[value]' is 
not a number. The way this is implemented is that when client converters and 
validators are written they are expected to return exceptions with details that 
have the following syntax:

{0} - The value '{1}' is not a number

Then the framework replaces {0} with the label and {1} with the value

The exception detail should not be required to have this syntax. The detail 
should just be "The value '{1}' is not a number".

To get the format wanted the framework should send the value of 
af_messages.GLOBAL_MESSAGE_FORMAT to the client and the client should use that 
to create the string. An example of the value of the format string is : {0} - 
{1}, where the framework would use the the component's label for {0} and 
converter's detail for {1}.



-- 
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