You have to add the property : valang
<property name="valang">
Code:
<beans>
<bean id="testCustomFunctions" class="org.springmodules.validation.ValangValidatorFactoryBean" lazy-init="true">
<property name="customFunctions">
<map>
<entry key="tupper">
<value>org.springmodules.validation.functions.UpperCaseFunction</value>
</entry>
<entry key="lifeCycle" value="org.springmodules.validation.LifeCycleTestFunction"/>
</map>
</property>
<property name="valang">
<value><![CDATA[
{ firstName : length(tupper(?)) > 0 : 'First name is empty' }
{ lifeCycleBean : lifeCycle(?) is not null and length('abc\'') = 4 and length('\\') = 1 : 'Life cycle property is null' }
]]></value>
</property>
</bean>
<bean class="java.util.Date"/>
<bean id="pattern" class="java.util.regex.Pattern" factory-method="compile">
<constructor-arg value="foo|bar"/>
</bean>
</beans>