Win a copy of Terraform in Action this week in the Cloud forum!

Anthony Tote

Greenhorn
+ Follow
since May 08, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anthony Tote

Hi,

I have a dashboardpage made in facelets with JSF2.0 and on that page are several PrimeFaces datatables. Now I want to add a row to a datatable and the current method is the following :
- Beneath the datatable is a button "add study"
- when this button is clicked I dynamically load a page in a <ui:include> component.
- I fill my stuff in and click on a button in the included page
- datatable on my "parent" page is being updated.

Now I got this to work when I put my managed bean @SessionScoped but I was wondering how I can accomplish the same using @RequestScoped or @ViewScoped.
When I put my bean to @RequestScoped or @ViewScoped I can't get into my backing bean, so the action on my commandButton doesn't work anymore.

Here is the code for my dashboard page (my parent page)



Here is my code for my page that is being loaded into my parent page



Here is my backing bean

10 years ago
JSF