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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:47:35+00:00 2026-05-26T21:47:35+00:00

We are using Primefaces 3M4 and one of our pages has a p:dataTable which

  • 0

We are using Primefaces 3M4 and one of our pages has a p:dataTable which uses ajax calls for events:

<p:ajax event="rowSelect" update=":newsForm:newsDlg" oncomplete="newsDlg.show();"/>

When the session times out the page gets redirected to /login.xhtml which works fine for non-ajax actions (menu items, etc) but when I select a row in the datatable after the session has expired the page doesn’t change to the login page and in Firebug I see the following:

Under dashboard.xhtml Headers section of Firebug

Response Headers
Server  Apache-Coyote/1.1
X-Powered-By    JSF/2.0
Location    http://localhost:8080/RetailerPortal/faces/login.xhtml
Content-Length  0
Date    Fri, 11 Nov 2011 18:32:42 GMT

Request Headers
Host    localhost:8080
User-Agent  Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Accept  application/xml, text/xml, */*; q=0.01
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection  keep-alive
Content-Type    application/x-www-form-urlencoded; charset=UTF-8
Faces-Request   partial/ajax
X-Requested-With    XMLHttpRequest
Referer http://localhost:8080/RetailerPortal/faces/dashboard.xhtml
Content-Length  389
Cookie  csfcfc=_30Xsr; JSESSIONID=fg1bV1sZkzKIgNtkH0bz0N0f; JSESSIONID=C65BF4EED70299ABFE4B73614118295E

Under dashboard.xhtml Response

<?xml version='1.0' encoding='ISO-8859-1'?>
<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[-3728406524126180805:2441995557020829808]]></update></changes></partial-response>

Under dashbaoard.xhtml Post

Parametersapplication/x-www-form-urlencoded
javax.faces.ViewState   7521050094575005695:7928145831130537413
javax.faces.behavior.even...    rowSelect
javax.faces.partial.ajax    true
javax.faces.partial.event   rowSelect
javax.faces.partial.execu...    newsForm:newsTable
javax.faces.partial.rende...    newsForm:newsDlg
javax.faces.source  newsForm:newsTable
newsForm    newsForm
newsForm:newsTable_instan...    3
newsForm:newsTable_select...    3
Source
newsForm=newsForm&newsForm%3AnewsTable_selection=3&javax.faces.ViewState=7521050094575005695%3A7928145831130537413&javax.faces.partial.ajax=true&javax.faces.source=newsForm:newsTable&javax.faces.partial.execute=newsForm:newsTable&javax.faces.partial.render=newsForm:newsDlg&javax.faces.behavior.event=rowSelect&javax.faces.partial.event=rowSelect&newsForm:newsTable_instantSelectedRowKey=3

Under login.xhtml’s headers

Response Headers
Server  Apache-Coyote/1.1
X-Powered-By    JSF/2.0
Cache-Control   no-cache
Set-Cookie  JSESSIONID=MdhyizD+8IkuFvLZD+6jWlUz; Path=/RetailerPortal
Content-Type    text/xml;charset=UTF-8
Content-Length  196
Date    Fri, 11 Nov 2011 18:32:42 GMT
Request Headers
Host    localhost:8080
User-Agent  Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Accept  application/xml, text/xml, */*; q=0.01
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection  keep-alive
Referer http://localhost:8080/RetailerPortal/faces/dashboard.xhtml
X-Requested-With    XMLHttpRequest
Faces-Request   partial/ajax
Content-Type    application/x-www-form-urlencoded
Cookie  csfcfc=_30Xsr; JSESSIONID=fg1bV1sZkzKIgNtkH0bz0N0f; JSESSIONID=C65BF4EED70299ABFE4B73614118295E

Under login.xhtml’s XML section

XML Parsing Error: no element found Location: moz-nullprincipal:{6ccf85cf-5c69-438c-a9bb-e66423a36a48} Line Number 1, Column 1:

^

Response code

HttpServletResponse servResponse = (HttpServletResponse) response;                  
servResponse.sendRedirect("login.xhtml");
servResponse.setHeader("Access-Control-Allow-Origin", "*");
  • 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-26T21:47:35+00:00Added an answer on May 26, 2026 at 9:47 pm

    I found the answer to this question in this blog

    with the relevant code for at the bottom of the blog post in the doRedirect method.

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

Sidebar

Related Questions

I'm using primefaces' accordion panel. Inside the tabs i have forms which are created
I'm trying to handle a ViewExpiredException exception on an ajax call using primefaces 2.2.1
I'm using primefaces and jstl to loop a datatable.I have a List in backing
As can be seen here: primefaces scrolling DataTable And in the image: When using
I am using primefaces datatable. How to set width when the table is empty
I am using PrimeFaces. As PrimeFaces uses its own jQuery, jqueryUI, jQuery-UI.css. I am
I am using Primefaces 3.0. I have a datatable with selectionMode single as shown
I have a inputTextarea that I refresh using PrimeFaces' AJAX poll. When the inputTextarea
Has anyone used primefaces data exporter component successfully with primefaces datatable with dynamic columns?
I am trying to create a datatable using JSF primefaces. I know there is

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.