I'd like to know if this is possible at all. What I want to do is to create a wrapper VisualForce page which simply takes a URL as a parameter, and renders it. I have tried this, but it renders the HTML text and not the page. Any suggestions?
Thx, Hamayoun
Controller:
public class wrapper1 {
public String output {set;get;}
public wrapper1 () {
String url1 = ApexPages.currentPage().getParameters().get('url1') ;
PageReference pr = new PageReference (url1);
output = pr.getContent().toString();
}
}
VisualForce:
<apex:page controller="wrapper1">
<apex:outputPanel>
{!output}
</apex:outputPanel>
</apex:page>