-
1. Re: add javascript declaration to header - like richfaces do
holger_p Jun 19, 2008 9:26 AM (in response to holger_p)Any richfaces developer here that can maybe give me a hint how richfaces does its job with adding javascript resources to head?
Thx very much,
Holger -
2. Re: add javascript declaration to header - like richfaces do
nbelaevski Jun 19, 2008 6:06 PM (in response to holger_p)Holger,
That happens in one of three parsers, invoked by filter. E.g.: org.ajax4jsf.webapp.nekko.NekkoParser.ViewStateFilter#insertResources(). All parsers implement org.ajax4jsf.webapp.HtmlParser interface, you can find them by invoking "Open hierarchy" command in your IDE.
Also these class code: org.ajax4jsf.context.ViewResources maybe helpful to know what resources are collected. -
3. Re: add javascript declaration to header - like richfaces do
holger_p Jun 20, 2008 6:05 AM (in response to holger_p)ah ok, so the filter is envolved and starts the insertion, i assumed the filter finally does the job but wasnt sure.
Hey thx very much, helped me a lot - me sure i can implement same behaviour for my app :-)
Btw: Richfaces is really nice.
Bye,
Holger