You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nacho Jimenez <na...@ya.com> on 2004/06/15 17:38:43 UTC
[Forms] Aggregate Fields?
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.
Has someone done it before? Any idea form the forms gurus reading the list?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [Forms] Aggregate Fields?
Posted by Nacho Jimenez <na...@ya.com>.
Ok, forget about it.. I finally made it.. I just had forgotten to reload
the servlet after installing the new classes (DOH!)
I'm wiki-ing it in the woody wiki docs tonight...
> I created the expression function, and it works fine when the result
> of the combine expression is a string, but when I change it to Date,
> it just redisplays the form, like if some validation was wrong, but it
> doesn't display any validation error..
>
> AFAIK, the expression seems to be working, but it's imposible to
> submit the form.. I've deleted all validation rules, and I'm still
> getting the form screen redisplayed with no errors each time I submit
> it. I'm using a barely pre-2.1.5 CVS snapshot, has teh aggregatefield
> code changed since then?
>
> Please, help.. This is really driving me crazy now..
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [Forms] Aggregate Fields?
Posted by Nacho Jimenez <na...@ya.com>.
Hi,
I created the expression function, and it works fine when the result of
the combine expression is a string, but when I change it to Date, it
just redisplays the form, like if some validation was wrong, but it
doesn't display any validation error..
AFAIK, the expression seems to be working, but it's imposible to submit
the form.. I've deleted all validation rules, and I'm still getting the
form screen redisplayed with no errors each time I submit it. I'm using
a barely pre-2.1.5 CVS snapshot, has teh aggregatefield code changed
since then?
Please, help.. This is really driving me crazy now..
>>>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.
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [Forms] Aggregate Fields?
Posted by Bruno Dumon <br...@outerthought.org>.
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
Re: [Forms] Aggregate Fields?
Posted by Nacho Jimenez <na...@ya.com>.
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...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org