-
1. Re: Disable javascript on rich:dataTable
ilya_shaikovsky Feb 3, 2009 7:26 AM (in response to cercatop)you have some a4j controls on the page which requires this scripts.
-
2. Re: Disable javascript on rich:dataTable
cercatop Feb 3, 2009 8:29 AM (in response to cercatop)Thanks for the suggestion, bu it's not the case. It's enough to remove the rich:dataTable and the scripts are not loaded any more...
-
3. Re: Disable javascript on rich:dataTable
ilya_shaikovsky Feb 3, 2009 9:33 AM (in response to cercatop)sorry.. forgot one point. dataTable provides filtering and sorting via ajax. So this scripts loaded as for a4j:* action controls.
-
4. Re: Disable javascript on rich:dataTable
cercatop Feb 3, 2009 11:58 AM (in response to cercatop)what sounds really strange to me is that, even if those functionality are not used, however it loads the js. To load 150kb of js to then not use them is not a big deal...
-
5. Re: Disable javascript on rich:dataTable
nimo22 Feb 3, 2009 12:05 PM (in response to cercatop)Maybe this can be helpful to know (from the rf-manual):
<!-- Change load strategy to DEFAULT to disable sending scripts/styles as packs --> <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>
I do not know, if this would change the behaviour of loading the un-necessary script. -
6. Re: Disable javascript on rich:dataTable
ilya_shaikovsky Feb 3, 2009 12:16 PM (in response to cercatop)Unfortunatelly it will not helps. I've created https://jira.jboss.org/jira/browse/RF-6021 for investigations.
-
7. Re: Disable javascript on rich:dataTable
cercatop Feb 5, 2009 4:37 AM (in response to cercatop)Thanks a lot ilya and nimo.
Coming back to the solution that nimo proposed, i've tried (http://jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/faq/faq.html#d0e1557) to apply this:<context-param> <param-name>org.richfaces.ExcludeScripts</param-name> <param-value>prototype</param-value> </context-param>
to avoid at least to load one of the two scripts, but it's not working (richfaces 3.2.2.GA).
I've already applied your first suggestion:<context-param> <param-name>org.richfaces.LoadStyleStrategy</param-name> <param-value>ALL</param-value> </context-param>
with parameter set to none and it's working, but obviously has no effect on js but only on css/richfaces-skinning.
For the second suggestion:<context-param> <param-name>org.richfaces.LoadScriptStrategy</param-name> <param-value>ALL</param-value> </context-param>
I could think about apply "none" as parameter but this would mean that then I've to manually manage the loading of all the js in all the pages...
May someone could suggest me a suitable parameter.
Thanks -
8. Re: Disable javascript on rich:dataTable
ilya_shaikovsky Feb 5, 2009 6:38 AM (in response to cercatop)In your case you could not remove this scripts without using NONE strategy for scripts. But you have to manage scripts within application in this case. (Exclude Scripts parameter at all seems just artifact from 3.1.x version. :) ) So the only I could tell you currently to vote for the issue I filled.