As long as the renderer uses ResponseWriter.writeText(), swapping in a different ResponseWriter is all you need. One thing is for certain: there should be zero lines of code in the Renderers themselves that have to care about HTML vs. XHTML.
-- Adam On 7/18/07, Wesley Hales <[EMAIL PROTECTED]> wrote:
Help me out here - when you say escaping th js, is there an easy way to do this in the renderer (i guess you could do it by hand or create a method for escaping)? I guess I was looking for the easy approach with CDATA, but I will let you guys figure it out. I will create an request for this to be added. Thanks, Wesley On 7/17/07, Adam Winer <[EMAIL PROTECTED]> wrote: > > I'd be OK with adding an XHTML mode, with an > alternative ResponseWriter. BTW, you shouldn't > need CDATA: just start escaping JS as if it were > XML. > > -- Adam > > > > On 7/17/07, Wesley Hales < [EMAIL PROTECTED]> wrote: > > Should I add an issue to Jira to get the in-line javascript generated > from > > the ChartRenderer(and any other Renderers) wrapped in > > //<![CDATA[........//]]> tags? > > > > Is this a goal of MyFaces/Trinidad to be xhtml compliant? or Is there > > another way that others are dynamically doing this without writing > their own > > renderer? > > > > Thanks, > > Wesley > > > > >

