Unfortunately I do not have a link to a demo, I have pasted below the code I
am using. If any other details are required, kindly let me know.
Appreciated.ManagedBean @Named("emp")@ViewAccessScopedpublic class
EmployeeManagedBean implements Serializable { private Employee
selectedRequest = new Employee(); @PostConstruct public void init() {
initTable(); } private void initTable() { lazyModel = new
LazyEmployeeDataModel(requestList, requestService); } public
LazyDataModel getLazyModel() { return lazyModel; }and onRowSelect
Methodpublic void onRowSelect(SelectEvent event) { try {
setSelectedRequest((Employee) event.getObject());
System.out.println("row " + getSelectedRequest()); JSF Code
--
View this message in context:
http://myfaces.10567.n7.nabble.com/ViewAccessScoped-datatable-selected-row-value-not-available-for-first-time-tp113980p113982.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.