Please direct questions like this to the webtier_at_glassfish alias.
That said, you have an outcome of "greeting", but the navigation rule is
looking for "success".
Jim
On 1/6/10 10:51 AM, jr2008 wrote:
>
> 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?