You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by julien bloit <Ju...@ircam.fr> on 2004/01/20 19:05:14 UTC

DateInputModule : formatting

Hi,
I'm confused because although I've read several threads about the question,
I can't seem to get a final solution to formatting the result from
DateInputModule.

http://wiki.cocoondev.org/Wiki.jsp?page=InputModules article mentions the
problem about format attributes not working, and also says that "nested
<format/> tags work fine".

I've tried format using format tags in cocoon.xconf , in the
component-instance tag of DateInputModule (and restarted tomcat) :
<fr-format>dd-MM-yyyy</fr-format>

and tried passing the date to an xsp :
<map:parameter name="mydate" value="{date:fr-format}"/>

-> date outputs with default format.

Is there something I'm missing?
(I use cocoon-2.1.3)


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


Re: DateInputModule : formatting

Posted by julien bloit <Ju...@ircam.fr>.
Nevermind, I get the date directly from inside xsp :
<util:time format="dd-MM-yyyy"/>
works fine

Julien

----- Original Message ----- 
From: "julien bloit" <Ju...@ircam.fr>
To: <us...@cocoon.apache.org>
Sent: Tuesday, January 20, 2004 7:05 PM
Subject: DateInputModule : formatting


> Hi,
> I'm confused because although I've read several threads about the
question,
> I can't seem to get a final solution to formatting the result from
> DateInputModule.
>
> http://wiki.cocoondev.org/Wiki.jsp?page=InputModules article mentions the
> problem about format attributes not working, and also says that "nested
> <format/> tags work fine".
>
> I've tried format using format tags in cocoon.xconf , in the
> component-instance tag of DateInputModule (and restarted tomcat) :
> <fr-format>dd-MM-yyyy</fr-format>
>
> and tried passing the date to an xsp :
> <map:parameter name="mydate" value="{date:fr-format}"/>
>
> -> date outputs with default format.
>
> Is there something I'm missing?
> (I use cocoon-2.1.3)
>
>
> ---------------------------------------------------------------------
> 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