-
1. Re: Strange behaviour with richfaces js files
nbelaevski Dec 14, 2010 9:02 PM (in response to mohamida)1 of 1 people found this helpfulHi,
Can you please remove external JS files (ls/lscommons.js etc) and check whether this will fix the problem?
-
2. Re: Strange behaviour with richfaces js files
mohamida Dec 15, 2010 2:58 AM (in response to nbelaevski)i removed them, and it fixed the problem.
But the problem is i must not remove them, because i need them.
Is there a solution to my problem ?
-
3. Re: Strange behaviour with richfaces js files
mohamida Dec 15, 2010 4:42 AM (in response to nbelaevski)when i remove these lines from web.xml:
<context-param><param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name><param-value>true</param-value></context-param><context-param><param-name>org.ajax4jsf.COMPRESS_STYLE</param-name><param-value>true</param-value></context-param><!--will make sure that all style and script related filesshould be loaded at client side at once on first requestwhen richfaces application is accessed--><context-param><param-name>org.richfaces.LoadStyleStrategy</param-name><param-value>ALL</param-value></context-param><context-param><param-name>org.richfaces.LoadScriptStrategy</param-name><param-value>ALL</param-value></context-param><context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>ALL</param-value>
</context-param>
now i see 10 times of skinning.js and of http://mydomain/faces/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__ and http://mydomain/faces/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
-
4. Re: Strange behaviour with richfaces js files
nbelaevski Dec 15, 2010 7:01 AM (in response to mohamida)Check script code - is it creating set of IFRAME elements with these scripts?
-
5. Re: Strange behaviour with richfaces js files
mohamida Dec 15, 2010 7:04 AM (in response to nbelaevski)i'm using lightstreamer for ajax push, and certainly it creates IFrames.
-
6. Re: Strange behaviour with richfaces js files
nbelaevski Dec 15, 2010 7:10 AM (in response to mohamida)So, it is loading scripts into these IFRAMEs.
-
7. Re: Strange behaviour with richfaces js files
mohamida Dec 15, 2010 7:21 AM (in response to nbelaevski)yes, that's true. Is there a way to not let those IFrames use richfaces's scripts ?
-
8. Re: Strange behaviour with richfaces js files
nbelaevski Dec 15, 2010 7:44 AM (in response to mohamida)I don't know - check for LS plugin options/source code.
-
9. Re: Strange behaviour with richfaces js files
jbalunas Dec 15, 2010 7:55 AM (in response to mohamida)1 of 1 people found this helpfulSure, you have basically told RichFaces to not combine JS files, and compress them. Since the main issue ( iframes from LS plugin ) is not solved this will only multiply the issue.