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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:33:44+00:00 2026-05-31T13:33:44+00:00

I am using Primefaces 3.0. I have a datatable with selectionMode single as shown

  • 0

I am using Primefaces 3.0. I have a datatable with selectionMode single as shown below:

 <p:dataTable  id="paySumm" var="PSummRow" 
 value="#{beanPySummary.PySummariesModel}" 
 selection="#{beanPySummary.selectedPySummary}" selectionMode="single" paginator="true" 
 rows="15" paginatorTemplate="{RowsPerPageDropdown}  {FirstPageLink} {PreviousPageLink} 
 {CurrentPageReport} {NextPageLink}"  rowsPerPageTemplate="10,15,25,35" >

 <p:ajax event="rowSelect" listener="#{beanPySummary.onRowSelect}" />

I have some business logic in the method onRowSelect and then I navigate to another page.

public String onRowSelect(SelectEvent event) {
   ......
   ConfigurableNavigationHandler configurableNavigationHandler =
   getCurrentInstance().getApplication().getNavigationHandler(); 
   configurableNavigationHandler.performNavigation("MoreDetail?faces-redirect=true
   return  "";

I have some data that I would like to pass as parameters to MoreDeatils with includeViewParam. I can define those as f:ViewParam in MoreDeatils.xhtml. I am not sure if I need to use ManagedProperty annotation and at the same time define those params as hidden fields on my datatable page. Here I need advise and directions.

Thanks,
Peter

  • 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-31T13:33:45+00:00Added an answer on May 31, 2026 at 1:33 pm

    You can just send a redirect by ExternalContext#redirect(). The data which you’d like to send along needs to be set in the query string of the URL.

    public void onRowSelect(SelectEvent event) throws IOException {
        String field1 = URLEncoder.encode(this.field1, "UTF-8");
        String field2 = URLEncoder.encode(this.field2, "UTF-8");
        String field3 = URLEncoder.encode(this.field3, "UTF-8");
        String url = "MoreDetail.xhtml?field1=" + field1 + "&field2=" + field2 + "&field3=" + field3;
        FacesContext.getCurrentInstance().getExternalContext().redirect(url);
    }
    

    Please note that (ajax) action listener methods are supposed to return void.

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

Sidebar

Related Questions

I have a modal ConfirmDialog that is shown over a modal Dialog using PrimeFaces
I'm using primefaces and jstl to loop a datatable.I have a List in backing
I have a non-editable DataTable built with PrimeFaces. The table is initially filled with
I'm using primefaces' accordion panel. Inside the tabs i have forms which are created
Primefaces Datatable let you configure the filtering type you use for a column, using
I am using Primefaces google map component. I have some markers and info windows
I am using primefaces datatable. How to set width when the table is empty
I'm using Primefaces 3.0.RC1 and on a form I have a <p:fileUpload mode=advanced auto=true>
I'm using JSF 2.0 and PrimeFaces library. I have a page with several inputs
I have a inputTextarea that I refresh using PrimeFaces' AJAX poll. When the inputTextarea

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.