بتاريخ: 15 نوفمبر 201213 سنة comment_229119 السلام عليكم ورحمة الله وبركاته .حيث انا جديد علي adf كيف استطيع تعديل كلمة السر و حفظها في الجدول ..حيث عندي حقل اسمه password في الجدول وعندي 3 حقو input text علي الشاشه .المطلوب اذا كان كلمة السر القديمه لا تساوي الموجوده في الجدول يعطي مسج واذا صحيحه ينتقل للاخري ...كلمة السر القديمه --------------- عند ادخالها يشيك عنها في الجدول .كلمة السر الجديدهتاكيد كلمة السر الجديه ---------------------- كيف تكون المقارنه مع كلمة السر الجديده ..2- كيف اعمل valdate علي حقل رقم الهويه id لمنع تكراارها عند الادخال ..وجزاكم الله خير الجزااااااااااااااءمنتظركم وسامحونا علي تعطيلكم في اشياء سهله عليكم وصعبه علينا . تقديم بلاغ
بتاريخ: 15 نوفمبر 201213 سنة comment_229133 Dear My Friendi hope that u don't asking for a complete solution for your Login Page , anywayfrom Oracle Developers point of View, they prefere to make DB Stored Function or Package handle the comparing to most of transactions and calling it in ADF Application using CallableStatement or PrepairedStatementFrom Java Developers point of View, they prefere to work in Model or Back Beans to handle same process using java but in this time they work with View Objects in Back Bean AreaRegarding second Question about Unique ID, in ADF is a piece of Cake !!, just Create Unique for your Column in DB if it is not PK, thenif it is Unique Key, then u can handel validating Entity object level customizing Unique Validation specifiying messageif it is PK, then u can handle JBO-25013 with a message in your Custom Message Bundle in Model ApplicationExamplepublic class ErrorControl extends ListResourceBundle { private static final Object[][] sMessageStrings = new String[][] { { "25013", "\u0627\u0644\u0639\u0646\u0635\u0631 \u0645\u0643\u0631\u0631 \u0645\u0633\u0628\u0642\u0627" }}; /**Return String Identifiers and corresponding Messages in a two-dimensional array. */ protected Object[][] getContents() { return sMessageStrings; }}Good Luck تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.