This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Manipulating HTML dom from a custom JSF component???

Amine Zejli
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help : )
I am writing a custom component that uses some javascript. I would like to find out if there is a way for the component to have access to the HTML DOM on the hosting JSF page. i.e. if someone adds the custom component to their JSF page, the component will be able to
1- find the body tag in the page
2- inject on_load = "func();" to the body tag

I am thinking the custom component's renderer will take care of this but I can't figure out a way to get access to the page's DOM from their.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic