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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:04:34+00:00 2026-06-06T04:04:34+00:00

I have several jsf pages. I need to add dynamic breadcrumbs to the header.xhtml.

  • 0

I have several jsf pages. I need to add dynamic breadcrumbs to the header.xhtml. So till now I am able to get the current page’s url. In the header.xhtml I push them in stack. So whenever a new page comes as header.xhtml is common it pushes the current url to the stack variable.

I can just iterate over the stack and pop the urls and show them. But I am confused over the rest. Whenever the user goes backward I have to pop, how can I implement this? If the user went to steps back I have to pop two times.

Am I on the right track? Is there any other solution?

  • 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-06T04:04:35+00:00Added an answer on June 6, 2026 at 4:04 am

    I just added an if. If it was repeated then just pop up the rest. Now breadcrumbs work. The problems is now it just lists all the links. What if every time I go to the root, I want the tree path to start from there..

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

Sidebar

Related Questions

I'm working on a jsf project, and I have several xhtml pages which use
TL;DR: I can't get the DOCTYPE header to appear on my JSF pages. I
I have a JSF application with several major components and a component tree under
I have several dates in mysql tables, using those dates I need to find
I have a task - add round corners to HtmlPanelGrid. Now I am trying
I have a JSF page that contains a form with several elements, that correspond
We have several JSF portlets running in a websphere portal environment. A developer wants
I have a JSF converter that I use for a SelectItem list containing several
I'm using JSF 2.0 and PrimeFaces library. I have a page with several inputs
I have a JSF 2.1 (MyFaces) app running using several Session Beans (All 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.