الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Filter Of P:selectonemenu Don't Apply

Featured Replies

بتاريخ:

السلام عليكم ، عندي مشكلة بسيطة ، انا شغال ع بروجكت EJB و فيه صفحة فيها DataTable  معمول عليه Filter و أول ما تكتب الحروف اللي بتبدأ بيها أي كلمة بيجيبها تمام
 
الفكرة ان فيه حقل في ال Data Table ده عاوز اعمله SelectOneMenu و طبعا لازم الفلتر يشتغل ع أساس الاختيار اللي هيتم اختياره من ال SelectOneMenu دي ، انا جبت الItems تمام من الداتا بيز و بتتعرض تمام في ال SelectOneMenu بس للأسف لما بختار item منها ، ال Data Table مش بيحس بالاختيار خالص

 

ده الكود اللي موجود في الصفحة

 

<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:p="http://primefaces.org/ui"
    template="/template/fullmain.xhtml" >
    <ui:define name="title">
    <title>#{mICUIBundle['CrudUser.Title']} </title>
    </ui:define>
    <ui:define name="body">
            
          <f:event type="preRenderView" listener="#{SearchMBean.retrieveDoctors}"/>
    <h:form id="form" >
    <p:messages id="messages"/>
          
         
          <p:dataTable styleClass="FormView" id="data" value="#{SearchMBean.docListDTO}" var="su" paginator="true" rows="20"
                    emptyMessage="لا توجد بيانات  "
                    filteredValue="#{SearchMBean.filtereddoctors}"
                    rowsPerPageTemplate="10,20,30,50,100" paginatorPosition="bottom" >
           <f:facet name="header">  
                       بيانات الأطباء   
                    </f:facet>
            <p:column filterBy="#{su.suplNam}" headerText="اسم الطبيب"
                        filterMatchMode="contains" style="width:85">
                <h:outputText value="#{su.suplNam}" />
            </p:column>
            <p:column filterBy="#{su.specNam}" headerText="التخصص" filterMatchMode="contains" style="width:85" >
                    <f:facet name="filter">
                        <p:selectOneMenu value="#{su.specNam}" onchange="PF('data').filter()" filter="true" panelStyle="width:125px" scrollHeight="150">
                            <f:selectItem itemLabel="اختر تخصص" itemValue="#{null}" noSelectionOption="true" />
                            <f:selectItems value="#{SearchMBean.specificListDTO}" />
                        </p:selectOneMenu>
                    </f:facet>
                <h:outputText value="#{su.specNam}" />                        
            </p:column>

 

       

بتاريخ:

لا بد أن يحدث submit برمجياً لكي يشعر بالقيمة

بتاريخ:

أو اختيار القيمة ثم الضغط على الزر enter

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.