나는 rich:extendedDataTable
이며 열 필터링을 사용하고 있습니다. 사용자가 "소개"키를 입력하면 필터가 해고되기를 원하지만 자바 스크립트에는 그러한 이벤트가 없습니다.Richfaces 열 필터 : 소개 키에서 이벤트를 발생시키는 방법
나는 이렇게하기를 원합니다. 왜냐하면 나는 onkeyup
과 같은 이벤트를 사용하면 너무 많은 요청을 받고 그 때문에 문제가 발생하기 때문입니다. richfaces 3.3.0GA와 facelets를 사용하고 있습니다.
<ui:composition>
<a4j:form ajaxSingle="true" requestDelay="700">
<rich:extendedDataTable id="tablePatients" value="#{user.patientsTab.patients}" var="patient" rows="20"
onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
<f:facet name="header">
<h:outputText value="Patient List" />
</f:facet>
<rich:column label="#{msg.id}">
<f:facet name="header">
<h:outputText value="Id" />
</f:facet>
<h:outputText value="#{patient.id}" id="patientId" />
</rich:column>
<rich:column label="#{msg.name}" sortable="true" filterBy="#{patient.profile.name}" filterEvent="onkeyup">
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{patient.profile.name}" id="name" style="#{patient.isUnrated? 'font-weight:bold':''}" />
</rich:column >
<rich:column label="#{msg.lastexamination}" sortable="true">
<f:facet name="header">
<h:outputText value="Last Examination" />
</f:facet>
<h:outputText value="#{patient.lastExaminationDate}" style="#{patient.isUnrated? 'font-weight:bold':''}" />
</rich:column>
<rich:column label="#{msg.action}">
<f:facet name="header">
<h:outputText value="#{msg.action}"></h:outputText></f:facet>
<a4j:commandLink id="editlink" oncomplete="#{rich:component('patientPanel')}.show()" reRender="a4jPatientPanel">
<h:graphicImage value="/images/icons/PNG-24/Add.png" style="border:0" />
<f:setPropertyActionListener value="#{patient}" target="#{user.patientsTab.patientPanel.patient}" />
</a4j:commandLink>
<rich:toolTip for="editlink" value="Edit" />
</rich:column>
<f:facet name="footer">
<rich:datascroller renderIfSinglePage="false" maxPages="5" />
</f:facet>
</rich:extendedDataTable>
</a4j:form>
<ui:include src="/pages/panels/patientPanel.xhtml" />
</ui:composition>
음 나는 그것을 시도했지만 작동하지 않습니다. 나는 enter를 누르고 아무 일도 일어나지 않는다. 입력 필드 (onblur) 외부를 클릭하면 필터링됩니다. 나는 extendedDataTable과 dataTable을 시도했다. 같은 결과. – pakore
요청을 지연시킬 수있는 방법이 있습니까? 분명히 "a4j : form"의 "requestDelay"가 지연되지 않습니다 ... 응답 해 주셔서 감사합니다. – pakore
은 즉시 사용 가능하지 않습니다. 그러나 몇 가지 해결 방법이있을 수 있습니다. 나는 그것에 대해 생각합니다. – Bozho