I have a RichFaces component that I want to render after an Ajax call which sets a JavaScript variable to either true or false.
When the variable is false, I don’t want the panel to render. Is there any way to input the result of this variable (or any JS function call) in the rendered attribute of a component?
Richfaces renders components on the server side. So you have to pass your
parameter to server side. There are some ways to achieve this.
Create a hidden input on the page and link it to a flag in your bean. Something like,
On the page,
Or create two methods which sets flag to true or false.
On the page,