This content has been marked as final.
Show 1 reply
-
1. Re: Handling RAW HTML in Seam?
mail.micke Nov 10, 2008 7:41 PM (in response to paulmkeogh)How about something like this.
In the page that opens up the new page:
<h:outputLink value="/showContent.jsf" target="_blank"> <f:param name="param" value="#{someBean.someValue}"/> </h:outputLink>
The backing bean behind the showContent.jsf page :
@Name("showContentBacking") @Scope(ScopeType.EVENT) public class ShowContentBacking .... { @RequestParameter("param") String reqParam; private String htmlString; @Create public void init(){ htmlString = //HttpClient call using the reqParam } // getters and setters }
Then just create a showContent.xhtml page which gets the htmlString from the event scoped backing bean.
Just typed the stuff in here so there are probably loads of errors.
cheers,
Micke