Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

facelets modalPanel template question

 
Anthony Sykes
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am hoping that this is a good place to ask this question, if not I apologize. Here is my scenario, I have a datagrid where a user can browse a list of records. I want a modalPanel to appear where the user can enter information to filter the list. I would also like to template my modalPanel pages using facelets and ui:include to make them appear. For example, say the list page is called list.xhtml, the template page is called modal_template.xhtml and the modal page is called filter.xhtml. What do I need to surround the content in the modal_template.xhtml and filter.xhtml with; should it be UI:composition in both .xhtml pages or is this not the case. I cannot find any examples on how this should be done. Could someone provide an example of what this should look like?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18165
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a generic RichFaces modal dialog where the dialog body text comes from a backing bean.

Here's how it's called:


And this is the dialog itself:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic