-
1. Re: Calendar - Send Date to Server
lanceb185 Jun 21, 2008 6:09 AM (in response to aish)Hi Aish
Well, firstly ensure you have the exact property 'datedefault1' and also ensure 'TableDetail' is the exact name of your bean as declared in faces-config.xml.
Additionally, I don't see a 'setDatedefault1(Date defaultdate1)' method in your bean code?
Cheers
Lance -
2. Re: Calendar - Send Date to Server
lanceb185 Jun 21, 2008 6:10 AM (in response to aish)For the benefit of others, also see this post
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=135969 -
3. Re: Calendar - Send Date to Server
aish Jun 23, 2008 9:51 AM (in response to aish)Hi Lance,
Thank you so much for your reply with the code. I helped me to get it to work. I really appreciate your help.
Regards
Aish -
4. Re: Calendar - Send Date to Server
aish Jun 24, 2008 10:47 PM (in response to aish)Hi Lance,
I have a quick question about the date. Can you please help me with it?
As I have stated in my first post, I have two date fields on my form - FromDate and ToDate. I am using the rich:calendar as suggested your code. I would like to point the ToDate as the current Date and the From Date as 30 days priot to ToDate. For eg: FromDate would May 25 and To Date would be June 25.
I checked the java date and looks like java calendar supports subtraction operation and the java date does not support arithmetic operation. If I use Calendar as given in the code below, the result is a "Calendar" and not a Date type to be used by <rich:calendar>
Can you please let me know how I can get the currentDate "minus" 30 days and set it to FromDate as rich:calendar?
Thanks
Aish
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.DAY_OF_MONTH, -10); -
5. Re: Calendar - Send Date to Server
aish Jun 25, 2008 5:47 PM (in response to aish)Hi Lancey,
I wanted to check with you about the calendar on one thing. I used
" enableManualInput="true" but the date is not stored in the back end bean as it does in the date selected by the popup date? Should I need to add any other option?
Thanks a lot for your help on this
Aish
<rich:calendar id="ToDateCal" value="#{TableDetail.toDate}"
popup="true"
datePattern="#{TableDetail.pattern}"
enableManualInput="true"
showApplyButton="false"
style="width:100px"
disabled='#{TableDetail.selected == true}'>
<a4j:support ajaxSingle="true" event="ondateselected" reRender="metricsTable" /> -
6. Re: Calendar - Send Date to Server
ilya_shaikovsky Jun 28, 2008 8:28 AM (in response to aish)check please oninput* events provided and add one more support ;)