You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Martin Denham <mj...@gmail.com> on 2007/08/23 17:48:44 UTC

Problem with StreamingAddResource with JSF RI 1.2 and Firefox

When using StreamingAddResource I get an error if using JSF RI 1.2 and
Firefox as the browser.  IE 7 works fine and so does Firefox if I use
MyFaces 1.1.

The error message displayed in the browser is "This XML file does not appear
to have any style information associated with it. The document tree is shown
below"

Any idea what might be wrong?

Thanks

Martin

Re: Problem with StreamingAddResource with JSF RI 1.2 and Firefox

Posted by Martin Denham <mj...@gmail.com>.
Thanks Ryan, that worked.

On 23/08/07, rlubke <Ry...@sun.com> wrote:
>
>
> Are you using Facelets?  If so, the RI will be defaulting the content type
> to
> xhtml instead of html.
> You can add contentType="text/html" to f:view in your facelets template to
> force the content type.
>
>
>
> mjdenham wrote:
> >
> > When using StreamingAddResource I get an error if using JSF RI 1.2 and
> > Firefox as the browser.  IE 7 works fine and so does Firefox if I use
> > MyFaces 1.1.
> >
> > The error message displayed in the browser is "This XML file does not
> > appear
> > to have any style information associated with it. The document tree is
> > shown
> > below"
> >
> > Any idea what might be wrong?
> >
> > Thanks
> >
> > Martin
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Problem-with-StreamingAddResource-with-JSF-RI-1.2-and-Firefox-tf4318361.html#a12297220
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: Problem with StreamingAddResource with JSF RI 1.2 and Firefox

Posted by rlubke <Ry...@Sun.COM>.
Are you using Facelets?  If so, the RI will be defaulting the content type to
xhtml instead of html.
You can add contentType="text/html" to f:view in your facelets template to
force the content type.



mjdenham wrote:
> 
> When using StreamingAddResource I get an error if using JSF RI 1.2 and
> Firefox as the browser.  IE 7 works fine and so does Firefox if I use
> MyFaces 1.1.
> 
> The error message displayed in the browser is "This XML file does not
> appear
> to have any style information associated with it. The document tree is
> shown
> below"
> 
> Any idea what might be wrong?
> 
> Thanks
> 
> Martin
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-StreamingAddResource-with-JSF-RI-1.2-and-Firefox-tf4318361.html#a12297220
Sent from the MyFaces - Users mailing list archive at Nabble.com.