function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

multiple VF pages in single VF page

Hi Guys,

Is it possible to display multiple VF pages in one VF page by using dropdown list?

I have 10 seperate VF pages (all relate to same Sobject) and displaying them as dropdown in console app.
It is really difficult for user to go back and forth.

So I need to display a single field in console app dropdown list. When the user enters to it, they should have another dropdown in the page which holding the 10 visualforce page and any one of these VF must shown as default.

You can make use of VF components, and try out your requirement.
<!-- Page: --> 
    <c:myComponent myValue="My component's value" borderColor="red" /> 

 <!-- Component:myComponent --> 
<apex:attribute name="myValue" description="This is the value for the component." type="String" required="true"/> <apex:attribute name="borderColor" description="This is color for the border." type="String" required="true"/> 
<h1 style="border:{!borderColor}">
   <apex:outputText value="{!myValue}"/> 

Thank You,

Thanks for the reply Rajesh!!

I am newbie to salesforce and apex development. From your reply, I can understand my requirement can be done via VF components.

But, if you explain a bit in detail - might be with some example, that will be more helpful to me.