我有一个行侦听器,它触发一个对话框以弹出行信息。当我选择一行时,没有任何反应,但是当我单击小编辑按钮时,会弹出对话框。即使在错误的位置我也有我的ajax吗?我究竟做错了什么?
<h:form id="form_dl">
<p:dataTable id="dl_deployments" var="dl_dep"
value="#{userWizard.deploymentList}" paginator="true" rows="10"
rowKey="#{dl_dep}" editable="true"
filteredValue="#{userWizard.filteredDeployments}"
selection="#{userWizard.selectedDeployment}" selectionMode="single">
<p:ajax event="rowSelect" update=":frm_south:form_dl:displayDLPopUp"
oncomplete="deploymentDialog.show()" />
<p:column headerText="Project Name" style="width:125px"
filterBy="#{dl_dep.projectname}">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{dl_dep.projectname}" />
</f:facet>
<f:facet name="input">
<h:inputText value="#{dl_dep.projectname}" />
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="SR Number" style="width:125px"
filterBy="#{dl_dep.srnumber}">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{dl_dep.srnumber}" />
</f:facet>
<f:facet name="input">
<p:inputText value="#{dl_dep.srnumber}" style="width:100%"></p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="Grade" style="width:125px"
filterBy="#{dl_dep.grade}">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{dl_dep.grade}" />
</f:facet>
<f:facet name="input">
<p:inputText value="#{dl_dep.grade}" style="width:100%"></p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="System" style="width:125px"
filterBy="#{dl_dep.system}">
<p:cellEditor>
<f:facet name="output">
<h:outputText value="#{dl_dep.system}" />
</f:facet>
<f:facet name="input">
<p:inputText value="#{dl_dep.system}" style="width:100%"></p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="Edit" style="width:50px">
<p:rowEditor />
</p:column>
<p:ajax event="rowEdit" listener="#{userWizard.editRowListner}" />
</p:dataTable>
<p:dialog id="dl_dialog" header="Deployment Details"
widgetVar="deploymentDialog" resizable="false" showEffect="fade"
hideEffect="explode">
<h:panelGrid id="displayDLPopUp" columns="2" cellpadding="4">
<h:outputText value="Project Name:" />
<h:outputText value="#{userWizard.selectedDeployment.projectname}" />
<h:outputText value="SR Number:" />
<h:outputText value="#{userWizard.selectedDeployment.srnumber}" />
<h:outputText value="Grade:" />
<h:outputText value="#{userWizard.selectedDeployment.grade}" />
<h:outputText value="System:" />
<h:outputText value="#{userWizard.selectedDeployment.system}" />
</h:panelGrid>
</p:dialog>
</h:form>