You can create one big page that includes two parts. One part for one page and it is rendered by condition
<h:panelGroup rendered="#{backingBean.firstRendered">
</h:panelGroup>
Anothe part of the same page is rendered by:
<h:panelGroup rendered="#{! backingBean.firstRendered">
</h:panelGroup>
Clicking on h:selectonemenu option you call listener of f:ajax and set backingBean.firstRendered to true or false and in render attribute of f:ajax you specify main wrapper for both parts
I haven't been able to use the f:ajax tag for technical reasons, so I am no expert, but it's possible that you may need to inform it what sort of event will fire the firstRendered method.
Volodymyr Levytskyi wrote:Whenever I try to use code button it gives me some error.
In really rare situations I can apply it!
What is "some error"
If you get the "Pants Down" error, that's because our database connection pool ran dry again and it has nothing to do with anything you did. We've been working hard on tuning connection usage lately.
Post by:autobot
Remember to always leap before you look. But always take the time to smell the tiny ads:
a bit of art, as a gift, that will fit in a stocking