|
Hi everyone,
I have an input field like this:
<div class="form-field">
<@fieldErrors fieldName="CUSTOMER_LNCH_DATE"/>
<div><input type="text" class='inputBox' name="CUSTOMER_LNCH_DATE" value="${requestParameters.CUSTOMER_LNCH_DATE?if_exists}" size="10" maxlength="10"> *</div>
</div>
This is taken from newcustomer.flt, I am trying to extend that for my purposes.
Now, no matter what I try to input in that field I always get:
java.text.ParseException: Unparseable date: "02/11/1978"
java.text.DateFormat.parse(DateFormat.java:337)
org.ofbiz.base.util.ObjectType.simpleTypeConvert(ObjectType.java:582)
org.ofbiz.minilang.method.callops.SetServiceFields.exec(SetServiceFields.java:109)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149)
org.ofbiz.minilang.SimpleMethod.runSimpleEvent(SimpleMethod.java:110)
org.ofbiz.webapp.event.SimpleEventHandler.invoke(SimpleEventHandler.java:69)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:594)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:363)
How can I make this input field to be a date picker instead that produces a date compatible with the current locale?
My field that this value has to enter is defined like this:
<field name="passportIssueDate" type="date"></field>
Any help is greatly appreciated!
|