Results 1 to 2 of 2

Thread: Valang : not show correct error message with argument

  1. #1
    Join Date
    Aug 2009
    Posts
    167

    Default Valang : not show correct error message with argument

    my spring config:
    Code:
    	<bean id="profileValidator" class="org.springmodules.validation.valang.ValangValidator">
    		<property name="valang">
    			<value>
    				<![CDATA[
    					{ name : ? HAS LENGTH : 'Profile name is required' : 'required.profileName' }
    					{ name : ? IS BLANK OR length(?) <= 30 : 'Profile name must be no longer than {0} characters' : 'proflieName.length': 30 }
    				]]>
    			</value>
    		</property>
    	</bean>
    my errors.properties:

    proflieName.length = Profile name must be no longer than {0} characters

    but when I entered long profile name (>30 symbols) I get the message:

    Profile name must be no longer than {0} characters

    Why I not get the next message:
    Profile name must be no longer than 30 characters

  2. #2
    Join Date
    Aug 2009
    Posts
    167

    Default

    the problem is resolve by restart web server (tomcat)

Posting Permissions

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