Fortunately, it looks like the
apex:commandLink
element paired with apex:param
is able to produce the customizable navigation code I wanted.Instead of writing out methods like the following...
public PageReference goToPage1() { ... } public PageReference goToPage2() { ... } public PageReference goToPage3() { ... }
all that's needed is...
public PageReference goToDestinationPage() { ... }
Much better, right? See the demo source code for more details.