You can modify your Visualforce page to display the detail information on the same page. You already know that you can use a single detail tag to bring up detail information, so you only have to learn how to summon that information to your current Visualforce page.
The outputLink component you used in the previous section simply created a link in your page that directed the user to another page. In order to get additional information to display on the same page, you must change the page specification a little bit.
The apex:command components, when activated by a user, submits the current page to the Force Platform server, and returns a new version of the page to the user.
Submitting a ...