ADF actionListener不会在弹出窗口中触发

时间:2014-11-07 14:53:03

标签: java oracle-adf

我有af:popup并且其中有af:table 在表格中我有一个af:commandImageLink

它放在一列中;
commandImageLinkactionListener无法触发

<af:commandImageLink text="commandImageLink 1" 

    id="cil11" 
    icon="/resources/imatges/ver.jpg" 
    partialSubmit="true" 
    immediate="true" 
    actionListener="#{pageFlowScope.MyBean.setNameFilter}"/>

我尝试将commandImageLink单独放在popup而没有任何table,它就会解雇;

确实很奇怪。

编辑:

代码:

<af:popup id="cercaTercersCriteria" binding="#{pageFlowScope.myBean.p1}">
                            <af:panelWindow binding="#{pageFlowScope.myBean.pw2}"
                                            id="pw2"
                                            modal="true"
                                            contentHeight="700"
                                            contentWidth="700"
                                            stretchChildren="first">
                              <af:panelGroupLayout binding="#{pageFlowScope.myBean.pgl6}"
                                                   id="pgl6">
                                <af:panelHeader text="panelHeader 1"
                                                binding="#{pageFlowScope.myBean.ph4}"
                                                id="ph4">
                                  <f:facet name="context">
                                    <af:group binding="#{pageFlowScope.myBean.g2}"
                                              id="g2">
                                      <af:commandImageLink text="commandImageLink 1"

                                                           id="cil11"
                                                           icon="/resources/imatges/see.jpg"
                                                           partialSubmit="true"
                                                           immediate="true"
                                                           actionListener="#{pageFlowScope.myBean.setNomeFilter}"/>
                                      <af:panelGroupLayout layout="vertical"
                                                           binding="#{pageFlowScope.myBean.pgl7}"
                                                           id="pgl7">
                                        <af:panelHeader text="SearchTeachersVVO11"
                                                        binding="#{pageFlowScope.myBean.ph5}"
                                                        id="ph5">
                                          <af:query id="qryId5"
                                                    headerText="Search"
                                                    disclosed="true"
                                                    value="#{bindings.ImplicitViewCriteriaQuery2.queryDescriptor}"
                                                    model="#{bindings.ImplicitViewCriteriaQuery2.queryModel}"
                                                    queryListener="#{bindings.ImplicitViewCriteriaQuery2.processQuery}"
                                                    queryOperationListener="#{bindings.ImplicitViewCriteriaQuery2.processQueryOperation}"
                                                    resultComponentId="::resId5"
                                                    binding="#{pageFlowScope.myBean.qryId5}"/>
                                        </af:panelHeader>
                                        <af:table value="#{bindings.SearchTeachersVVO11.collectionModel}"
                                                  var="row"
                                                  rows="#{bindings.SearchTeachersVVO11.rangeSize}"
                                                  selectedRowKeys="#{bindings.SearchTeachersVVO11.collectionModel.selectedRow}"
                                                  selectionListener="#{bindings.SearchTeachersVVO11.collectionModel.makeCurrent}"
                                                  rowSelection="single" 
                                                  emptyText="#{bindings.SearchTeachersVVO11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.SearchTeachersVVO11.rangeSize}"
                                                  rowBandingInterval="0"
                                                  id="resId5"
                                                  binding="#{pageFlowScope.myBean.resId5}">
                                          <af:column sortProperty="PefisIdFk"
                                                     sortable="false"
                                                     headerText="#{bindings.SearchTeachersVVO11.hints.PefisIdFk.label}"
                                                     id="resId5c1">
                                            <af:commandImageLink text="commandImageLink 2"
                                                                 id="cil1" icon="/resources/imatges/ver.jpg"
                                                                 binding="#{pageFlowScope.myBean.cil1}"
                                                           partialSubmit="true"
                                                           immediate="true"
                                                           actionListener="#{pageFlowScope.myBean.setNomeFilter}"/>
                                          </af:column>
                                          <af:column sortProperty="name"
                                                     sortable="false"
                                                     headerText="#{bindings.SearchTeachersVVO11.hints.name.label}"
                                                     id="resId5c2">
                                            <af:outputText value="#{row.name}"
                                                           id="ot1"/>
                                          </af:column>
                                        </af:table>
                                      </af:panelGroupLayout>
                                    </af:group>
                                  </f:facet>
                                  <f:facet name="menuBar"/>
                                  <f:facet name="toolbar"/>
                                  <f:facet name="legend"/>
                                  <f:facet name="info"/>
                                </af:panelHeader>
                              </af:panelGroupLayout>
                            </af:panelWindow>
                          </af:popup>

1 个答案:

答案 0 :(得分:1)

我做了以下事情来解决:

  1. 我从scretch
  2. 创建了新的ViewObject
  3. 我从scretch
  4. 创建了一个jspx页面
  5. 我用{<1}}表示了
  6. 使用我的方法创建了popup,并在表格列的ManageBean中对其进行了褒奖
  7. 它突然开始迷人地开始了这个活动。