2 Replies Latest reply: Nov 4, 2013 2:08 AM by zari RSS

    Popup Problem in refrsheing main page!

    zari


      Hi everybody,

       

      I use JDeveloper 11.1.1.7.  I have a page that have form with multiple input texts, thoes get their values from page defenition. for editing them I have a popup with ContetnDelivery=lazyUncached so when I change inputs in popup it update form and every thing is ok.

      but when I add some expression to readonly property in form`s attribute, problem occur and popup don't refresh my form.

      this is my code :

      I mention I test this code in JDeveloper 11.1.1.5 and it work correctly.

      <af:form id="f1">

              <af:panelFormLayout id="pfl1">

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

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

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

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

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

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

                              readOnly="#{bindings.Cod.inputValue== null}">

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

                </af:inputText>

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

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

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

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

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

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

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

                  <af:convertNumber groupingUsed="false"

                                    pattern="#{bindings.Cod.format}"/>

                </af:inputText>

                <f:facet name="footer">

                  <af:panelGroupLayout layout="horizontal" id="pgl1">

                    <af:commandButton text="commandButton 1" id="cb5">

                      <af:showPopupBehavior popupId="p1" triggerType="action"

                                            align="afterEnd"/>

                    </af:commandButton>

                  </af:panelGroupLayout>

                </f:facet>

              </af:panelFormLayout>

              <af:popup id="p1" contentDelivery="lazyUncached">

                <af:dialog id="d2" dialogListener="#{RegionTest.returnDialog}">

                  <af:panelFormLayout id="pfl2">

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

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

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

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

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

                                  shortDesc="#{bindings.Typ.hints.tooltip}" id="it8"

                                  autoSubmit="true"

                                  partialTriggers="it8"

                                  valueChangeListener="#{RegionTest.regionListener}">

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

                    </af:inputText>

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

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

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

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

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

                                  shortDesc="#{bindings.Txt.hints.tooltip}" id="it10">

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

                    </af:inputText>

                  </af:panelFormLayout>

                </af:dialog>

              </af:popup>

            </af:form>

        • 1. Re: Popup Problem in refrsheing main page!
          Frank Nimphius-Oracle

          Hi,

           

          from the code snippet I see the form, but I cannot tell the problem nor what your popup does for refreshing the form. Maybe a partial trigger problem but I don't see PartialTriggers set or a code snippet that shows you use the AdfFacesContext for manual PPR. If it worked in 11.1.1.5 an you have a support contract, you can always file a service request posting a test case for them to analyze.

           

          Frank

          • 2. Re: Popup Problem in refrsheing main page!
            zari

            Hi Frank,

            Thank you very much for your reply. but I should say I use partial trigger and it didn't work.

            I test a case : I add a valueChangeListener for first attribute in my popup and set value of field that I use in readonly property of main field and set autosubmit=true as you can see in my first post , then when I change value of first attribute in popup, it update main field in main page !!!!!

            this is value change Listener method :

             

            public void valuePopupListener(ValueChangeEvent valueChangeEvent) {

                    AttributeBinding attributeBinding =(AttributeBinding)getBinding().get("Cod");

                    attributeBinding.setInputValue(attributeBinding.getInputValue());

                   

                }

            why this happen ??? is there any diffrence in popup behavior between 11.1.1.7 and 11.1.1.5 ???!!!!

            please help...