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

simple question about Pagereference

How the PageReference works with the  parameter?


Is the follwing possible?


<apex:include pageName="TestPageInclude?id=a00000198765yxz"/>


if not how do i achieve this? i read the document and it suggest to do following




retuen ref1;


If i write above code then include that as page include that doesn't work.

Any help is appreciated.




Message Edited by Cheerz on 04-24-2009 06:03 PM

I also try to use the apex:include tag but i have the following error : 


An internal server error has occurred
An error has occurred while processing your request. The support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using Salesforce! 

Error ID: 307464366-1892 (492769400) 


I use the following code :

public PageReference pageName {get;set;}


in the constructor :  

pageName = new PageReference('/apex/OfferTable?id=' + offerId + '&input=true');


in the page :  

<apex:include pageName="{!pageName}"/>


How can we use merge field with the Include tag ?


Thanks in advance.