我有af:popup
并且其中有af:table
在表格中我有一个af:commandImageLink
。
它放在一列中;
此commandImageLink
有actionListener
无法触发
<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>
答案 0 :(得分:1)
我做了以下事情来解决:
ViewObject
jspx
页面
popup
,并在表格列的ManageBean
中对其进行了褒奖它突然开始迷人地开始了这个活动。