This content has been marked as final.
Show 2 replies
-
1. Re: reset a form after a submit
davidatkinsuk May 27, 2008 10:43 AM (in response to pagaluisseam)I think you may need to post some of your code for us to help. From what you've said the richfaces value should be resetting. Is the reset method being called in a 'proper' http request (GET/POS) or is it an ajax call? If it's an ajax call it may that your fields are not being correctly refreshed.
-
2. Re: reset a form after a submit
pagaluisseam May 28, 2008 10:49 PM (in response to pagaluisseam)Hi, in my xhtml i use: a form tag: <a4j:form id="#{idManager.getId('consumoFissoDetailPanelMainForm')}" ajaxSubmit="true" reRender="ConsumiFissiListPanelDataTable" > a coomand reset button <a4j:commandButton align="right" id="#{idManager.getId()}" styleClass="button_blu" value="#{messages['consumiFissiListPanel.annulla']}" action="#{consumiFissiManagementPanelAction.inizializeConsumoFisso()}" reRender="formFieldDataInizio,consumo-fisso-detail-panel-panel" type="reset" immediate="true" /> a slect list tag <h:selectOneListbox value="#{consumoFissoSelected.valoreConsumo}" size="1"> <f:selectItems value="#{consumoFissoSelected.listaValoriAnnuali}"/> </h:selectOneListbox> an input text <h:inputText id="formFieldIdOperazioneConsumoFisso" readonly="true" value="#{consumoFissoSelected.idOperazioneConsumoFisso}" /> The readonly input text is reset, while the select item is non reset||