Announcement Announcement Module
Collapse
No announcement yet.
Change error massages when binding a List Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change error massages when binding a List

    Hi gurus,
    I'm using SWF (currently 3.0.7) and I have problem changing default error messages when binding lists.
    I can easily change the error message for simple item using:
    JSP:
    <form:input path="aNumber" ...
    property file:
    item.aNumber.typeMismatch=some text.

    List I need to iterate:
    JSP:
    <form:input path="aValue[${itemsRow.index}]" ...
    property file:
    typeMismatch=universal text
    typeMismatch.java.math.BigDecimal=test error BD1
    java.math.BigDecimal.typeMismatch=test error BD1

    But I see message:"item.aValue[0].typeMismatch, item.aValue[2].typeMismatch"

    This cause me problem, I can not put all indexes to property file!! Moreover in te list, there can be different types (not only BigDecimals)
Working...
X