This content has been marked as final.
Show 1 reply
-
1. Re: Updating time on changing dates in rich:calendar in RF4
bleathem Jun 21, 2013 6:01 PM (in response to piyush.mnnit)You can do this in javascript, create an ondateselect=updateTime javascript listener that calls the following function:
var updateTime = function() { var now = new Date(); RichFaces.getDomElement('j_idt934:calendar' + 'TimeHours').value = now.getHours() RichFaces.getDomElement('j_idt934:calendar' + 'TimeMinutes').value = now.getMinutes() RichFaces.$('j_idt934:calendar').hideTimeEditor(true); RichFaces.$('j_idt934:calendar').close(true); }
I realize the above is a poor javascript API. This is something we are aiming to correct with the RichFaces standalone javascript widgets in RichFaces 5.