This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes html page inside <f:view> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "html page inside <f:view>" Watch "html page inside <f:view>" New topic
Author

html page inside <f:view>

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

I get a html page as output from a webservice call. I have to show that on a jsf page. If i give <tutputText value="#{myBean.myVO.htmlForm}"/>, my page is getting displayed with all the html content but my style sheet is not getting applied, menus and tabs are not coming and also i can see some javascript errors. Any suggestions how to include a html page inside a jsf page?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
All relative paths inside the HTML (in the <link>, <script>, <a>, <form> etc elements) are relative to the initial request URL.

Either make them absolute or look for another approach, e.g. an iframe or object element.
 
Don't get me started about those stupid light bulbs.
 
subject: html page inside <f:view>