Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
"error message with arguments" in ValangValidator + ValangJavaScriptTranslator .. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "error message with arguments" in ValangValidator + ValangJavaScriptTranslator ..

    Hi,

    did anybody had success with configuring "error message with arguments" in ValangValidator

    My Validator is like this


    Code:
    <bean id="domainObjectValangValidator" class="org.springmodules.validation.valang.ValangValidator">
          <property name="valang">
    	    <value>
    	    <![CDATA[
    	    	{ name : ? IS NOT BLANK : 'Please select Name' : 'errors.required' : 'Name'}
    	    ]]>
    	    </value>
    	  </property>
    	</bean>
    The Problem is that I get the default message not the one whose key is 'errors.required'. This message has a argument as you can see ..
    Code:
    errors.required={0} is a required field.
    I get the following message in my log. This obviously states the reason but what I'm looking for is how to make this work. Can anybody shed some light?

    Code:
    Mar 29, 2007 12:12:46 PM org.springmodules.validation.valang.javascript.ValangJavaScriptTranslator getErrorMessage
    WARNING: Translating error message with arguments is not implemented; using default message

  • #2
    Please Help I also havinf same trouble

    Comment

    Working...
    X