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 Arguments ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    please help someone ?

    Comment

    Working...
    X