jsf - rich:modalPanel displaying previous row data from rich:dataTable -



jsf - rich:modalPanel displaying previous row data from rich:dataTable -

i working jsf 1.2 in using rich:datatable display list of user details. user info on each row can editable thru commandlink. 1 time click on command link pop modal panel current value of user & can click edit button on modal panel create necessary changes & save info database.

the issue facing when ever click on edit command link 2nd row of datatable, pop panel displaying user info of 1st row.

thru command link, setting selected user row value calling action method in backing bean & capturing selected user info follow

<a4j:commandlink value = "edit" onclick="#{rich:component('userpopup')}.show()" action="#{ocruserbean.capturecurrentuser()}"/> public void capturecurrentuser(){ facescontext context = facescontext.getcurrentinstance(); currentuser = (user) context.getexternalcontext().getrequestmap().get("ocruser"); }

i modal panel displaying currentuser.getfirstname in input text.

jsf richfaces richdatatable

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -