I want to include other VF page into my visualforce page, what is the best way to do that except using iframe?

  • Do you want to include another VF page or a external page ?
    – SL man
    Commented Oct 25, 2015 at 3:30
  • already edited my question. :)
    – rpm07
    Commented Oct 25, 2015 at 3:31

1 Answer 1


The best way to do it would be to either:

  1. Use <apex:include>

A component that inserts a second Visualforce page into the current page. The entire page subtree is injected into the Visualforce DOM at the point of reference and the scope of the included page is maintained.


  1. Or if Appropriate create and use a visual force Component

The body of an tag is the markup that is added to a standard Visualforce page whenever the component is included. For example, the following Visualforce page uses the component defined in Custom Component Markup (in this example, the component was saved with the name myComponent)


Caveat for both of these: You cannot use a page or component using <apex:form> inside the parent page's <apex:form> tags.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .