I found some reference JSF Parameter Passing
.
- Passing parameters between managed beans with request scope
- JSF 2.X Passing parameter between two xhtml pages
- jsf passing parameters in a method expression failes in ViewScoped bean
But, It is not ok for my requirement. I would pass the object(Student)
one backing bean to another bean as below.
studentTable.xhtml updateStudent.xhtml
pass student object
(not `StudentID` string)
==================>
StudentTableBean.java UpdateStudnetBean.java
Both of backing bean may be RequestScope
or ViewScope
, not Session
. When I click a link(a row of datatable) at studentTable.xhtml
, I would like to pass the student object to updateStudent.xhtml
.
Is it possible? Could you provide some reference or providing?