1 Sep 2006 10:20
Re: Suggestion for AbstractFacesBean
Matthias Wessendorf <matzew <at> apache.org>
2006-09-01 08:20:46 GMT
2006-09-01 08:20:46 GMT
On 8/31/06, Adrian Mitev <amittev <at> gmail.com> 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 = ResourceBundle.getBundle(getFacesContext()
> .getApplication().getMessageBundle());
> String message = bundle.getString(bundleMessageKey);
> error(componeng,message);
--- compile error ;)
> } catch (MissingResourceException e) {
> e.printStackTrace();
> }
> }
>
> --
> Seeing is believing
>
--
--
Matthias Wessendorf
further stuff:
blog: http://jroller.com/page/mwessendorf
(Continue reading)
. Someday I'll remember to do that first so I can just
point at it.
--
> Wendy
>
Craig
RSS Feed