Why are these actions (such as "goToNewPage") getting replaced with the path
to the current page (such as
"MyWebAppRoot/mysubdirectory/myJSFPage.faces")?

Well, using UICommand (Button/Link) everything is post-back (going to
"full" JSF lifecycle). This means the request is "submitted" back to
the page. Depending on your action-outcome the new page is rendered.
Keep in mind, that those links (commandLink) are not bookmarkble.

Using h:outputlink, will cause a non-post-back request (just like
typing the URL in your browser's address bar). Non-post-back-requests
will not go through the complete phases of the JSF lifecylce (only 1
and 6 are invoked)

What you can do is to add a nice "debug phase listener" to you
application, and you'll see what's happening inside JSF ([1]) :-)

HTH,
Matthias

[1] http://tinyurl.com/gwfbx

Reply via email to