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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:28:02+00:00 2026-06-10T23:28:02+00:00

Probably I am missing something here. I have a template with a menu, with

  • 0

Probably I am missing something here.

I have a template with a menu, with the options passign parameters to the JSF page:

<rich:menuItem label="Todos" action="#{mainMenuCtrl.listTickets}">
  <f:param name="baseLocation" value=""/>
  <f:param name="ticketStatus" value="Solicitado"/>
</rich:menuItem>
<rich:menuItem label="H. General" action="#{mainMenuCtrl.listTickets}">
  <f:param name="baseLocation" value="HGN"/>
  <f:param name="ticketStatus" value="Solicitado"/>
</rich:menuItem>

The controller just redirects to the page:

public String listTickets() {
  return "ticketsList.xhtml?faces-redirect=true&includeViewParams=true";
}

And ticketsList.xhtml has the metadata section:

<f:metadata>
  <f:viewParam name="baseLocation" value="#{ticketsListCtrl.baseLocation}" converter="es.caib.gesma.gesman.data.converter.LocationConverterByShortCode"/>
  <f:viewParam name="ticketStatus" value="#{ticketsListCtrl.ticketStatus}" converter="es.caib.gesma.gesman.data.converter.TicketStatusConverter"/>
  <f:event type="preRenderView" listener="#{ticketsListCtrl.retrieveTickets()}" />  
</f:metadata>

The problem is that, when I am at another page (index.xhtml) that uses the same template, clicking in any of the menu items drives me ticketsList.xhtml but both params are empty.

../ticketsList.xhtml?baseLocation=&ticketStatus=

When I click the same item from ticketsList.xhtml, it shows the correct URL and from there anything works ok.

../ticketsList.xhtml?baseLocation=HGN&ticketStatus=Solicitado

Can anyone point to me why are the view-params missing when clicking from other pages?

Thanks in advance.

  • 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-10T23:28:03+00:00Added an answer on June 10, 2026 at 11:28 pm

    The includeViewParams will include the view parameters of the current view, not of the target view.

    You basically need to define the to-be-included view parameters as <f:viewParam> in index.xhtml as well, or to look for an alternate approach.

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

Sidebar

Related Questions

I'm probably missing something easy, but I seem to be blocked here... I have
I am probably missing something very simple, but here is the situation: I have
I'm probably missing something very obvious here. I have files with the extension .st
I'm probably missing something obvious here but here's what I'm trying to do. From
Probably missing something completely obvious here, but here goes. I'm starting out with Spring
I'm probably missing out on something fundamental here but it seems rather tricky and
I know I'm probably missing something easy, but I have a foreach loop and
I am fairly new to WPF and am probably missing something simple here. If
I am fairly new to Java so I am probably missing something fundamental here
Okay, I'm probably missing something really simple here, but I've been at this for

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.