[
http://mifosforge.jira.com/browse/MIFOS-4891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
keithwoodlock updated MIFOS-4891:
---------------------------------
Fix Version/s: (was: Mifos Backlog)
Unscheduled
> 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
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues