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

    Disappearing value of inputText on browsers back

    Leland Gaunt Newbie

      Hi!


      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:


      xhtml:


                            <s:decorate id="rendszamField" template="layout/edit_small.xhtml">
                                <ui:define name="label">#{messages['Szemelyforg.Rendszam']}</ui:define>
                                <h:inputText id="rendszam"
                                           size="100"
                                      maxlength="100"
                                          value="#{szemelyforgHome.instance.rendszam}">
                                    <a:support event="onblur" reRender="rendszamField" bypassUpdates="true" ajaxSingle="true"/>
                                </h:inputText>
                            </s:decorate>
                            <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"/>
                                    </h:selectOneMenu>
                            </s:decorate>
      



      What did I do wrong?


      Thanks in advance.


      Leland