[ 
http://mifosforge.jira.com/browse/MIFOS-4891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukasz Chudy updated MIFOS-4891:
--------------------------------

    Priority: Trivial  (was: Minor)
    
> Remove messages-nontranslated.properties while addressing MIFOS-4112
> --------------------------------------------------------------------
>
>                 Key: MIFOS-4891
>                 URL: http://mifosforge.jira.com/browse/MIFOS-4891
>             Project: mifos
>          Issue Type: Improvement
>          Components: Loan Account
>            Reporter: jasmine sandhu
>            Assignee: mifosdeveloperqueue
>            Priority: Trivial
>             Fix For: Unscheduled
>
>
> Mifos - 4112 was resolved by adding an ugly messages file called 
> messages-nontranslated.properties. A solution that passes the correct 
> parameter to the message key in messages.properties, such that 
> messages-nontranslated.properties is not required might be better.
> http://mifosforge.jira.com/browse/MIFOS-4112
> At present, if there is a typeMismatch.* error for the array objects in the 
> LoanProductFormBean object during binding, the message key that is used 
> expects the array index as the parameter. However, these binding errors are 
> automatically generated by spring as FieldError objects. Once the 
> BindingResult object is populated with these FieldError objects, they are 
> read-only so you cannot change the argument of any of these FieldError 
> objects to be the index of the array where it encountered typeMismatch.*. The 
> default argument that is passed to each of these FieldError objects are the 
> messages defined in messages-nontranslated.properties
> Since these are just numbers, this file does not need to be translated.
>  
> It would be better to customize the binding such that 
> messages-nontranslated.properties is not required. 
> Here is a reference that maybe helpful: 
> http://forum.springsource.org/showthread.php?t=14842&highlight=typeMismatch
> Another reference on the spring DefaultMessageCodesResolver: 
> http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/validation/DefaultMessageCodesResolver.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://mifosforge.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to