Re: [OT] Merb-Rails Merge

2008-12-25 Thread HHB
I'm not bashing Rails, I'm just got bored from the Rails guys and how they underestimate Java culture (the language, frameworks and the performance !!) When I say Rails is a good replacement of PHP, I'm not disdaining them. Both are good for building public web sites (forums, e-commerce) but not

WebPage for serving binary image data

2008-12-25 Thread smallufo
Hi I hope I can use wicket to serve image data. I know I can extend org.apache.wicket.markup.html.image.Image and provide a DynamicImageResource but the generated image link is http://localhost/app/?wicket:interface=:0:customImage::IResourceListener:: The image data is stored in the session and

Re: WebPage for serving binary image data

2008-12-25 Thread Nino Martinez
Search the list, use either a resource or a servlet are the conclusion... Like so : package zeuzgroup.web.icons; import org.apache.log4j.Logger; import org.apache.wicket.AttributeModifier; import org.apache.wicket.ResourceReference; import org.apache.wicket.markup.html.image.Image; import

Re: [OT] wicket users around the world

2008-12-25 Thread Jonathan Locke
Seattle, WA USA i just finished writing a foreword for a Japanese book on Wicket i'm constantly amazed to see how far Wicket is spreading in the world. i've been invited to holland twice now (deventer and utrecht) and have clients in norway and new zealand. and i suspect there will be more

Submitting form via ajax using wicket tester

2008-12-25 Thread John Lasher
Hello, I'm new to wicket and have been struggling with this problem for a few hours now and any help is greatly appreciated. I created a form with ajaxbuttons for submit and cancel. When I try to submit the form via the FormTester, it does a regular submit instead of an ajax submit and hence the

Re: WebPage for serving binary image data

2008-12-25 Thread Jonathan Locke
ResourceReference reference; WebApplication.mountSharedResource(/path/to/my/image, reference.getSharedResourceKey()) smallufo wrote: Hi I hope I can use wicket to serve image data. I know I can extend org.apache.wicket.markup.html.image.Image and provide a DynamicImageResource but

Re: WebPage for serving binary image data

2008-12-25 Thread Jonathan Locke
hmm... this really is a bit harder than it ought to be. below is a url encoding strategy and a sub-classable auto-mounting resource that makes this a lot easier. you can modify to suit your needs. the use case looks like: // This dynamically rendered resource will auto-mount itself

Re: WebPage for serving binary image data

2008-12-25 Thread jWeekend
Take a look at Wicket's shared resources if you need a stable URL. You may get some ideas http://www.nabble.com/Re%3A-Mounting-shared-resources-p15236047.html here too. Regards - Cemal http://www.jWeekend.co.uk jWeekend smallufo wrote: Hi I hope I can use wicket to serve image data.

Re: WebPage for serving binary image data

2008-12-25 Thread Jeremy Thomerson
There was also just a new strategy added in 1.4 (I know you're on 1.3.5 - but just so you or others are aware of it) for creating very nice URLs for resources. See this commit: http://fisheye6.atlassian.com/changelog/wicket/?cs=729078 -- Jeremy Thomerson http://www.wickettraining.com On Thu,

Re: WebPage for serving binary image data

2008-12-25 Thread smallufo
Well , What I need is parsing URL and generating a corresponding image from BufferedImage , not a bookmarkable link to internal file resource... for example : http://localhost/app/myImage/text/Hello/width/500 This will generate a 500x500 png , containing a Hello String.

Re: WebPage for serving binary image data

2008-12-25 Thread Jeremy Thomerson
I spent a while playing with this, and indeed - it is much more difficult than it should be (or I missed something that one of the core devs can point out. I really hope one of them can review this and point me to an easier way. But in the meantime, this should work for you. First, let's start

Re: WebPage for serving binary image data

2008-12-25 Thread Jeremy Thomerson
Oh, sorry, mean to include that if you add this to a quickstart, you can test with URL: http://localhost:8080/foo http://localhost:8080/foo?text=fffwidth=200 -- Jeremy Thomerson http://www.wickettraining.com On Fri, Dec 26, 2008 at 12:48 AM, Jeremy Thomerson jer...@wickettraining.com wrote: