cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Fernando.Matom...@thomson.com>
Subject RE: CForms: leading spaces dissapearing
Date Thu, 08 Jun 2006 07:16:15 GMT
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:agallardo@agssa.net] 
Sent: Thursday, June 08, 2006 8:22 AM
To: users@cocoon.apache.org
Subject: Re: CForms: leading spaces dissapearing

Fernando.Matomira@thomson.com 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:bruno@outerthought.org] 
> 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, Fernando.Matomira@thomson.com 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.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