• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, did you ever solve this problem? I've just hit the same issue.
 
reply
    Bookmark Topic Watch Topic
  • New Topic