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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:20:44+00:00 2026-05-15T06:20:44+00:00

I’m using seam page navigation rules. and did not experience any problem with adding

  • 0

I’m using seam page navigation rules. and did not experience any problem with adding rules which redirect from one page to another.
But since I designed my page views using those redirection simply don’t happen anymore for those pages.
Tried to define the rule to the view that gets included, then to the view that includes the others (which to me was making more sense) but none work.
Is there anything special about page navigation in seam using included view-id ?

main.xhtml:

<h:outputLabel value="Details:"/>`

<a4j:include viewId="contacts.xhtml" id="contactsDetails"/>`

<page view-id="/*" login-required="true">
    <navigation>
        <rule if="#{myBean.readyToSee}">
            <redirect view-id="/see-contat.xhtml"/>
        </rule>
    </navigation>
</page>

I’m using jsf, xhtml as my page views.

Thanks

  • 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-15T06:20:44+00:00Added an answer on May 15, 2026 at 6:20 am

    Its difficult for me to answer this question because I simply don’t understand it. However I will try to guess what you are asking.

    You have a page ie: /somePage.xhtml and inside that page you include some other pages.

    I tend to write all my page navigation in pages.xml. I like having everything in one place, because it makes things cleaner and easier to maintain.

    You can use wildcards also in the pages.xml file.

    So you can do something like this.

    <page login-required="true" view-id="/admin/*">
        <restrict>#{s:hasRole('orgadmin') or s:hasRole('sysadmin')}</restrict>
        <navigation from-action="#{userAdmin.editUser}">
            <redirect view-id="/admin/create_user.xhtml" />
        </navigation>
    
        <navigation from-action="#{applicationProcessAdmin.saveScheme}">
            <rule if-outcome="failure">
                <redirect view-id="/admin/processes.xhtml" />
            </rule>
        </navigation>
    </page>
    

    In the above example, I am using a wildcard to say that all navigation that happens from /admin/* that uses some specific action, should redirect to some page i have.

    You can also be very specific with the pages

    <page login-required="true" view-id="/officer/admin/contacts.xhtml">
        <begin-conversation join="true" />
        <navigation from-action="#{officerAdmin.saveContact}">
            <redirect/>
        </navigation>
    </page>
    

    If this doesn’t help you, you need to clarify your question better.

    Update

    Try changing your

    <page view-id="/*" login-required="true"> 
      <navigation> 
        <rule if="#{myBean.readyToSee}">   
           <redirect view-id="/see-contat.xhtml"/> 
        </rule> 
      </navigation> 
    </page>
    

    To this instead

    <page view-id="/*" login-required="true"> 
      <navigation from-action="#{myBean.readyToSee}"> 
        <rule if="#{myBean.readyToSee}">   
           <redirect view-id="/see-contat.xhtml"/> 
        </rule> 
      </navigation> 
    </page>
    

    UPDATE 2

    Does all your navigation fail? Or is it only some?

    Try removing the /* on page view and replace with just *

    If you do this will work:

    @Name("myBean")
    public class MyBean {
      public String doSomething() {
        return "success";
      } 
    }
    

    Now from your xhtml (Does not matter which include page it is from)

    <!-- Depending on what button you are using, <h:form> is mandatory --> 
    <h:form>
      <h:commandButton value="TEST" action="#{myBean.doSomething}" />
    </h:form>
    

    And in your pages xml

    <page view-id="*">
      <navigation from-action="#{myBean.doSomething}">
    <rule if-outcome="success">
      <redirect view-id="/test.xhtml" />
    </rule>
      </navigation>
    </page>
    

    The above will work. If it does not, the error is somewhere else in your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a text area in my form which accepts all possible characters from
I am currently running into a problem where an element is coming back from
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I am reading a book about Javascript and jQuery and using one of the

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.