cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: DateInputModule, multiple formats
Date Fri, 03 Sep 2004 07:43:14 GMT
Huber, Daniel wrote:

> Hi there,
> 
> I'd like to use different date formats with the
> org.apache.cocoon.components.modules.inputDateInputModule.
> There have been some requests on this topic in this list, but no real
> answers.
> 
> As i saw in the source code, the name of the parameter is hard-coded. It
> must be 'format'.
> So in cocoon.xconf it is (currently) not possible to declare more than
> one format.
> (I also saw some postings which demanded to change this...)
> 
> But the wiki and some other sources say that besides cocoon.xconf there
> is another place where I can define a 'format' parameter for
> DateInputModule: "Format given through attribute "format" of
> configuration root node [=cocoon.xconf?!] or nested <format/> tag on
> module declaration. [=???]"

The configuration takes place in cocoon.xconf.
The two options just mean

<... format="..."/>

vs.

<...>
   <format>...</format>
</...>


What you can do is declare multiple instances of the DateInputModule
with different names and formats.

-- Andreas


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


Mime
View raw message