Hello again.

I have little question about <t:saveState>
I have following control in my edit form:

<h:commandLink action="#{CategoryBean.delete}" value="Delete"
styleClass="dl" rendered="#{CategoryBean.editmode}" />

As you can see, it uses rendered attribute and rendered only if someone
editing item. Because backing bean is request scoped i tried to use
<t:saveState>  to preserve state of bean and added to beginning of the form:
<t:saveState value="#{CategoryBean} id="save1" />

And it seem worked, but if someone submits form with validation errors,
after form reloads that "Delete" button stops working again.
Any clue ? Thanx.


Reply via email to