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

What Is Adf [When-New-Form-Instance] Equavalent

Featured Replies

بتاريخ:

من عنوان الموضوع أرجو معرفه ما المقابل لل new form instance في الصفحة بدون الرجوع لل application module

بتاريخ:

you have 2 ways

makes a method fire before navigating to your page

and the other solution is the page phase listener

you have to read more about them

good luck

بتاريخ:
  • كاتب الموضوع

Thanks alot for your suggestion


i want to do some logic when the user open the page EX.show message for logintime and some data from Named Query ..


thanks alot Dr.Wael

  • بعد 3 أسابيع...
بتاريخ:

اقولك حل انا فكرت فيه و تقولى رأيك
انت هتضيف output text فى الصفحة بتاعتك
و تروح على ال property visible و تخليها تقرا من Boolean attribute موجود فى managed bean
اللى اسمه مثلا showme
Example

private boolean showme=true;
public boolean isShowme(){
showPopup();
return true;
}
public void setShowme(boolean showme){
this.showme=showme;
}


و فى الميثود اللى اسمها showPopup()
اكتب اللى الكود اللى بيظهرلك الرساله

فى الحاله دى الصفحة بتاعتك اول ما تفتح هتعمل render لل output text و تخليه visible و تنفز الكود اللى فى الميثود isShowme()

دة تخيلي هل فى حد عندة حل احسن من كدة . يا ريت نتشارك الافكار

تم تعديل بواسطة tarek_fathi

بتاريخ:

ممكن تستخدم clientListener & serverListener على af:doucument
هفترض انك عايز تعمل شاشة لما تدخل تعرض PopUp فيها رسالة معينة

<f:view>
   <af:document id="d1" title="myTestPage">
  <af:form id="f1">
    <af:popup id="p1" contentDelivery="lazyUncached"
			  binding="#{test.myPopup}">
	  <af:dialog id="d2" type="cancel" title="messages">
	    <af:outputText value="#{test.msg}" id="ot1"/>
	  </af:dialog>
    </af:popup>
  </af:form>
  <af:resource type="javascript">
   
  function callClientScript(event)
  {
    component = event.getSource();
    AdfCustomEvent.queue(component,"customServerListener",{},true);
  }
  </af:resource>
  <af:clientListener method="callClientScript" type="load"/>
  <af:serverListener type="customServerListener"
					 method="#{test.customServerListener}"/>
   </af:document>
 </f:view>



and Java Bean

import oracle.adf.view.rich.component.rich.RichPopup;
import oracle.adf.view.rich.render.ClientEvent;
public class TestBean
{
 private RichPopup myPopup;
 String msg;
 public void customServerListener(ClientEvent clientEvent)
 {
   msg = "your Message";
   myPopup.show(new RichPopup.PopupHints());
 }

 public void setMyPopup(RichPopup myPopup)
 {
   this.myPopup = myPopup;
 }
 public RichPopup getMyPopup()
 {
   return myPopup;
 }

 public void setMsg(String msg)
 {
   this.msg = msg;
 }
 public String getMsg()
 {
   return msg;
 }

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

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

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

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

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

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.