Forums Register Login

How should we share regions in JSF.

+Pie Number of slices to send: Send
I have to create two pages and both pages are different and they show different content but one section of page needs to show same UI. I don't want to recode complete UI in both page. How can I create a common UI and share it on both pages.

Thanks
Sanjeev.
+Pie Number of slices to send: Send
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.
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 992 times.
Similar Threads
application level security
how to embed content of different page in my page?
SOS--------display data collection from database
creating a table component dynamically
how to embed content of different page in my page?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:02:02.