Forums Register Login

JSF Beginner

+Pie Number of slices to send: Send
Hi,

I am new to JSF and facing the following problem.
My application is a HR app in which HR rep's can edit employee info.
I am required to allow the HR rep to edit multiple employees in the same session.
For eg : the HR rep should be allowed to edit employee A's personal details and in the same session do a CTRL-N, open a new browser window and edit employee B's personal details.
I am stuck here since using a bean (say UserBean) in session scope does not work as it overwrites the user data of employee A with that of emp B.
I cannot keep the bean in request scope since the HR rep can move back and forth the edit page and the edit confirmation page.
Please help in this regard. Can i use a list in session scope. Just an idea but could not figure out how to do it.
+Pie Number of slices to send: Send
How about using an array of Employee in the session variable.
+Pie Number of slices to send: Send
Or maybe a Map in session would work with the key as the employee id and the value as the employee bean object.
Please let me know if there is any standard mechanism of implementing this feature in JSF.

Regards
Kiran
+Pie Number of slices to send: Send
If you use Trinidad, you can achieve this using page flow scope.
+Pie Number of slices to send: Send
Thanks Gopi, is there any equivalent of pageScope in JBoss RichFaces?

Regards
Kiran
+Pie Number of slices to send: Send
Sorry for the typo, my previous question was, is there any equivalent of pageFlowScope in JBoss RichFaces.

Regards
Kiran
Message for you sir! I think it is a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1294 times.
Similar Threads
managed bean injection problem
how to access a session value on JSF page?
JSF navigation questions
Is there a "page load" type of event?
JSF Request Processing Lifecycle Basics
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:54:40.