You need to sign in to do that
Don't have an account?

How can I call / open another visualforce page. Open in the same Frame
Hello,
I want to open another visualforce page ("test") with the following tag.
How can I call that?
<li><a href="test"style="font-size: 18px;">Text</a></li>
Hi,
As far as I understand, you might want to try something like this:
In VF Page:
<apex:commandLink value'"Text" action="{!testing} />
In the controller:
public pagereference testing() {
Page.test; //Call the 'test' page you already have in your org.
OR
PageReference testpage = new PageReference('/' + page.id);
testpage.setRedirect(true);
return testpage;
}
Hope this helps.
All Answers
Hi,
As far as I understand, you might want to try something like this:
In VF Page:
<apex:commandLink value'"Text" action="{!testing} />
In the controller:
public pagereference testing() {
Page.test; //Call the 'test' page you already have in your org.
OR
PageReference testpage = new PageReference('/' + page.id);
testpage.setRedirect(true);
return testpage;
}
Hope this helps.
But it possible that it looks like the normal Button with the apex commandlink?
<a href="#" data-role="button"><apex:form><apex:commandLink value="Textsdads" action="{!testing}"/>
</apex:form>
</a>
It looks different to the normal button. Any suggestion?