2 Replies Latest reply: Aug 20, 2013 4:37 AM by Cvele_new_account RSS

    ADF Table Popup Passing Values


      I have a table which has a popup containing another table.


      The popup is initiated when you mouse over the cell.


      How can i pass the value in the cell being moused over to the popup so that it can be used to query the new table.


      i have tried creating a bind variable in the new table with a value of viewScope.Patient and row.Patient but this didnt work.

        • 1. Re: ADF Table Popup Passing Values

          just use setPropertyListener or setActionListener to set value in different scope.

          • 2. Re: ADF Table Popup Passing Values

            On the table:

                                   <af:outputText value="#{row.SomeAttr}">
                                           <af:clientAttribute name="someAttr" value="#{row.SomeAttr}"/>
                                           <af:showPopupBehavior popupId=":::notePop" triggerType="mouseHover">



            On the popup:

                <af:popup id="notePop" launcherVar="source"
                               contentDelivery="lazyUncached" eventContext="launcher">
                       <af:noteWindow id="nw1">
                             <af:panelFormLayout id="pfl1">
                                 <af:inputText label="Attribute value: "                              value="#{viewScope.SomeAttr}">
                        <af:setPropertyListener from="#{source.attributes.someAttr}"
                                                                                   to="#{viewScope.SomeAttr}" type="popupFetch"/>