بتاريخ: 2 سبتمبر 201312 سنة comment_239701 كيف ممكن اتعامل مع ال Bundle عن طريق ال Code Java يعني في عندي رساله و اريد ان تخرج حسب اللغه المختاره من المستخدم تقديم بلاغ
بتاريخ: 3 سبتمبر 201312 سنة comment_239744 Dear, you can make twy bundle items inside your bundle and access from your back bean using below method, (sure you need to make if statement to decide which key you will use depends on your choosen language) FacesContext context = FacesContext.getCurrentInstance();ResourceBundle bundle = context.getApplication().getResourceBundle(context, "msg");String message = bundle.getString("key"); Enjoy تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.