A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Primefaces Data table select issue.
Joined: May 21, 2012
Jun 22, 2012 00:44:42
I have a requirement in my
based project, i.e., select one record from a datatable by using the below line of code in xhtml page.
After selection --> click on 'save' -->data saved.
But when I try to open the same page again, i am getting previous selected records in selection mode.
So how to get them in unselect mode....?
Please let me know if you have any solution or reference.
Joined: Jun 25, 2001
Jun 22, 2012 06:22:42
I edited the title to more accurately reflect the problem. It's easier to attract people who understand PrimeFaces that way.
An IDE is no substitute for an Intelligent Developer.
William P O'Sullivan
Joined: Mar 28, 2012
Jun 22, 2012 08:59:17
Read up on the JSF lifecycle, it is quite complicated.
What appears to be happening is your view state is saved, then restored (hence the resetting of the selections).
You may need to do some work in your backing bean(s) to clear those out.
I agree. Here's the link:
subject: Primefaces Data table select issue.
Problem using valueChangeListener and onchange
Newbie selectOneListBox question
How to make one of the Radio button default selected
JSF <<f:selectItem> will increase execution time?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015