gabriel
unread,Nov 5, 2009, 12:30:08 PM11/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ColdBox Platform
Running CB SVN with CF9
A. Setup: I have a handler with an event that has uses
event.renderData to render an xml version of the cookie scope.
<cfset event.renderData(type="XML",data=cookie)>
B. Problem: The problem is that I have some whitespace appearing
before the XML and XML nevers likes that.
C. Analysis so far:
1. If I restart the coldfusion service and hit that event first, it
works perfectly without any whitespace.
2. If I restart the coldfusion service, hit an alternate event first,
and then hit the cookie event, it does not work. The white space is
present.
3. When I view the source of the bad xml, the xml is valid except for
the whitespace before and after it.
renderData() removes the views and the layouts so I'm not looking at
those as the culprits. The fact that it works before the framework is
loaded and has cached anything is a step forward and has me looking at
interceptors, plugins, request context decorator...well anything
except the views and layouts as it appears they're not in play when
renderdata is used.
Anyone have some insight into what's the most likely source for extra
whitespace when using event.renderData()?
Thank you,
Gabriel