-
1. Re: Question around the richfaces scripts and styles
iabughosh Mar 20, 2012 10:09 AM (in response to umesh.sehgal)1 of 1 people found this helpfulhello Umesh,
i think the style and js files for some component are loaded lazily , for example if one page contains rich:tooltip then it's js & styles are loaded, if there is no tooltip in your page then no unnecessary styles and js being loaded.
regards.
-
2. Re: Question around the richfaces scripts and styles
umesh.sehgal Mar 20, 2012 10:38 AM (in response to iabughosh)Thanks Ibrahim,
But we are not using tooltip component on that page, so why it's load it then.
Structure is as follows:
Main.jsf -> has two tabs (profile.jsf and account.jsf)
Profile.jsf doesn't have any tooltip
Account.jsf uses rich:tooltip
But then even when I'm on Profile.jsf, I see tooltip related scripts and styles being loaded, not sure if that's the intended behavior.
Also, even if I assume it's the correct behavior, then not sure why it just doesn't load this script and style for a specific input, could this be affected anyways if there are some suspicious character present in the input string?
-
3. Re: Question around the richfaces scripts and styles
iabughosh Mar 20, 2012 10:47 AM (in response to umesh.sehgal)is your rich:tabPanel switchType value "client" ?., could you please try your tests without the tabs ?, thank you.
-
4. Re: Question around the richfaces scripts and styles
umesh.sehgal Mar 21, 2012 5:26 AM (in response to iabughosh)No, switchType is set to default. I did try removing the tab which includes rich:tooltip and I could see the response no longer contained those script and style.
-
5. Re: Question around the richfaces scripts and styles
iabughosh Mar 21, 2012 5:45 AM (in response to umesh.sehgal)with switchType="server" i expect the same result.
-
6. Re: Question around the richfaces scripts and styles
umesh.sehgal Apr 3, 2012 4:21 AM (in response to iabughosh)meaning if switchType="server", it would load all the scripts everytime.
Also, is it possible to somehow get some insight as how richfaces library determines to include a script/style in response? This would really help understand as under what conditions it could skip including these artifacts in response.
Thanks.