cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [Forms] Aggregate Fields?
Date Wed, 16 Jun 2004 07:01:40 GMT
On Tue, 2004-06-15 at 19:14, Nacho Jimenez wrote:
> Nacho Jimenez wrote:
> 
> > Hello all,
> >
> > I'm trying to insert bia binding a date-time value edited in a woody 
> > form into a bean, but I'm running into trouble.
> >
> > I thought that I could use an agrregatefield with three widgets (date, 
> > hour, minutes)  but the docs for aggregatefield are unexistant and it 
> > seems it doesn't work the way I expected.
> 
> I've nearly made it, but I've got just one hurdle left...
> 
> In the combine function, I need to return a java.util.Date combining my 
> values, but the date functions in XReporter (for it looks like 
> aggregatefield's combining expressions use XReporter expression 
> language)  are very limited as they don't take into consideration hour 
> or minutes. I could do my own java function to combine the three widgets 
> (a date and two strings), but I don't know how to set it up so the 
> expression is evaluated to my function...
> 
> Xreporter says to set it up in XReporter's XML file, but i do not use 
> xreporter...

Look in the cocoon.xconf file for the element "forms-expression", you'll
find what you need.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@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