Hi, I have my form in jsf with primefaces what I want to know is how to clean the data once I fill them and I gave in submit button because if I go back in, it paints me the data that I had already entered, I do not know if it is from the view or if I have to create a method and then as I send it to call in the view?
[! [It's this part of my form] [1]] [1]
<p:fieldset legend="#{datospersonalesmsgs['datospersonales.title']}" toggleable="true" toggleSpeed="500">
<h:panelGrid columns="5" width="100%" >
<h:panelGrid columns="3" width="100%">
<!--CURP-->
<h:outputText value="#{datospersonalesmsgs['datospersonales.curp.title']}:*" />
<p:inputText id="datospersonales_curp" value="#{DatosPersonalesComponent.datospersonales.curp}" required="true" label="datospersonales_curp"
readonly="readonly" maxlength="18" onblur="javascript:this.value = this.value.toUpperCase();"/>
</h:panelGrid>
<h:panelGrid columns="3" width="100%">
<!--NOMBRES-->
<h:outputText value="#{datospersonalesmsgs['datospersonales.nombre.title']}:*" />
<p:inputText id="datospersonales_nombre" value="#{DatosPersonalesComponent.datospersonales.nombre}" required="true" label="datospersonales_nombre"
readonly="readonly" onblur="javascript:this.value = this.value.toUpperCase();"/>
</h:panelGrid>
<h:panelGrid columns="3" width="100%">
<!--Primer Apelldo-->
<h:outputText value="#{datospersonalesmsgs['datospersonales.apellido.title']}:*" />
<p:inputText id="datospersonales_apellido" value="#{DatosPersonalesComponent.datospersonales.apellido}" required="true" label="datospersonales_apellido"
readonly="readonly" onblur="javascript:this.value = this.value.toUpperCase();"/>
</h:panelGrid>