بتاريخ: 22 فبراير 201214 سنة comment_221070 السلام عليكمأريد أن أغير مسار الحقول في البرنامج لتكون من اليمين الى الشمال لأنني أستخدم صفحة باللعة العربيةولكن أسماء الحقول تأتي من الشمال الى اليمين؟فماهي الطريقة المناسبة لذلك؟وشكرا لكم تقديم بلاغ
بتاريخ: 23 فبراير 201214 سنة كاتب الموضوع comment_221106 وجدت حلا جزئيا وهو على مستوى عملية البحث ياستخدام New Skin ووضع الكود التالي:af|query{ direction: rtl; font-effect: emboss; position: relative;}نريد حلا على مستوى المشروع بأكملهوشكرا لكم تقديم بلاغ
بتاريخ: 23 فبراير 201214 سنة comment_221119 انا عن نفسى عامل 2 buttons كدة فى اعلى الصفحة . مثلا عربي و انجليزىو فى الpage بروح على <view و اعمل <f:view locale="#{common.locale}"> و عامل managed bean ممكن تستخدمها و هى : public class DhamanCommon { private String locale = "ar"; public void setLocale(String locale) { this.locale = locale; } public String getLocale() { return locale; } public void switchToArabic(ActionEvent actionEvent) { // Add event code here... setLocale("ar"); String requestURL = ServerUtil.getHTTPServletRequest().getRequestURI(); ServerUtil.redirect(requestURL); } public void swithcToEnglish(ActionEvent actionEvent) { // Add event code here... setLocale("en"); String requestURL = ServerUtil.getHTTPServletRequest().getRequestURI(); ServerUtil.redirect(requestURL); } } و علشان الكود يشتغل لازم تعمل الكلاس دى اللى بتعمل refresh للصفحة import javax.servlet.http.HttpServletRequest; import java.io.IOException; import javax.faces.context.ExternalContext; import javax.faces.context.FacesContext; public class ServerUtil { // private static Logger sLog = Logger.getLogger(Utils.class); private static final String CREATE_MODES_KEY = "createModes"; /** * Get Http request from external context. * @return */ public static HttpServletRequest getHTTPServletRequest() { return (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); } public static void redirect(String redirectUrl) { try { ExternalContext ext = FacesContext.getCurrentInstance().getExternalContext(); ext.redirect(redirectUrl); } catch (IOException e) { e.printStackTrace(); // sLog.error("Error redirecting to " + redirectUrl + ": " + e.getMessage()); } } } يا ريت تخلى ال 2 classess فى باكج واحدةو بعد كدة بتروح على الصفحة بتاعتك وو تعمل ال buttons كالتالي <af:panelGroupLayout id="pt_pgl33" layout="horizontal"> <af:commandLink text="عربي" id="pt_cni1" disabled='#{common.locale eq "ar"}' actionListener="#{common.switchToArabic}" /> <af:commandLink text="English" id="pt_cni2" disabled='#{common.locale eq "en"}' actionListener="#{common.swithcToEnglish}" /> </af:panelGroupLayout > جرب كدة و قولى تقديم بلاغ
بتاريخ: 23 فبراير 201214 سنة comment_221120 ملاحظةلو انت عاوز الصفحة تشتغل عربي بس من غير تغيير لغة و لا حاجة بس روح على السورس بتاع الصفحة و عند < <f:view اكتب <f:view locale="ar"> تم تعديل 23 فبراير 201214 سنة بواسطة tarek_fathi تقديم بلاغ
بتاريخ: 25 فبراير 201214 سنة كاتب الموضوع comment_221171 شكرا جزيلا لكالآن الواجهة العربية تعمل بشكل ممتازشكرا لك تقديم بلاغ
بتاريخ: 29 فبراير 201214 سنة comment_221320 بالنسبة لي كمبتدئفالنظام اشتغل كاملا باللغة العربية وكذلك الاتجاه عند تغيير المنطقة الزمنية إلى العربيةTimeZoneAsia/Riaydh الطريقة أرسلتها في الرابطhttp://www.araboug.org/ib/index.php?showtopic=49194 تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.