cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paloma Gomez" <paloma...@gmail.com>
Subject Re: CForms: Time widget binding problem
Date Mon, 17 Jul 2006 17:53:44 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message