This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes [SOLVED]Best way to reuse a layout with different values? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "[SOLVED]Best way to reuse a layout with different values?" Watch "[SOLVED]Best way to reuse a layout with different values?" New topic
Author

[SOLVED]Best way to reuse a layout with different values?

J. Frederik
Greenhorn

Joined: Mar 06, 2013
Posts: 16
I want to reuse the code of the <div id="placeInfo"> on the next page (place.xhtml). I simplified it's code for this question.
Of course I can use <ui:include> for <div id="placeInfo"> but on the next page I would need e.g. #{myBean.selectedPlace.name} instead of #{place.name}.
Any smart idea how to do this efficiently?

J. Frederik
Greenhorn

Joined: Mar 06, 2013
Posts: 16
I use JSF's composite components now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [SOLVED]Best way to reuse a layout with different values?
 
Similar Threads
Disabling a cell in Datagrid
f:setPropertyActionListener can not set value
ActionListener does not fire on commandLink
P:CommandLink doesn't work with ui:repeat
how to retrieve all the elements created by ui repeat in backing bean