posted 13 years ago
If you are using Facelets, you can create a Facelets Component and use the ui:include tag to include the component on the 2 pages.
I do this all the time, as well as its opposite, where I repeat the same component (with minor alterations) more than one time on a page.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.