You need to sign in to do that
Don't have an account?
Julian Juez Alfaro 3
How to call from one visualforce page to another visualforce page
Hi all,
I have one VF tab displayed in a customer portal. The VF page (let's call it VFpage1) contains a link to another VF page (lets call it VFpage 2).
How should I write the link on VFpage1 the way that when clicking on it, the VF tab displays VFpage2 instead.
Needless to say, on VFpage2 page there should be another link that when clicked on, the VF tab should display VFpage1, just going back and forth between the 2 pages inside 1 tab (in the Customer Portal)
Requirement: we only use 1 VF tab.
I have tried with a href and with apex:outputLink, but nothing works.I don't know whether it is possible and if yes, how the syntax should be.
Thank you.
Julian
I have one VF tab displayed in a customer portal. The VF page (let's call it VFpage1) contains a link to another VF page (lets call it VFpage 2).
How should I write the link on VFpage1 the way that when clicking on it, the VF tab displays VFpage2 instead.
Needless to say, on VFpage2 page there should be another link that when clicked on, the VF tab should display VFpage1, just going back and forth between the 2 pages inside 1 tab (in the Customer Portal)
Requirement: we only use 1 VF tab.
I have tried with a href and with apex:outputLink, but nothing works.I don't know whether it is possible and if yes, how the syntax should be.
Thank you.
Julian
PageReference gotoPage()
{
PageReference pr = Page.VFPage2;
pr.setRedirect(true);
return pr;
}
I mean: when using a ref, the sintax is <a href="URL">Click here</a>
Where do I write "Click here" using your approach? Please note that I am not a developer myself.
Thank you,
Julian
Hope it helps
I am very, very sorry... I still don't know how I should write the entire syntax, from begining to end.
I have also tried creating an APEX class with the content of your first answer but I get an error message when trying to save the class:
Error: Compile Error: unexpected token: 'PageReference' at line 1 column 0