Ticket #339 (closed defect: fixed)

Opened 17 years ago

Last modified 17 years ago

CFHTMLHEAD in view templates breaks RemotingService.cfc

Reported by: chrisblackwell Owned by:
Priority: normal Milestone: 3.0
Version: 3.0.178 Severity: normal
Keywords: remoting cfhtmlhead Cc:

Description

From post to mailing list - http://groups.google.com/group/model-glue/browse_thread/thread/3c755a7cdc125336

Patched AbstractRemotingService?.cfc attached


I have an event that gets a list of items, and the view template uses a custom tag to display them. The custom tag uses <cfhtmlhead> to throw its js & css into the page. However when i execute this event via the remoting service the js/css is still sent to the output stream, so my json packet is fubar'd.

Steps to reproduce:

1) edit a view template and add the following tag anywhere in the template

<cfhtmlhead text="oooh dear!!" />

2) execute an event that includes the above view using RemotingService?

http://your_server/RemotingService.cfc?method=executeEvent&eventname=some.event

3) you should see output similar to the following

oooh dear!!<wddxPacket version='1.0'><header/><data><struct></struct></data></wddxPacket>

Attachments

AbstractRemotingService.cfc (3.7 kB) - added by chrisblackwell 17 years ago.
ModelGlue?/gesture/remoting/AbtractRemotingService.cfc

Change History

Changed 17 years ago by chrisblackwell

ModelGlue?/gesture/remoting/AbtractRemotingService.cfc

Changed 17 years ago by DanWilson

This is in private testing

Changed 17 years ago by DanWilson

  • status changed from new to closed
  • resolution set to fixed

Fixed.

In Release Candidate Build

Note: See TracTickets for help on using tickets.