To The Sun Team: Regarding Calendar Component and its functionality

To The Sun Team, actually i am using the calendar component in my project but when i am selecting the date using this calendar component it was fine, but when submitting my form data the data is not submitting to the database. when i remove this calendar component then it is submiting successfully, please let me know what is the problem with this component and give remedy to this problem

Please do favour in this regard . Thank you

[447 byte] By [Srinivasan1983] at [2007-11-26 11:54:42]
# 1
Hi There,Please provide more info, as to actual error message, steps to rerpoduce, sample code etc to assist you betterThanksK
kish@sun at 2007-7-7 12:12:39 > top of Java-index,Development Tools,Java Tools...
# 2

This could be caused by validation errors or conversion errors in your calendar component. the best thing to do would be to temporarily add a message box component somewhere on the page, link it to the calendar components, and try it again. if it is the calendar that is causing problems, you will see why in the message box.

Possibly, this is due to the min/max date settings.

We'd need more of your code to help you better.

Good luck

InfoSysExperts at 2007-7-7 12:12:39 > top of Java-index,Development Tools,Java Tools...
# 3

actually i have some textfield components and 3 calendar components, where these fields data must be submitted to the database by clicking one submit action button. And i have only two buttons one is submit and other is reset button. I have set min and max dates for each calendar component and it was kept in page beans init method. and i tried to use getSelectedDate(), getTime(),getDate(),getDatePicker() methods for each one of it. but i t does not work for any of them. I kept message component for the calendar components also but it is not showing any errors. But i didnt use validate method(). so i think this information is sufficient to rectify my problem. Hope you will come soon with a better solution and idea.

Thank You in advance.

Srinivasan1983 at 2007-7-7 12:12:39 > top of Java-index,Development Tools,Java Tools...
# 4

> actually i have some textfield components and 3

> calendar components, where these fields data must be

> submitted to the database by clicking one submit

> action button. And i have only two buttons one is

> submit and other is reset button. I have set min and

> max dates for each calendar component and it was

> kept in page beans init method. and i tried to use

> getSelectedDate(),

> getTime(),getDate(),getDatePicker() methods for each

> one of it. but i t does not work for any of them. I

> kept message component for the calendar components

> also but it is not showing any errors. But i didnt

> use validate method(). so i think this information is

> sufficient to rectify my problem. Hope you will come

> soon with a better solution and idea.

>

> Thank You in advance.

Have you tried this mini-tutorial? http://blogs.sun.com/divas/entry/calendar_component_tips

I have some questions for you:

You wrote:

> I have set min and max dates for each calendar component

> and it was kept in page beans init method.

What was kept in the page beans init method? You set the min and max dates by binding to page bean, session bean, or application bean properties. Perhaps you are initializing the properties in your init method? Hard to tell from your description.

> i tried to use getSelectedDate(), getTime(),getDate(),getDatePicker(

> methods for each one of it. but i t does not work for any of them.

In what way does it "not work". Do you mean that getSelectedDate() returns no value? Where are you calling this method?

>I kept message component for the calendar components

> also but it is not showing any errors

If you have some problem caused by something other than the calendar components then the errors will not show i nthe message components that are associated with the calendar components. Do you have a message group component on the page? Have you right-click the deployment server node and selected View Server Log so you can see if any error messages are being emitted when you click the Submit button?

Hopefully, we can figure out what your problem is.

jetsons at 2007-7-7 12:12:39 > top of Java-index,Development Tools,Java Tools...