मेरे पास rich:extendedDataTable
है और मैं कॉलम फ़िल्टरिंग का उपयोग कर रहा हूं। मैं चाहता हूं कि उपयोगकर्ता "परिचय" कुंजी में प्रवेश करने के बाद फ़िल्टर को निकाल दिया जाए, लेकिन जावास्क्रिप्ट में ऐसी कोई घटना नहीं है।रिचफ़ेस कॉलम फ़िल्टर: परिचय कुंजी पर किसी ईवेंट को कैसे फायर करें
मैं ऐसा इसलिए करना चाहता हूं क्योंकि अगर मैं onkeyup
जैसी घटनाओं का उपयोग करता हूं तो मुझे बहुत से अनुरोध मिलते हैं और मुझे इसकी वजह से समस्याएं होती हैं। मैं समृद्ध 3.3.0 जीजी और फेसलेट का उपयोग कर रहा हूं।
<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>
एमएमएम मैंने कोशिश की है और यह काम नहीं कर रहा है। मैं प्रवेश दबाता हूं और कुछ भी नहीं होता है। अगर मैं इनपुट फ़ील्ड (ऑनब्लूर) के बाहर क्लिक करता हूं तो यह फ़िल्टर करता है। मैंने विस्तारितडेटाटेबल और डेटाटेबल के साथ प्रयास किया है। वही परिणाम – pakore
अनुरोध में देरी करने का कोई तरीका है? "a4j: form" में स्पष्ट रूप से "अनुरोध डेले" देरी नहीं कर रहा है ... हालांकि प्रतिक्रिया के लिए धन्यवाद। – pakore
आउट-ऑफ-द-बॉक्स नहीं। लेकिन कुछ कामकाज हो सकता है। मैं इसके बारे में सोचूंगा। – Bozho