This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes facelets modalPanel template question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "facelets modalPanel template question" Watch "facelets modalPanel template question" New topic
Author

facelets modalPanel template question

Anthony Sykes
Ranch Hand

Joined: Aug 25, 2007
Posts: 57
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

Joined: Jun 25, 2001
Posts: 16092
    
  21

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:



Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: facelets modalPanel template question