incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommaso Teofili <tommaso.teof...@gmail.com>
Subject Re: Using java methods in scala
Date Thu, 27 May 2010 08:06:14 GMT
Hi guys,
what about using JodaTime library (Apache License 2.0) for dates [1] ?
Cheers,
Tommaso

[1] : http://joda-time.sourceforge.net/

2010/5/27 Reto Bachmann-Gmuer <reto.bachmann@trialox.org>

> Hi Tsuy
>
> I'm currently working of a new version of the scala support libraries.
> Currently bundles added after scala-support has been activated are not
> scanned for classes.
>
> I'm surprised you ned utility methods to convert dates, using
> lit.as[java.util.Date] you get a Date object which can be rendered
> using standard java DateFormatters.
>
> Cheers,
> reto
>
> On Thu, May 27, 2010 at 9:23 AM, Tsuyoshi Ito <tsuy.ito@trialox.org>
> wrote:
> > Hi there
> >
> > I created a date conversion utility class containing static methods which
> I try to use in my ScalaServerPages (ssp).
> >
> > When I render a ssp which uses the utility class I got the following
> error
> >
> > value clerezza is not a member of package org import
> > org.clerezza.cms.utils.DateUtils
> >
> > After restart the platform the ssp can be rendered. Do I have to restart
> always the platform when I use such classes in scala?
> >
> > If yes, are there any alernatives beside creating a utility class in
> scala.
> >
> >
> > Thanks
> > Cheers
> > Tsuy
> >
> >
> >
> >
> >
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message