You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ariel Falduto (JIRA)" <de...@myfaces.apache.org> on 2006/11/14 20:13:37 UTC
[jira] Created: (TOMAHAWK-780) DojoInitializer fails on IE
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
[jira] Commented: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
[ 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
[jira] Commented: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Ariel Falduto (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-780?page=comments#action_12450095 ]
Ariel Falduto commented on TOMAHAWK-780:
----------------------------------------
im test the examples and works fine ... but there are something strange ... i install on IE6 an extension named "IEWatch" this showme all request fired by ie but when i see the contents leaded from dojo.js file i saw that is not complete co' im currently compearing' with the dojo embedded in tomahwak1.1.5-SNAPSHOT jar .. im dont understand ... whats happen ... is an error of this extension ???
and another thing that makes me think, the current extension not determining the size of dojo.js file, when in any other request can solve it.
can u test it ??
> 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
[jira] Commented: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Ariel Falduto (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-780?page=comments#action_12449997 ]
Ariel Falduto commented on TOMAHAWK-780:
----------------------------------------
Hi Werner, im test everything and nothings happends, im workin on IE6. Really is very strange ... im looking for a limitation of content-length of xmlhttprequest on explorer an at this moment nothings found ...
My rapid solution was to copy all dojo files to my web application and work with this ...
And found other issues with the MyFacesResourceLoader with my custom component definition but i really no have much time to lose =( in many months i work so hard with this ...
:P
> 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
[jira] Commented: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-780?page=comments#action_12450045 ]
Werner Punz commented on TOMAHAWK-780:
--------------------------------------
Hello im am a little bit stumbling here, because you are the first user worldwide reporting this and dojo has been in tomahwk or the sandbox for half a year now, I assume if it is not your cache then a misconfiguration on your app server side or a broken browser executable.
please try following
http://example.irian.at/example-sandbox-20061115/dojo/splitpanejsfonly.jsf
and this one for a html rich text editor
http://example.irian.at/example-simple-20061115/dojo/textareatestjsfonly.jsf
it uses the same intiialisation routines as the initializer, if it works for you then please recheck your configs and the samples webapp on your local installation if it faiis.
I just have reconfirmed here that both examples are working on my local ie6 testconfig
(parallels running ie6 in winxp).
> 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
[jira] Resolved: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-780?page=all ]
Werner Punz resolved TOMAHAWK-780.
----------------------------------
Resolution: Fixed
I am setting this issue to resolved now since ariel does not answer, but I am not quite sure if the missing content length was the entire problem, Sylvain upgraded to 0.4 recently without upfront notification and I had issues with ie under a certain condition with the dojo 0.4 release.
But since ariels problem was not reproducable here, I am leaving this as is, because my dojo 0.4problem is very seldom and no other case of this issue has been reported on the dojo mailing list so far!
> 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
> Assigned To: Mario Ivankovits
>
> 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
[jira] Commented: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Ariel Falduto (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-780?page=comments#action_12449736 ]
Ariel Falduto commented on TOMAHAWK-780:
----------------------------------------
sorry the affected version is the 1.1.5-SNAPSHOT
thks !!!
> 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
[jira] Commented: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Werner Punz (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-780?page=comments#action_12449954 ]
Werner Punz commented on TOMAHAWK-780:
--------------------------------------
Hi Aturo, this is the first time someone reported something like this, and I also test on IE here as well.
Maybe this bug is newly introduced I will check it tonight, but before digging into this issue, please test first if the caching of your browser does not intefere with the problem, clear your browsers cache first and restart the browser, and then tell me if the problem still is there.
This problem is somewhat new to me.
And at a first look the response writing routing looks also correct (except maybe for a missing flush, which should not really be an issue due to the close)
> 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
[jira] Commented: (TOMAHAWK-780) DojoInitializer fails on IE
Posted by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-780?page=comments#action_12450237 ]
Mario Ivankovits commented on TOMAHAWK-780:
-------------------------------------------
Ok, content-length added. Ariel, could you please try the latest svn head. Thanks!
> 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
> Assigned To: Mario Ivankovits
>
> 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