I doubt it, the Filter modifies the response just before it gets sent back to 
the client. It'd have to be client-side, or the last filter in a chain, but 
developers usually explicitly put the compression filter last ;)

Time to add-in my compression filter again, but excluding *.js!!

-----Original Message-----
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:58 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


I wonder if there is some way I can detect someone using a gzip filter
already on output streams somehow ?

At the very least it sounds like I need to have a global yes/no kind
of option to use it or not. ...I'll file my own jira issue : )

On 12/21/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Fixed it! Alright, so it was GZIP'd JS "include" causing the issue!
>
> Initially I had a compression filter on my servlet path /app/*. So it 
> compressed the JS file that Tapestry was returning with the URL 
> /app?service=asset&path=%2Fdojo%2Fdojo.js
>
> Then I disabled the filter.
>
> I guess this file was still cached :@
>
> I downloaded an extension to modify my request headers to set 
> "Accept-Encoding=none". Did a refresh on my app. Stuff works :) I guess it 
> overwrote the cached version. Now if I pase that URL above into the address 
> bar, I get a bunch of javascript. Tapestry remains not at fault ;)
>
> That would also explain why it "worked" in IE - I tried it after I disabled 
> the gzip compression filter.
>
> Thanks! Greg
>
>
>
>
> -----Original Message-----
> From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 21, 2006 3:44 PM
> To: Tapestry users
> Subject: Re: Help with @ScriptIncludes
>
>
> All I see in the email is some sort of weird checkbox icon ?
>
> Maybe at least turning the debug console on (ie using FireBug ) and
> copying and pasting some of those exact errors and all text associated
> with them might help me.
>
> On 12/21/06, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > I'm not setup on Maven2, or Jetty for that matter at all :(  
> > Netbeans+Ant+Websphere5 is what I'm stuck with over here :(
> >
> > The reason I'm curious about Firefox is because it's definately choking on 
> > the <script> "include" line. The error console gives an illegal character, 
> > and then a ton of undefined objects, indicating the file isn't getting 
> > parsed.
> >
> > Error: illegal character
> > Source File: http://peanut/pctadmin/app?service=asset&path=%2Fdojo%2Fdojo.js
> > Line: 1
> > Source Code:
> > <
> > Error: dojo is not defined
> > Source File: http://peanut/pctadmin/app?&page=Home
> > Line: 14
> >
> > None of these errors are there on IE - instead I get other errors which 
> > indicate I have no idea what I'm doing with Tapestry 4.1 and dojo, which is 
> > very accurate :-D But at least it appears the DOJO library is actually 
> > being loaded.
> >
> >
> > -Greg
> >
> > -----Original Message-----
> > From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 21, 2006 3:24 PM
> > To: Tapestry users
> > Subject: Re: Help with @ScriptIncludes
> >
> >
> > Firefox doesn't have any issues with gzip compression. IE does in very
> > special cases (even when it sends headers saying it does), but I've
> > got these corner cases covered as well.
> >
> > Allowing for more fine grained controls over these additional asset
> > service abilities is on my todo list but not something you can control
> > very much currently. (other than adding more regexp config options to
> > have ~more~ assets handled this way)
> >
> > I'm afraid you are stuck giving me an example to track things down
> > with for now. .. (which is better for me but I do know it might be
> > frustrating..)
> >
> > On 12/21/06, [EMAIL PROTECTED]
> > <[EMAIL PROTECTED]> wrote:
> > > Hmm, oddly enough in Internet Explorer, I think it's working.
> > >
> > > Maybe firefox doesn't support GZIP'd JS files...
> > >
> > > Jesse, is there a way to disable all response compression in Tapestry?
> > >
> > > Thanks,
> > > Greg
> > >
> > > -----Original Message-----
> > > From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, December 21, 2006 3:05 PM
> > > To: Tapestry users
> > > Subject: Re: Help with @ScriptIncludes
> > >
> > >
> > > No idea...It "should" be working.
> > >
> > > The illegal character error sounds suspicious. Are you trying to use
> > > some dojo widgets on this page and if so which ones ?
> > >
> > > Other than that I'd probably need a test case or
> > > something..(preferably a self contained maven2 mini app with embedded
> > > jetty stuff so I can just run "mvn jetty:run" to get going. )
> > >
> > > On 12/21/06, [EMAIL PROTECTED]
> > > <[EMAIL PROTECTED]> wrote:
> > > > Okay, in my border.html, inside my <head> I have a nice
> > > >
> > > > <span jwcid="@ScriptIncludes" />
> > > >
> > > > I view source and looks like it's working:
> > > >
> > > > <script type="text/javascript">djConfig = ..snip... </script>
> > > > <script type="text/javascript" 
> > > > src="/pctadmin/app?service=asset&path=%2Fdojo%2Fdojo.js"></script>
> > > > ...snip a few more script tags ...
> > > >
> > > >
> > > > However, I'm getting an error on the first dojo.js include..
> > > >
> > > > Error: illegal character
> > > > Source File: 
> > > > http://peanut/pctadmin/app?service=asset&path=%2Fdojo%2Fdojo.js
> > > > Line: 1
> > > > Source Code:
> > > > <
> > > >
> > > > if I paste that URL directly into my browser I get a bunch of 
> > > > jibberish. It does look like it's gzip-compressed... I disabled all my 
> > > > compression filters but it's still compressed, possibly by Tapestry.
> > > >
> > > > Any ideas? This should in theory be working out of the box?
> > > >
> > > > Thanks,
> > > > Greg
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to