PackageResource

2013-11-18 Thread MartinoSuperman
close your browser and reopens it and goed to the webpage again. Does someone know how to 'refresh' that newly redrawn PNG picture in the webpage? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PackageResource-tp4662486.html Sent from the Users forum mailing list

Re: PackageResource

2013-11-18 Thread Martin Grigorov
picture in the webpage? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PackageResource-tp4662486.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail

PackageResource changes in 1.5

2011-09-09 Thread Ian Marshall
; / // This code will not compile // PackageResource prResource = PackageResource.get(MyClass.class, MyClass.class.getSimpleName() + .xml); IResourceStream rsStream = prResource.getResourceStream

PackageResource changes in 1.5

2011-09-09 Thread Ian Marshall
); 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

Re: PackageResource changes in 1.5

2011-09-09 Thread Igor Vaynberg
org.apache.wicket.request.resource.PackageResourceReference;  PackageResourceReference prrResource = new PackageResourceReference(   MailBusiness.class, MailBusiness.class.getSimpleName() + .xml);  PackageResource prResource = (PackageResource)prrResource.getResource();  IResourceStream rsStream

Re: PackageResource changes in 1.5

2011-09-09 Thread Ian Marshall
= new PackageResourceReference(   MailBusiness.class, MailBusiness.class.getSimpleName() + .xml);  PackageResource prResource = (PackageResource)prrResource.getResource();  IResourceStream rsStream = prResource.getCacheableResourceStream();  ...  InputStream isStream = rsStream.getInputStream

Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)

2011-08-02 Thread Pedro Santos
on PackageResource(in BasicResourceReferenceMapper getCachingStrategy().decorateUrl() if reference instanceof PackageResourceReference), is that right? Could I obtain the benefits for resources that are under /webapp/js, /webapp/css? Because I want to use wro4j to compact js and css files and  write

Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)

2011-08-02 Thread Alex Objelean
/Using-IResourceCachingStrategy-with-context-relative-resources-non-PackageResource-tp3712574p3713308.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)

2011-08-02 Thread Serban.Balamaci
and not need a special filter to handle this. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-IResourceCachingStrategy-with-context-relative-resources-non-PackageResource-tp3712574p3713469.html Sent from the Users forum mailing list archive at Nabble.com

Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)

2011-08-02 Thread Alex Objelean
-resources-non-PackageResource-tp3712574p3713807.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: PackageResource that isn't tied to session; returns 302?

2010-04-15 Thread Nikita Tovstoles
Answering my own question: use Resource Reference: new Image(img, new ResourceReference(Page2.class, image.png)); On Wed, Apr 14, 2010 at 3:23 PM, Nikita Tovstoles nikita.tovsto...@gmail.com wrote: Correction: PackageResource packageResource = PackageResource.get(Page2.class, image.png

PackageResource that isn't tied to session; returns 302?

2010-04-13 Thread Nikita Tovstoles
Given this page: public class Page2 extends WebPage { public Page2() { add(new Image(plainImage, image.png)); PackageResource packageResource = PackageResource.get(Page2.class, image.png); add(new Image(pkgImage, packageResource)); } } plainImage produces an img that returns a 304 on page

Re: PackageResource - why does'nt get Locale directly from Session ?

2008-06-09 Thread Stefan Simik
Oh yes :-) I think, that taking Locale from session could be the most used = the most suitable default strategy. Session is the most used place for storing Locale. I think, that preferred way should be getting Locale from Session as default. Passing Locale parameter to the PackageResource

Re: PackageResource - why does'nt get Locale directly from Session ?

2008-06-09 Thread Eelco Hillenius
session could be the most used = the most suitable default strategy. Session is the most used place for storing Locale. I think, that preferred way should be getting Locale from Session as default. Passing Locale parameter to the PackageResource constructor does'nt seem to me like a better way

Re: PackageResource - why does'nt get Locale directly from Session ?

2008-06-09 Thread Stefan Simik
. Passing Locale parameter to the PackageResource constructor does'nt seem to me like a better way. Who wants, can subclass PackageResource and override in you own specific way. What do you think about it ? Stefan That's just by design to not make the assumption where the locale comes from

Re: PackageResource - why does'nt get Locale directly from Session ?

2008-06-08 Thread Eelco Hillenius
That's just by design to not make the assumption where the locale comes from. But you can override the class and pass Session.get().getLocale() and you're done :-) Eelco On Fri, Jun 6, 2008 at 9:17 AM, Stefan Simik [EMAIL PROTECTED] wrote: Hi boys, I would like to ask, why PackageResource

PackageResource - why does'nt get Locale directly from Session ?

2008-06-06 Thread Stefan Simik
Hi boys, I would like to ask, why PackageResource doesn't take the Locale from the session, but in constructor ? It could be comfortable, if no Locale specified in constructor, then it could be taken directly from the session. Thanx for the answer. Stefan Simik -- View this message