Results 1 to 2 of 2

Thread: "error message with arguments" in ValangValidator + ValangJavaScriptTranslator ..

  1. #1
    Join Date
    Mar 2007
    Posts
    17

    Default "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. #2

    Default

    Please Help I also havinf same trouble

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •