• Welcome to KonaKart Community Forum. Please login or sign up.
 

Date of birth

Started by karthik, November 29, 2007, 02:03:31 pm

Previous topic - Next topic

karthik

Hi,
   In CustomerRegistration form,i've changed my date of birth field as non-mandatory(just removed required value for field in validation.xml)and displayed.I've also changed my dob field value NOTNULL as null in my database.

          Now if i enter all d values in form except my dob field...it shows an exception message as follows



Exception Name = com.konakart.app.KKException
Exception Message = The Date parameter called birthDate must be given a value. It cannot be set to null.
Exception Stack Trace =
at com.konakart.bl.BaseMgr.checkRequired(BaseMgr.java:255)
at com.konakart.bl.CustomerMgr.registerCustomer(CustomerMgr.java:115)
at com.konakart.app.KKEng.registerCustomer(KKEng.java:655)
at com.konakart.al.CustomerMgr.registerCustomer(CustomerMgr.java:337)
at com.percipient.actions.CustomerRegistrationSubmitAction.execute(CustomerRegistrationSubmitAction.java:97)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
at java.lang.Thread.run(Unknown Source)

Can any one help me to solve dis error...

Thanx
Karthi

trevor

Hi Karthi,

The way to do this is to disable it in the admin app under Configuration >> Customer Details and not touch anything else.

Regards,

Trevor

karthik

hi,
                          Thanx 4 ur reply..but i need to display the field..if i change customer details it only hide it frm customer..

Thanks,
Karthi

trevor

Hi,

The engine call requires a value for the date so you must give it a default value if the user decides not to set it.

Regards,

Trevor

karthik

Hi Trevor,
            Thanx again..I'll try it .