Hi Volker, yes my resource is in the lookup path... so it works now.
Thanks a lot! -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Volker Weber Gesendet: Donnerstag, 20. September 2007 14:21 An: MyFaces Discussion Betreff: Re: FacesMessage in Tobago Hi Mario, where are your resources stored? If in the tobago resource lookup path you can use the org.apache.myfaces.tobago.context.ResourceManagerUtil.getProperty( FacesContext facesContext, String bundle, String key) method. eg: ResourceManagerUtil.getProperty(facesContext, "resource", "selectError") Regards, Volker 2007/9/20, Schröder, Mario <[EMAIL PROTECTED]>: > > > > > Hi, > > > > how can I load a FacesMessage with the > org.apache.myfaces.shared_impl.util.MessageUtils from a > resource in Tobago. My code looks like this: > > > > FacesMessager error = MessageUtils.getMessage("resource", "selectError", > null); > > > > But it throws a MissingResourceException. Do I have to give the path to the > resource? Is there a Tobago-Class which deals with my problem: to load the > correct resource? > > > > Regards, > > Mario

