This is a tool that performs edit operations onto multiple documents at the same time. I have a field to append text to a selected section of the documents. If the user does not want the new text to be stuck immediately after the existing one, he needs to start the append text with a space or other separator, like a comma, depending on the case.
-----Original Message----- From: Antonio Gallardo [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 8:22 AM To: [email protected] Subject: Re: CForms: leading spaces dissapearing [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: [email protected] > 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: [email protected] > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
