David,

what you can do is:

-create a component that renders out the needed html/js and add in
*each* page like:
</body><foo:goolgle/></f:view>

or you can *customize* the myfaces code that at the very end of the
render response phase your custom markup is send down to the client.

-M

On 10/14/06, David Heffelfinger <[EMAIL PROTECTED]> wrote:
Hello,

I recently developed an online utility using MyFaces. This utility is hosted
on a public site. I am using Google Analytics to track traffic to the site.
Google analytics requires a snippet of Javascript to be added to the bottom
of every page, right before the closing </body> tag.

I added the required script to my JSP, however the rendered HTML places a
script generated by MyFaces below it, therefore the Google Analytics script
is no longer in the required place. Is there any way to get the MyFaces
generated script to be placed above the Google Analytics script?

Thanks,
David

--
http://ensode.net - A Guide to Java, Linux and Other Technology Topics


--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to