5 Replies Latest reply: Feb 12, 2014 9:17 PM by Sam11116 RSS

PopUp Value remains same for all rows

Sahar Hassan Explorer
Currently Being Moderated

JDev 11.1.1.6.0

 

I have a commandImageLink in a table column which opens a popup that has a rich text editor.

The issue I am facing is like:

 

Consider there are three rows in table.

For row 1, I have opened the popup by clicking commandImageLink, filled in the values for rich text editor, clicked Ok button to close it.

Now I am clicking the commandImageLink from row2 to open popup, the values remain same.

 

Here is the code of my table:

 

                      <af:table value="#{bindings.validationChecklist1.collectionModel}"
                                var="row"
                                rows="#{bindings.validationChecklist1.rangeSize}"
                                emptyText="#{bindings.validationChecklist1.viewable ? masdResources.NO_DATA : 'Access Denied.'}"
                                fetchSize="#{bindings.validationChecklist1.rangeSize}"
                                rowBandingInterval="0"
                                selectedRowKeys="#{bindings.validationChecklist1.collectionModel.selectedRow}"
                                selectionListener="#{bindings.validationChecklist1.collectionModel.makeCurrent}"
                                rowSelection="single" id="t10" width="100%"
                                partialTriggers="::addDoc ::addChD ::delCh ::upDoc ::upDocRC ::d7"
                                columnStretching="column:c25">
                        <af:column sortProperty="status" sortable="false"
                                   headerText="#{masdResources.RC_STATUS}"
                                   id="c15"
                                   showRequired="#{pageFlowScope.RuleEngineBean.uiFieldInfo['RC_F4']['RC_F4']['xRequired']}"
                                   visible="#{pageFlowScope.RuleEngineBean.uiFieldInfo['RC_F4']['RC_F4']['xVisible']}"
                                   width="150">
                          <af:selectOneRadio id="sor6"
                                             label="Status"
                                             value="#{row.bindings.status.inputValue}"
                                             autoSubmit="true" simple="true"
                                             layout="horizontal"
                                             valueChangeListener="#{RiskCheckHandlerBean.statusValueChangeListener}"
                                             partialTriggers="::sdi2">
                                             <!--required="#{pageFlowScope.RuleEngineBean.uiFieldInfo['RC_F4']['RC_F4']['xRequired']}"-->
                            <af:selectItem label="#{masdResources.RC_DONE}"
                                           value="DONE" id="selectItem6"/>
                            <af:selectItem label="#{masdResources.RC_REJECT}"
                                           value="REJECT" id="selectItem5"/>
                            <af:selectItem label="#{masdResources.RC_SKIP}"
                                           value="SKIP" id="selectItem7"/>
                          </af:selectOneRadio>
                          <!--af:clientListener method="enforcePreventUserInput"
                                               type="valueChange"/-->
                        </af:column>
                        <af:column sortProperty="title" sortable="false"
                                   headerText="#{masdResources.RC_DOC}"
                                   id="c24" width="300"
                          <af:panelGroupLayout id="pgl28">
                            <af:commandImageLink hoverIcon="/hw_images/add_ovr.png"
                                                 icon="/hw_images/add_ena.png"
                                                 disabledIcon="/hw_images/add_dis.png"
                                                 depressedIcon="/hw_images/add_dwn.png"
                                                 shortDesc="#{masdResources.ATTACH_FILE_TO_DOCUMENT}"
                                                 id="commandImageLink5"
                                                 immediate="true"
                                                 partialTriggers="sor6">
                              <af:clientAttribute name="masdDocumentType"
                                                  value="#{row.UCMdocId}"/>
                              <af:showPopupBehavior triggerType="action"
                                                    popupId="::pu_upld_riskcheck"/>
                            </af:commandImageLink>
                            <af:spacer width="10" height="10" id="s51"/>
                            <af:commandImageLink hoverIcon="/images/screen_shot.png"
                                            icon="/images/screen_shot.png"
                                            depressedIcon="/images/scrshot_disabled.png"
                                            disabledIcon="/images/scrshot_disabled.png"
                                            id="cil10" immediate="true"
                                            partialTriggers="sor6">
                            <af:showPopupBehavior triggerType="action" popupId="::screenshot_popup"/>
                          </af:commandImageLink>
      </af:column>

    </af:table>

 

 

popup-code :

 

<af:popup id="screenshot_popup" contentDelivery="lazyUncached"

                        binding="#{BiguiCommonBean.scrShotPopup}" launcherVar="source" eventContext="launcher">

                <af:dialog id="d7" contentHeight="750"

                           dialogListener="#{masdAttachementHandler.processScrShotDialog}">

                  <af:panelHeader text="#{masdResources.CAPTURE_SCRSHOT_}"

                                  id="ph27">

                    <af:panelFormLayout id="pfl31">

                      <af:richTextEditor label="" id="rte6" simple="true"

                                         rows="35" columns="175"

                                         binding="#{masdAttachementHandler.editor}"/>

                      <f:facet name="footer"/>

                    </af:panelFormLayout>

                  </af:panelHeader>

                  <f:attribute name="ITERATOR_BINDING"

                               value="#{bindings.validationChecklistIterator}"/>

                  <f:attribute name="XAPPLICATIONNUMBER"

                               value="#{bindings.acquirerCaseId.inputValue}"/>

                  <f:attribute name="XECID"

                               value="#{bindings.ECID.inputValue}"/>

                  <f:attribute name="XORGANIZATIONNUMBER"

                               value="#{bindings.companyRegNumber.inputValue}"/>

                  <f:attribute name="PROPERTY_NAME" value="riskCheckTypeValue"/>

                </af:dialog>

              </af:popup>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points