[ 
http://issues.apache.org/jira/browse/TOMAHAWK-780?page=comments#action_12450227 
] 
            
Werner Punz commented on TOMAHAWK-780:
--------------------------------------

Ok now we are getting close, there is a bug in the ie on certain files if the 
filelength of a stream is not set in the content header, i once stumbled over 
it in pdfs, I will push this bug forward to mario, he will look into the 
content length issue in the resource loader!


> DojoInitializer fails on IE
> ---------------------------
>
>                 Key: TOMAHAWK-780
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-780
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>            Reporter: Ariel Falduto
>
> DojoInitializer fails on explorer when tries to load the dojo.js .... if i 
> look the servlet response of dojo.js file thats not fully writed in the 
> response ... but in firefox works right.
> im debuggin currently this method placed on MyFacesResourceLoader ...
>     /**
>      * Copy the content of the specified input stream to the servlet response.
>      */
>     protected void writeResource(HttpServletRequest request, 
> HttpServletResponse response,
>             InputStream in) throws IOException
>     {
>         ServletOutputStream out = response.getOutputStream();
>         try
>         {
>             byte[] buffer = new byte[1024];
>             for (int size = in.read(buffer); size != -1; size = 
> in.read(buffer))
>             {
>                 out.write(buffer, 0, size);
>             }
>         }
>         finally
>         {
>             out.close();
>         }
>     }
> and its look fine.... cos' in firefox works ... :P

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to