This content has been marked as final.
Show 1 reply
-
1. Re: DataTable example does not clean form with validation er
m4c0 Jan 28, 2009 12:33 PM (in response to m4c0)After a lot of trial-and-error, I found a solution. The problem is the component tree, that keeps invalid values when a validation error occurs. What do you do when a branch is rotten? Cut it off:
public String cancel() { UIComponent uic = FacesContext.getCurrentInstance().getViewRoot().findComponent("editForm"); uic.getChildren().clear(); return null; }