Hi Jason,
Maybe try this instead (uses the bean directly rather than jxpath's pointer):<fb:javascript id="time" path="."> <fb:load-form> widget.setValue(jxpathContext.getNode().getTime()); </fb:load-form> <fb:save-form> var time = new java.sql.Time(widget.getValue().getTime()); jxpathContext.getNode().setTime(time); </fb:save-form> </fb:javascript>
It doesn't work either :/.
> I'm not sure, but I think this does not work: > var time = new java.sql.Time(widget.getValue().getTime());
I know now that this portion was ok :). I've decided to store both date and time in the bean as java.util.Date and make the conversion later. Anyway, thanks for your help. It's made me understand how the conversion works. Regards, Paloma -- Paloma Gomez --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
