[EMAIL PROTECTED] escribió:
OK. I think I found it in Field.java, where it does
newEnteredValue = newEnteredValue.trim();
Hi Fernando,
Great you found it! You should can create a patch to optionally
configure leading spaces and keeping the former behavior as the default
behavior. WDYT?
BTW, I wonder why you need to keep leading spaces. Can you explain your
use case?
Best Regards,
Antonio Gallardo.
-----Original Message-----
From: Mato Mira, Fernando (DIA CHE)
Sent: Wednesday, June 07, 2006 11:19 AM
To: users@cocoon.apache.org
Subject: RE: CForms: leading spaces dissapearing
This behavior is unacceptable. Where is it in the source code so that I
can hardcode disable it in my copy of Cocoon?
Thanks
-----Original Message-----
From: Bruno Dumon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 10:23 AM
To: users@cocoon.apache.org
Subject: Re: CForms: leading spaces dissapearing
On Tue, 2006-06-06 at 15:57 +0200, [EMAIL PROTECTED] wrote:
I have a text field in a CForm, and when it is submitted, the leading
spaces
in the text dissapear.
I am using Cocoon 2.1.8
Is there any way to disable this behavior?
nope, this behaviour is currently hardcoded in the field widget. It is a
todo item to make this configurable.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]