Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF : commandButton in dynamically loaded <ui:include> page doesn't work

 
Anthony Tote
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Brendan Healey
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, did you ever solve this problem? I've just hit the same issue.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic