-
FEATURED COMPONENTS
First time here? Check out the FAQ!
*** ANSWERED ***
Hi all,
How can i bind the date of a Datebox and the time of a Timebox with the same attribute of a class (ex : attribute birth of class Person)
<datebox value="@{person.birth}" /> <timebox value="@{person.birth}" />
I believe that datebox erases time information and timebox erases date information (im not sure)
But I guess that you have implement load-when and save-when for these components, and also onChange.
something like
onDateTimeChange() { person.setBirth(new Date(datebox.getValue().getTime() + timebox.getValue().getTime())) }
I didnt test this, and Im not sure if it will work, but is an idea that has some chance to work :)
Regards,
Madruga
Asked: 2009-02-10 18:27:52 +0800
Seen: 324 times
Last updated: Feb 12 '09