This content has been marked as final.
Show 1 reply
-
1. Re: Loading a file from a Seam component
bgoetzmann Dec 23, 2008 5:56 PM (in response to bgoetzmann)Finally I find a solution using this in my Seam component:
@In
private FacesContext facesContext
and in a method:
ServletContext sc = (ServletContext) facesContext.getExternalContext().getContext()
String fileName = sc.getRealPath("/data/test.xml")
Cheers,
Bertrand.