cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: JX template syntax
Date Mon, 13 Jun 2005 13:39:37 GMT
Reinhard Poetz wrote:
> Rui Alberto wrote:
> 
>> Hi all,
>> this is probably a basic question, but I can't find out how to solve my
>> problem.
>>
>> Is that possible do something like :
>> <jx:set var="xxx" value="${Packages.java.util.Date}"/>
>>
>> <input name="teste" type="hidden" value="#{$xxx.getTime()}
> 
> 
> I don't know if you can create new objects in jxtemplate (I don't think 
> so.). Whenever I had the need for it I wrote a static initializer.
Yes you can:

<jx:set var="myObject" value="${Packages.org.myproject.MyClass()}"/>

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message