aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html page inside <f:view>
 
Similar Threads
Unable to read html_basic.tld from jsf-impl-2.1.2.jar
Constructor of a Backing Bean of JSF page Invoking Twice on Initial Load
JavaScript referring to JSF tags
how to view HTML code in jsf
JSF including HTML within a method