File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
jQuery in Action, 2nd edition
 
subject: html page inside <f:view>