dev@javaserverfaces.java.net

JSF Navigation Problem

From: jr2008 <jaya.j12_at_gmail.com>
Date: Wed, 6 Jan 2010 10:51:20 -0800 (PST)

Hi all,
>
> I am trying to navigate from my welcomeJSF.jsp page to the
> greeting.jsp
> page.
> When I submit commandButton nothing happens except I receive
> this log in
> my
> Sun App server 9 log page.
>
> [#|2006-10-22T09:11:44.164-0500|WARNING|sun-appserver-pe9.0|
> javax.enterprise.resource.webcontainer.jsf.application|
> _ThreadID=17;_ThreadName=httpWorkerThread-8080-0;/welcomeJSF.jsp;greeting;greeting;_RequestID=a274741f-9b30-4721-aa28-74e0ef99c336;|"JSF1013:
Unable to find matching navigation case from view ID '/welcomeJSF.jsp' for
outcome 'greeting' and action
'greeting'|#] >
> this is a part of code from my welcomeJSF.jsp file using
> commandButton
>
> <f:view>
>
> <h1>
> <h:outputText value="#{msg.inputname_header}"/>
> </h1>
> <h:form id="helloForm">
> <h:outputText value="#{msg.prompt}"/>
> <h:inputText value="#{personBean.personName}"/>
> <h:commandButton action="greeting"
> value="#{msg.button_text}"/>
> </h:form>
>
> </f:view>
>
> and below is my navigation code from faces-config.xml
>
> <navigation-rule>
> <from-view-id>./faces/welcomeJSF.jsp</from-view-id>
> <navigation-case>
> <from-outcome>success</from-outcome>
> <to-view-id>./faces/greeting.jsp</to-view-id>
> </navigation-case>
> </navigation-rule>
>
> Does anyone know why I can't forward to greeting page?
-- 
View this message in context: http://old.nabble.com/JSF-Navigation-Problem-tp27026936p27026936.html
Sent from the javaserverfaces dev mailing list archive at Nabble.com.