5 Replies Latest reply: Jul 15, 2013 3:21 AM by Mahmoud A. ElSayed RSS

    Popup cache with button has property immediate="true"

    Mahmoud A. ElSayed

      Hi

       

      I am using jdevloper 11.1.2.2

       

      I have caching  problem with popup has contentDelivery="lazyUncached" and I add cancel  button on popup with  immediate="true" to skip validation in input fields at popup.

      After I click cancel button it hide popup , but again If I show popup, it still cache old data in input feilds.

       

      My popup source is as below

      <af:popup childCreation="deferred" id="compPop"

                        binding="#{pageFlowScope.CustomersBean.compPop}" autoCancel="disabled" contentDelivery="lazyUncached">

                  <af:dialog id="d1" title="#{viewcontrollerBundle.COMPANY} #{pageFlowScope.mode}" closeIconVisible="false"

                             type="none">

                      <f:facet name="buttonBar">

                          <af:toolbar id="t2">

                              <af:commandButton text="#{viewcontrollerBundle.SAVE}" id="cb6"

                                                actionListener="#{pageFlowScope.CustomersBean.onClickSaveCompPop}"/>

                              <af:commandButton text="#{viewcontrollerBundle.CANCEL}" id="cb7"

                                                actionListener="#{pageFlowScope.CustomersBean.onClickCancelCompPop}"

                                                immediate="true"/>

                          </af:toolbar>

                      </f:facet>

                      <af:panelFormLayout id="pfl1">

                          <af:inputText value="#{bindings.CompanyNumber.inputValue}"

                                        label="#{bindings.CompanyNumber.hints.label}"

                                        required="#{bindings.CompanyNumber.hints.mandatory}"

                                        columns="#{bindings.CompanyNumber.hints.displayWidth}"

                                        maximumLength="#{bindings.CompanyNumber.hints.precision}"

                                        shortDesc="#{bindings.CompanyNumber.hints.tooltip}" id="it1">

                              <f:validator binding="#{bindings.CompanyNumber.validator}"/>

                          </af:inputText>

                          <af:inputText value="#{bindings.CompanyName.inputValue}" label="#{bindings.CompanyName.hints.label}"

                                        required="#{bindings.CompanyName.hints.mandatory}"

                                        columns="#{bindings.CompanyName.hints.displayWidth}"

                                        maximumLength="#{bindings.CompanyName.hints.precision}"

                                        shortDesc="#{bindings.CompanyName.hints.tooltip}" id="it2">

                              <f:validator binding="#{bindings.CompanyName.validator}"/>

                          </af:inputText>

                          <af:selectOneChoice value="#{bindings.CompCategory.inputValue}"

                                              label="#{bindings.CompCategory.label}"

                                              required="#{bindings.CompCategory.hints.mandatory}"

                                              shortDesc="#{bindings.CompCategory.hints.tooltip}" id="soc3">

                              <f:selectItems value="#{bindings.CompCategory.items}" id="si3"/>

                          </af:selectOneChoice>

                          <af:selectOneChoice value="#{bindings.City.inputValue}" label="#{bindings.City.label}"

                                              required="#{bindings.City.hints.mandatory}"

                                              shortDesc="#{bindings.City.hints.tooltip}" id="soc4">

                              <f:selectItems value="#{bindings.City.items}" id="si4"/>

                          </af:selectOneChoice>

                          <af:inputText value="#{bindings.Tele1.inputValue}" label="#{bindings.Tele1.hints.label}"

                                        required="#{bindings.Tele1.hints.mandatory}"

                                        columns="#{bindings.Tele1.hints.displayWidth}"

                                        maximumLength="#{bindings.Tele1.hints.precision}"

                                        shortDesc="#{bindings.Tele1.hints.tooltip}" id="it3">

                              <f:validator binding="#{bindings.Tele1.validator}"/>

                          </af:inputText>

                          <af:inputText value="#{bindings.Tele2.inputValue}" label="#{bindings.Tele2.hints.label}"

                                        required="#{bindings.Tele2.hints.mandatory}"

                                        columns="#{bindings.Tele2.hints.displayWidth}"

                                        maximumLength="#{bindings.Tele2.hints.precision}"

                                        shortDesc="#{bindings.Tele2.hints.tooltip}" id="it4">

                              <f:validator binding="#{bindings.Tele2.validator}"/>

                          </af:inputText>

                          <af:inputText value="#{bindings.Fax.inputValue}" label="#{bindings.Fax.hints.label}"

                                        required="#{bindings.Fax.hints.mandatory}"

                                        columns="#{bindings.Fax.hints.displayWidth}"

                                        maximumLength="#{bindings.Fax.hints.precision}"

                                        shortDesc="#{bindings.Fax.hints.tooltip}" id="it5">

                              <f:validator binding="#{bindings.Fax.validator}"/>

                          </af:inputText>

                          <af:inputText value="#{bindings.Website.inputValue}" label="#{bindings.Website.hints.label}"

                                        required="#{bindings.Website.hints.mandatory}"

                                        columns="#{bindings.Website.hints.displayWidth}"

                                        maximumLength="#{bindings.Website.hints.precision}"

                                        shortDesc="#{bindings.Website.hints.tooltip}" id="it6">

                              <f:validator binding="#{bindings.Website.validator}"/>

                          </af:inputText>

                      </af:panelFormLayout>

                  </af:dialog>

              </af:popup>