aspose file tools*
The moose likes JSF and the fly likes Manipulating HTML dom from a custom JSF component??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Manipulating HTML dom from a custom JSF component???" Watch "Manipulating HTML dom from a custom JSF component???" New topic
Author

Manipulating HTML dom from a custom JSF component???

Amine Zejli
Greenhorn

Joined: Feb 06, 2006
Posts: 1
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: http://aspose.com/file-tools
 
subject: Manipulating HTML dom from a custom JSF component???
 
Similar Threads
Custom Components and Error Handling / h:Messages
Two different web application together
Table in a List Box
1.2 Custom Component - Body Content From Backing Bean
Process JSP Stream explicitly