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
Valang : not show correct error message with argument Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    the problem is resolve by restart web server (tomcat)

    Comment

    Working...
    X