Hi,
I am using JSF validation to simply check that the length of a field is 15, if not an error message is shown. My issue with this approach is that user enters a number which is the correct length and clicks a button and some information is displayed about it. The second time when the user enters a number whose length is <15 then the validation error is shown BUT the information about the previous number remains on the screen. My trouble is I am not sure how to do a refresh of the page. I do the validation like this:
<h:inputText id="imei" value="#{imeiValidationHandler.imei}" required="true">
<f:validateLength minimum="15" maximum="15"/>
</h:inputText>
Any ideas much appreciated.