الانتقال إلى المحتوى
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.

How To Control <Af:panelspliter> At Runtime

Featured Replies

بتاريخ:

I have a panel splitter layout component on my page and i want to enable/disable this splitter at run time from within a managed bean


In my managed bean I made this method 



    public  void doDiscloseSplit(PhaseEvent phaseEvent){       
         String currViewId = phaseEvent.getFacesContext().getViewRoot().getViewId();
         System.out.println("current view id="+currViewId);
         if (!currViewId.equals(this.getViewId())) {  
           spliter.setDisabled(false); 
           System.out.println("spliter is now false");
         }   
   }


but this method throws a runtime exception
javax.el.ELException: java.lang.NullPointerException

بتاريخ:

عادة ال panel Splitter بيستخدم معاها collapsed وليس Disabled وهو اخفاء احد ال Panes وجعل الاخرى تمتد لتملا الصفحه باكملها ولكن بغض النظر عن collapsed او disable فاستخدام الميثود غير صحيح بالمرة لان الصح تستخدم ميثود زى isCollapsed او isDisabled او isPositionedFromEnd وكلهم بيرجعوا boolean وفى البروبرتى الخاصه بال disable او ال collapse او ال PositionedFromEnd فى ال property Inspector اعمل bind للخصائص دى على الميثود بتاعتك اللى فى ال managed Bean

بتاريخ:

Hello Tarek,
it seems that you are using a phase listener.
in this case make sure that you have successfully used the binding attribute of the splitter to point to your variable <spliter>.
i think you forgot to do this and the null pointer is occurring because of null spliter.
we normally use such technique where the splitter resides in a template

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

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

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

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

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

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.