1 Reply Latest reply on Apr 26, 2011 4:53 AM by Leland Gaunt

    Disappearing value of inputText on browsers back

    Leland Gaunt Newbie


      First of all, sorry for my weak english.

      I have a simple data recording form. In this form there's inputtexts and selects (e.g. selectonemenu). I fill in the form controls, and before submitting the form, I navigate away to another page. When hit the browsers back button, the values of inputtexts disappearing, but the selects values are OK.

      The code looks like this:


                            <s:decorate id="rendszamField" template="layout/edit_small.xhtml">
                                <ui:define name="label">#{messages['Szemelyforg.Rendszam']}</ui:define>
                                <h:inputText id="rendszam"
                                    <a:support event="onblur" reRender="rendszamField" bypassUpdates="true" ajaxSingle="true"/>
                            <s:decorate id="dolgozoField" template="layout/edit_small.xhtml">
                                <ui:define name="label">#{messages['Szemelyforg.Dolgozo']}</ui:define>
                                    <h:selectOneMenu id="dolgozo" value="#{szemelyforgHome.instance.dolgozo}"
                                         accesskey="true" required="true">
                                         <s:selectItems value="#{szemelyforgHome.dolgozoDataSource}" var="d"
                                             label="#{d.nev} (#{d.beosztas.nev})" noSelectionLabel=" "
                                              hideNoSelectionLabel="false" />
                                         <s:convertEntity />
                                    <a:support event="onblur" reRender="dolgozoField" bypassUpdates="true" ajaxSingle="true"/>

      What did I do wrong?

      Thanks in advance.