Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 63320 invoked from network); 27 May 2010 08:06:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 08:06:42 -0000 Received: (qmail 89220 invoked by uid 500); 27 May 2010 08:06:42 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 89179 invoked by uid 500); 27 May 2010 08:06:42 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 89171 invoked by uid 99); 27 May 2010 08:06:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 08:06:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tommaso.teofili@gmail.com designates 209.85.161.47 as permitted sender) Received: from [209.85.161.47] (HELO mail-fx0-f47.google.com) (209.85.161.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 08:06:35 +0000 Received: by fxm9 with SMTP id 9so2974723fxm.6 for ; Thu, 27 May 2010 01:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=9R1G9jWbH6AWmC0LltPEKreNQ3N2gSQ0pG/gU1lYDfE=; b=YIq2oB64o+R7EA54EBcqvxhIJPXgjOWEtnWev3mNQ4WeYkd5kf5grtBHhHZekwlUqD iAuSMtPs63BCrdk6PRwhJ1ed1ujYrR2rzyeKid0FCdx0gwG3vbFpMcTXmsmR2dsT+Je2 Sj0DlNvt6ry/vWJ3qd45x7HDrzonaq+rthC0I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mueEk8GlkE1wp6UDWhhITlwHHYd1Wwfx4JZYpI/47TSCjERaZZq3my4F0u4OKaAxMQ M1999+Cd6hahgyROIhGSwQQqaeqeQUXYTxLFTzIuVLWBf6n8Vl1f06zGAWEvqkc/azkR WxuFQZlxNLmBw1LJpX5AmGSr1P4MJeiDyn1Yk= MIME-Version: 1.0 Received: by 10.239.143.133 with SMTP id k5mr976313hba.214.1274947574529; Thu, 27 May 2010 01:06:14 -0700 (PDT) Received: by 10.239.165.133 with HTTP; Thu, 27 May 2010 01:06:14 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 May 2010 10:06:14 +0200 Message-ID: Subject: Re: Using java methods in scala From: Tommaso Teofili To: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=001485f9a8b4497fc704878edd4c X-Virus-Checked: Checked by ClamAV on apache.org --001485f9a8b4497fc704878edd4c Content-Type: text/plain; charset=ISO-8859-1 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 > 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 > 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 > > > > > > > > > > > > > > > --001485f9a8b4497fc704878edd4c--