我正在使用jsf,primefaces和hibernate我从表中的数据库中获取数据当我点击铅笔图标时它不起作用并且没有生成任何错误或异常并且单击它编译器不会继续我们的bean类我得到一个表的名称和客户端名称从另一个数据库表获取它只工作设施名称列定义两列时它不工作
我的xhtml页面
<p:dataTable id="allFacilityList" var="facility" rendered="true" value="# {facilityBean.facilityList}" paginator="true" rows="15" paginatorPosition="top" styleClass="fixed-size" emptyMessage="No facility insdie faclity list" style="width: 965px;" editable="true">
<p:ajax event="rowEdit" immediate="true" listener="#{facilityBean.onEdit}" update=":ftListForm"/>
<p:column headerText="Facility Name" style="width:60%; alignment-adjust: middle">
<p:cellEditor>
<f:facet name="output">
<h:outputText style="alignment-adjust: middle" value="#{facility.name}" />
</f:facet>
<f:facet name="input">
<p:inputText value="#{facility.name}" style="width:100%"/>
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="Client Name" style="width:60%; alignment-adjust: middle">
<p:cellEditor>
<f:facet name="output">
<h:outputText style="alignment-adjust: middle" value="#{facility.clientName}" />
</f:facet>
<f:facet name="input">
<p:inputText value="#{facility.clientName}" style="width:100%"/>
</f:facet>
</p:cellEditor>
</p:column>
我的bean类行编辑方法
public void onEdit(RowEditEvent event)
{
System.out.println("onEdit methode of facility bean class");
Facility facility=(Facility) event.getObject();
facilityService.editFacilityList(facility);
}
myservice class editfacility method
public void editFacilityList(Facility facility)
{
int userIdVal = (Integer) httpSession.getAttribute(Constants.USER_ID);
facility.setUpdateUserId(userIdVal);
facility.setUpdateDate(new Date());
facilityDao.attachDirty(facility);
}