date Input not working - error


i am using date input - the value is mapped to a document field ,

when i save - i get the error

[POP.001.0002] A “java.lang.RuntimeException” occurred with the Message “com.webmethods.portal.bizPolicy.BizException: [POP.001.0002] A “javax.portlet.PortletException” occurred with the Message “[POP.016.0011] DateInput component value must be a java.util.Date instance””

Please suggest .

Jasmeen Kaur

The error is because - value pattern is missing ,

when you map these date values to a string object - then without providing the pattern, it is bound to fail , this is the expected behavior

i provided yyyyMMdd - so it works

Coming to the CAF control for Date Input, the “valuePattern” property describes the value format. This pattern must use the syntax described by java.text.SimpleDataFormat

More details on this format can be found in the following link:

Jasmeen Kaur