posted 13 years ago
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