load external image from url and use it application wide

2010-05-09 Thread Christoph Grün
Hi, I would like to load an image from an external url, store it in a domain object and use it application wide without reloading it again from that URL. It should be only loaded the first time it is accessed, then stored in the domain object. In the constructor of the domain class, I have

Re: Multiple apps on single server

2010-05-09 Thread Janning Vygen
On Saturday 08 May 2010 23:37:59 Ján Raska wrote: Hello, I'm thinking about making small business by selling/renting e-shop and CMS applications written in Wicket. Now I'm trying to figure out, how many such applications can be hosted on a single server (let's assume 2x Dual Core Xeon 2.66

Re: CSS Templating

2010-05-09 Thread Igor Vaynberg
usually you would simply write a servlet to do it, but if you insist on doing it in wicket... https://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html -igor On Fri, May 7, 2010 at 12:52 PM, Eric Hamel dantehick...@gmail.com wrote: All, I've been exploring the use of

Re: images as resources

2010-05-09 Thread Igor Vaynberg
you can build a url using requestcycle.urlfor(new resourcereference(class in the same package as image, image name)); armed with that you can build any kind of component you need.. -igor On Fri, May 7, 2010 at 9:11 AM, Christoph Grün chris...@gmx.at wrote: Hi, I would like to have all

RE: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-09 Thread Chris Colman
Is your servlet container listening directly to port 80? Yes. It's pure tomcat - not behind Apache Webserver. If not, do the forwarding via a proxy on whatever you are using as a frontend. In that frontend, have it rewrite the URLs (i.e. mod_proxy and mod_rewrite). Otherwise, can you have

Re: load external image from url and use it application wide

2010-05-09 Thread Zilvinas Vilutis
There are examples how to load external images here: https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html All you've got to do is implement your own image cache Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Sun, May 9, 2010 at 7:23 AM, Christoph Grün

Re: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-09 Thread Jeremy Thomerson
On Sun, May 9, 2010 at 5:47 PM, Chris Colman chr...@stepaheadsoftware.comwrote: Is your servlet container listening directly to port 80? Yes. It's pure tomcat - not behind Apache Webserver. If not, do the forwarding via a proxy on whatever you are using as a frontend. In that frontend,

Re: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-09 Thread James Carman
I don't think ProxyPass will work (at least it didn't used to) if you try to use the / path, so that might be the trouble you're seeing (if you're seeing any). On Sun, May 9, 2010 at 6:47 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is your servlet container listening directly to port 80?

efficient resource downloading

2010-05-09 Thread Joe Fawzy
Hi i want to know if this is an efficient way to download some files i want my users to be able to download certain files just to registerd users only so i can put that logic in the page constructor but is this efficient way to do this as this may be called thausands of times per hour (the

RE: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-09 Thread Chris Colman
Using the word 'context' was probably misleading on my part. In servlet containers context=app. What I was talking about was the first 'path' element after the domain name, Eg., content in www.mysite.com/content In this case I'm talking about a single app but I set up multiple different URL

Re: how to get some data from servlet

2010-05-09 Thread Fernando Wermus
would you paste your code here? I will get a try if there is no problem. On Sat, May 8, 2010 at 9:04 PM, Zilvinas Vilutis cika...@gmail.com wrote: The problem is not in wicket, but in SwfUpload or more specific would be the Adobe Flash itself - which uses IE cookies in any case, even when

Re: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-09 Thread Jeremy Thomerson
Should still work. If you're using the filter, the idea is that it will only respond to the URLs that it recognizes, and will pass other requests down the chain. -- Jeremy Thomerson http://www.wickettraining.com On Sun, May 9, 2010 at 8:48 PM, Chris Colman chr...@stepaheadsoftware.comwrote:

Re: efficient resource downloading

2010-05-09 Thread Igor Vaynberg
write a servlet -igor On Sun, May 9, 2010 at 6:37 PM, Joe Fawzy joewic...@gmail.com wrote: Hi i want to know if this is an efficient way to download some files i want my users to be able to download certain files just to registerd users only so i can put that logic in the page constructor

RE: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-09 Thread Chris Colman
Oh, of course! Sorry I was mistakenly assuming we'd use /* which would match everything but if we use the non wild card / then that will only do an exact match and other URLs with /content etc., will still be able to match their own separate patterns and redirect to their appropriate

Re: how to get some data from servlet

2010-05-09 Thread Zilvinas Vilutis
SecureSessionHolder: http://pastebin.com/J891bDye SecureSessionListener: http://pastebin.com/UBnLRLJ7 and just inside your implementation of org.apache.wicket.authentication.AuthenticatedWebSession.authenticate(String, String) ( or any other auth method ) call

Re: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-09 Thread Igor Vaynberg
you would use /*, wicket lets urls that it cannot map fallthrough and be handled as usual. additionally wicketfilter has some context params that lets you specify ignore masks, see the source/javadocs. -igor On Sun, May 9, 2010 at 8:22 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Oh,