Suggestion for AbstractFacesBean

2006-09-04 Thread Adrian Mitev
Hi! Useful method for AbstractFacesBean also could be something like public void gotoView(String viewName) { if (viewName!= null) { UIViewRoot newView = getFacesContext().getApplication().getViewHandler().createView(getFacesContext(), viewName);

Re: Suggestion for AbstractFacesBean

2006-09-01 Thread Matthias Wessendorf
On 8/31/06, Adrian Mitev [EMAIL PROTECTED] wrote: Hi! It is a good idea to add method like addMessageFromBundle that does something like this: public void addMessageFromBundle(UIComponent component,String bundleMessageKey) { ResourceBundle bundle = null; try { bundle

Re: Suggestion for AbstractFacesBean

2006-09-01 Thread Adrian Mitev
Sorry about the typo. I`ve wrote this code in gmail not in IDE :) -- Seeing is believing

Suggestion for AbstractFacesBean

2006-08-31 Thread Adrian Mitev
Hi! It is a good idea to add method like addMessageFromBundle that does something like this: public void addMessageFromBundle(UIComponent component,String bundleMessageKey) { ResourceBundle bundle = null; try { bundle = ResourceBundle.getBundle(getFacesContext()

Re: Suggestion for AbstractFacesBean

2006-08-31 Thread Craig McClanahan
On 8/31/06, Adrian Mitev [EMAIL PROTECTED] wrote: Hi! It is a good idea to add method like addMessageFromBundle that does something like this: public void addMessageFromBundle(UIComponent component,String bundleMessageKey) { ResourceBundle bundle = null; try {