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 8282449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:22:26+00:00 2026-06-08T10:22:26+00:00

Include tree page (List, View, Edit) in index and used same command tow page

  • 0

Include tree page (List, View, Edit) in index and used same command tow page (List and View) .When I List.xhtml page ‘s View or Edit button click and open it; but View.xhtml page’s Edit button click then show in flowing massage:

Unable to find matching navigation case with from-view-id '/index.xhtml' for action '#{instituteController.viewEdit}' with outcome 'null'

.

I want View page’s Edit button click to edit page open into index page.
List.xhtml code:

<h:commandButton action="#{instituteController.prepareView}" value="#{bundle.ListInstituteViewLink}">
   <f:ajax execute="@form" render="@form"/>
</h:commandButton>

<h:commandButton action="#{instituteController.prepareEdit}" value="#{bundle.ListInstituteEditLink}">
    <f:ajax execute="@form" render="@form"/>
</h:commandButton>

View.xhtml code

 <h:commandButton action="#{instituteController.viewEdit}" value="#{bundle.ListInstituteEditLink}">
 <f:ajax execute="@form" render="@form"/>
</h:commandButton>

instituteController.java code:

   public String prepareEdit() {
    current = (Institute) getItems().getRowData();
    selectedItemIndex = pagination.getPageFirstItem() + getItems().getRowIndex();
    return "index";
}
 public String viewEdit() {

          return "null";
}

If I return “index” ; this command don’t work. Again show this code:

          public String viewEdit() {

          return "index";
          }
  • 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-06-08T10:22:28+00:00Added an answer on June 8, 2026 at 10:22 am

    Your mistake is here:

    public String viewEdit() {
        // ...
        return "null";
    }
    

    You’re returning a String instance with value of "null". This is not the same as the literal null.

    Fix it accordingly:

    public String viewEdit() {
        // ...
        return null;
    }
    

    or just return nothing:

    public void viewEdit() {
        // ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

// Huffman Tree.cpp #include stdafx.h #include <iostream> #include <string>//Necessary to do any string comparisons
#include<iostream> using namespace std; /*main idea is to construct ordered statistic tree,which is similar
I downloaded the MySQL Connector/C++ source tree, which has an 'include' and a 'lib'
I have used AJAX to successfully change the content of a web page. I
My page consists of several areas which are created by iterating over a list
I want to include folder in doxygen documentation. I have tried \page and \include
How can I include a page from magnolia into a magnolia template script? In
I have built an application with a tree view showing the file structure of
given a hierarchical view on my asp.net mvc page is it possible to type
I noticed on the AVL Tree Wikipedia page the following comment: If each node

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.