You'll need to use an <h:commandLink>, as well as add a
<navigation-rule> to your faces-config.xml file. Here's an example
from mainMenu.xhtml:
<h:commandLink value="Ajax4JSF Demo" action="ajax4jsf"/>
faces-config.xml:
<navigation-rule>
<from-view-id>/mainMenu.xhtml</from-view-id>
<navigation-case>
<from-action>ajax4jsf</from-action>
<to-view-id>/ajax4jsf.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
HTH,
Matt
On 2/19/07, sionsmith <[EMAIL PROTECTED]> wrote:
hey guys & girls - maybe i'm just being dumb but cant figure out how to link
one .xhtml page to another. I'm using facelets & sitemesh
heres an example
helpMenu.xhtml :
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:v="http://corejsf.com/validator">
<div class="row">
# <span>Forgot Your Password?</span>
</div>
forgotPassword.xhtml
<!-- Content -->
i'm not sure how i should link the helpmenu.xhtml, i've tried my normal
method which is:
<c:url value="forgotPassword.xhtml" var="forgotPass"/>
then having
${forgotPass} <span>Forgot Your Password?</span>
That gives me the following error:
Tag Library supports namespace: http://java.sun.com/jstl/core, but no tag
was defined for name: c:url
Any help would be greatful :)
Many Thanks Sion
--
View this message in context:
http://www.nabble.com/Simple-Page-Navigation-tf3252137s2369.html#a9040387
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]