cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christofer Dutz" <d...@c-ware.de>
Subject AW: [CForms] Accessing date-type widget and formating it's output for usage as attribute-value
Date Fri, 21 Oct 2005 13:53:59 GMT
If I use exactly the same code as you I get "[Lorg.w3c.dom.Node;@28e230" as
value of ${dateFormatted} ... couldn't find a way around this problem since
all child elements, name, value attributes seem to be empty/not excistent.

-----Ursprüngliche Nachricht-----
Von: Mark Lundquist [mailto:ml@wrinkledog.com] 
Gesendet: Donnerstag, 20. Oktober 2005 22:14
An: users@cocoon.apache.org
Betreff: Re: [CForms] Accessing date-type widget and formating it's output
for usage as attribute-value


On Oct 20, 2005, at 1:54 PM, Christofer Dutz wrote:

> Hi,
>  
> Another problem I am having some problems with. I need to add the 
> value of a date-type widget inside an attribute. Since the simple 
> toString() output doesn’t do the trick, I would like to format the 
> output. How can this be done.
>  
> Chris

<jx:set var="dateFormatted"><jx:formatDate pattern="MMM dd, yyyy" 
value="${somDate}"/></jx:set>
<foo bar="${dateFormatted}"/>

HTH,
—ml—


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




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


Mime
View raw message