users@woodstock.java.net

Facelets + woodstock bugs in firefox : workaround

From: Arnaud Brand <arnaud.brand_at_free.fr>
Date: Thu, 22 May 2008 15:47:24 +0200

Hi list,

I didn't find this bug in the support, but may be (some of) you were
already aware of that :
when using woodstock and facelets together on firefox (all the 3 are
latest versions),
the javascript code bugs in bootstrap.js on line 433 in function
_writeScript.
Here is the line :
document.write('<script type="text/javascript" src="' + url +
'"></script>' );

 From what I found and understood on the various forums, firefox refuses
to write to xhtml docs (this is automatically the case when you're using
facelets.)

The workaround is to let the facelets announce a "text/html" content
type instead of "application/xhtml+xml".
This can easily be achieved by encapsulating your page content in
<f:view contentType="text/html"> .... </f:view>.

Should I file a bug for this issue ?

Best regards,
Arnaud