Results 1 to 2 of 2

Thread: error message Arguments ?

  1. #1

    Default error message Arguments ?

    Hi,

    I am using the following valang validator when I put reources.properties that having my error message in class path. when error ocuured, it prints {0} is required. only

    why don't it fill it with the value. like

    UserId is Empty.


    errors.required={0} is required.
    errors.minlength={0} can not be less than {1} characters.
    Code:
    <bean id="beanValidator"
    		class="org.springmodules.validation.valang.ValangValidator">
    		<property name="valang">
    			<value>
    				<![CDATA[
                        { password : ? is not blank : 'Password is required' : 'errors.required' }
                        { password : length(?) <= 20 : 'Password must be les then 20 character' : 'errors.maxlength' }
                        { userId : ? is not blank : 'UserId is required' : 'errors.required' }
                        { userId : length(?) <= 10 : 'UserId must be less then 20 charater.' : 'errors.maxlength' }
                    ]]>
    			</value>
    		</property>
    	</bean>

  2. #2

    Default

    please help someone ?

Posting Permissions

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