Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] ValueSerializationMasterService does not respect @Whitespace( trim = false)

Oh I see, here is bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382779

Thanks.

On Sat, Jun 16, 2012 at 12:10 AM, Konstantin Komissarchik <konstantin.komissarchik@xxxxxxxxxx> wrote:

These trim() calls in the serialization service are likely a hold-over from before there was a normalization service and can be safely removed. Please open a bug.

 

- Konstantin

 

 

From: sapphire-dev-bounces@xxxxxxxxxxx [mailto:sapphire-dev-bounces@xxxxxxxxxxx] On Behalf Of Greg Amerson
Sent: Friday, June 15, 2012 3:38 AM
To: Sapphire project
Subject: Re: [sapphire-dev] ValueSerializationMasterService does not respect @Whitespace( trim = false)

 

Oh, looks like maybe there is another one here that perhaps needs to be fixed? ValueSerializationService.java line 36?

On Fri, Jun 15, 2012 at 6:23 PM, Greg Amerson <gregory.amerson@xxxxxxxxxxx> wrote:

Hey sapphire team,

 

In my adopter product I have property that represents a user's "script" text content (_javascript_ or groovy, etc).  This script resides within a CDATA[] section in the XML document.  This script usually contains whitespace, particularly leading whitespace (newline and some tabs) that are important to make the script code seem like its a child text of that node (properly nested, so its "pretty").  So on this property I found out I should be setting @Whitespace( trim = false) which I wasn't before today but I am now.  After setting that I now see the ValueNormalizationService correctly not trimming my script content, however, the ValueSerializationMasterService is still always trimming my text content (see line 91 of ValueSerializationMasterService.java) regardless of the @Whitespace annotation.  Should we fix this?

 

Thanks for your feedback.

 

--

Greg Amerson

Liferay, Inc.

---
8-9 October 2012 | Liferay North America Symposium | liferay.com/northamerica2012
16-17 October 2012 | Liferay Europe Symposium | liferay.com/europe2012
24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012

 



 

--

Greg Amerson

Liferay, Inc.

---
8-9 October 2012 | Liferay North America Symposium | liferay.com/northamerica2012
16-17 October 2012 | Liferay Europe Symposium | liferay.com/europe2012
24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012

 


_______________________________________________
sapphire-dev mailing list
sapphire-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/sapphire-dev




--
Greg Amerson
Liferay, Inc.
www.liferay.com
---
8-9 October 2012 | Liferay North America Symposium | liferay.com/northamerica2012
16-17 October 2012 | Liferay Europe Symposium | liferay.com/europe2012
24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012


Back to the top