Reputation: 1723
I have a situation where clicking a link in one column on the datatable opens A update FORM in the same page. The problem is when I hit the submit button for update, the render is set to false again of that update panel which was previously set true by parameter passed clicking the link.
I tried htmlhiddenInput and did setValue and getvalue but the value is lost. Is there any way I can save that parameter send from link, when clicked, even after submitting the form. I achieved it doing session but I dont wanna use session.
Any help is appreciated, thanks.
Upvotes: 0
Views: 309
Reputation: 1109830
If you're on JSF 2.0, declare the bean @ViewScoped
. If you're yet on JSF 1.x, then install Tomahawk and use <t:saveState>
to retain the bean property or even the entire bean in the subsequent request. E.g.
<t:saveState value="#{bean.renderTable}" />
or
<t:saveState value="#{bean}" />
Upvotes: 1