Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3670416
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:21:44+00:00 2026-05-19T02:21:44+00:00

I have what I thought was simple JSF navigation setup but when I hit

  • 0

I have what I thought was simple JSF navigation setup but when I hit the h:commandButton the page reloads, not the page I want to load. The faces-config snippet is here:

    <navigation-rule>
    <from-view-id>/index.jsf</from-view-id>
    <navigation-case>
        <from-outcome>hello</from-outcome>
        <to-view-id>/next.jsf</to-view-id>
    </navigation-case>
</navigation-rule>

the index.xhtml file contains this:

<f:view>
    <a4j:region id="topRegion">
        <rich:page pageTitle="myapp" markupType="xhtml" id="top">
<f:facet name="header">
<h:form>
    <rich:toolBar height="45" itemSeparator="disc">
        <rich:toolBarGroup location="left">
            <h:form name="selectForm">
                <h:panelGrid columns="5" style="padding: 2px;">
                    <h:outputText style="text-align: center" value="Node Select " />
                    <h:selectOneMenu id="nodes" value="#{MyBacking.chosenNode}">
                        <f:selectItems value="#{MyBacking.nodes}" />
                    </h:selectOneMenu>

                    <h:commandButton value="Retrieve" styleClass="ctrlBtn"
                        id="retrieveBtn" style="margin-bottom: 2px;"
                        action="hello"
                        image="/img/btnRetrieve26.png" />
                </h:panelGrid>
            </h:form>
        </rich:toolBarGroup>
    </rich:toolBar>
</h:form>

It’s as simple as that. Can anyone tell me why it’s not working?

As far as I’m aware, the from-outcome of hello should be used by the h:commandbutton and load next.xhtml file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:21:44+00:00Added an answer on May 19, 2026 at 2:21 am

    Your files are .xhtml not .jsf

    have you tried:

    <navigation-rule>
        <from-view-id>/index.xhtml</from-view-id>
        <navigation-case>
            <from-outcome>hello</from-outcome>
            <to-view-id>/next.xhtml</to-view-id>
        </navigation-case>
    </navigation-rule>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never thought about until recently, but I'm not sure why we call
You would have thought that tere is a simple solution to this but there
Should have been simple I would have thought. I want to force the PC
I am working though some simple DX tutorials, and have hit an early snag.
I would have thought that this would be an easy thing to do, but
Before answering, it is not as easy question as you might have thought about
I thought I have seen this somewhere but can't find it any more on
I want to do something that I thought would be very simple. I want
Richfaces 3.3.3, Jsf 1.2: I have a a4j:form that uses some simple validation, mainly
Thanks for reading this. I would have thought it would be as simple as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.