users@woodstock.java.net

Re: Facelets + woodstock bugs in firefox : workaround

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Thu, 29 May 2008 15:37:26 -0400

FYI, I filed the following to track the issue:

https://woodstock.dev.java.net/issues/show_bug.cgi?id=1252


Dan Labrecque wrote:
> This particular write statement was introduced in Woodstock 4.3 to fix
> an issue on Safari. (Dynamic scripts are loading after the page body.)
> This fix has not been tested with facelets, but feel free to log an
> issue.
>
> Arnaud Brand wrote:
>> 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
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>