InputStream 
in=MailBusiness.class.getResource(MailBusiness.class.getSimpleName()+".xml");

no need to use wicket at all

-igor

On Fri, Sep 9, 2011 at 7:23 AM, Ian Marshall <[email protected]> wrote:
> I have now coded:
>
>  import org.apache.wicket.request.resource.PackageResource;
>  import org.apache.wicket.request.resource.PackageResourceReference;
>
>  PackageResourceReference prrResource = new PackageResourceReference(
>   MailBusiness.class, MailBusiness.class.getSimpleName() + ".xml");
>  PackageResource prResource = (PackageResource)prrResource.getResource();
>
>  IResourceStream rsStream = prResource.getCacheableResourceStream();
>  ...
>  InputStream isStream = rsStream.getInputStream();
>  propProperties.loadFromXML(isStream);
>  ...
>
> I have not run this yet (I cannot build since I am still fettling my 1.4.18
> into 1.5.0) but does anyone know whether am I on the right lines or not?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/PackageResource-changes-in-1-5-tp3801683p3801827.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to