This content has been marked as final.
Show 8 replies
-
1. Re: org.ajax4jsf.COMPRESS_SCRIPT
Sascha Janz Aug 5, 2009 1:07 PM (in response to Sascha Janz)so i found in documentation to use
<web:ajax4jsf-filter force-parser="true"
enable-cache="true"
log4j-init-file="custom-log4j.xml"
url-pattern="*.seam"/>
in my components.xml.
but when i do this i got
Caused by: org.dom4j.DocumentException: Error on line 60 of document : The pref
ix "web" for element "web:ajax4jsf-filter" is not bound. Nested exception: The p
refix "web" for element "web:ajax4jsf-filter" is not bound. -
2. Re: org.ajax4jsf.COMPRESS_SCRIPT
Nikos Paraskevopoulos Aug 5, 2009 2:30 PM (in response to Sascha Janz)You probably should add the namespace:
xmlns:web="http://jboss.com/products/seam/web"
-
3. Re: org.ajax4jsf.COMPRESS_SCRIPT
Fernando Montaño Aug 5, 2009 3:00 PM (in response to Sascha Janz)What do you mean with "nothing changed"?
org.ajax4jsf.COMPRESS_SCRIPT=true just removes white spaces and tries to put the script in less lines than the readable, good looking and original javascript file. Is that what you were expecting for?
If you are expecting for Gzip, deflat compression (in order to reduce the traffic to the server) that's not the way, you should have a look to other alternatives. But all depends what's you final goal.
HTH. -
4. Re: org.ajax4jsf.COMPRESS_SCRIPT
Sascha Janz Aug 5, 2009 5:42 PM (in response to Sascha Janz)i want to reduce traffic and improve performance
i added
compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript"
compression="on"
to my connector in server.xml
can i do more? -
5. Re: org.ajax4jsf.COMPRESS_SCRIPT
Shervin Asgari Aug 5, 2009 9:09 PM (in response to Sascha Janz)You can take a look at this page, however it is not finished I believe
-
6. Re: org.ajax4jsf.COMPRESS_SCRIPT
Shervin Asgari Aug 5, 2009 9:14 PM (in response to Sascha Janz)...and it is more for after Seam 2.2.1, so I believe you have to wait. But maybe you get some tips
-
7. Re: org.ajax4jsf.COMPRESS_SCRIPT
Sascha Janz Aug 5, 2009 10:37 PM (in response to Sascha Janz)i already looked at the page. that's why i got
compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript"
compression="on"
is there more i could do?
i see e.g. that the scripts included from richfaces still contains lots of white spaces etc.
any more hints? -
8. Re: org.ajax4jsf.COMPRESS_SCRIPT
Shervin Asgari Aug 6, 2009 10:03 AM (in response to Sascha Janz)