Re: Why is stateless from making my page stateful?

2011-07-14 Thread Martin Grigorov
It should be the same. Just some minor naming changes. On Thu, Jul 14, 2011 at 3:06 PM, Mike Mander wrote: > Thanks Martin, > > SharedResourceReference and your solution seems to be 1.5. I'm using 1.4.17. > Is there something for 1.4.x? > > Mike > > >> That's why we have examples : >> >> http://w

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Mike Mander
Thanks Martin, SharedResourceReference and your solution seems to be 1.5. I'm using 1.4.17. Is there something for 1.4.x? Mike That's why we have examples : http://www.wicket-library.com/wicket-examples/images/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?SourcesPage_cla

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Martin Grigorov
That's why we have examples : http://www.wicket-library.com/wicket-examples/images/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?SourcesPage_class=org.apache.wicket.examples.images.Home&source=ImagesApplication.java If this doesn't help then do something like: WebComponent img

Re: Why is stateless from making my page stateful?

2011-07-14 Thread Mike Mander
Hello again, call me stupid, but i don't get it (ImageButton loading shared image resource). What i did so far is: Application.init() String key = new CompressedResourceReference(WicketApplication.class, "res/img/search_go.png").getSharedResourceKey(); mountSharedResource("img/search_go.png"

Re: Why is stateless from making my page stateful?

2011-07-12 Thread Martin Grigorov
by making them shared ?! On Tue, Jul 12, 2011 at 3:55 PM, Mike Mander wrote: > Thanks Martin for the dev-utils hint. You're right for my problem. > It seems that all my images have the statelessHint = false. > > But: How can i make my image resource references stateless? > > Thanks > Mike > >> I

Re: Why is stateless from making my page stateful?

2011-07-12 Thread Mike Mander
Thanks Martin for the dev-utils hint. You're right for my problem. It seems that all my images have the statelessHint = false. But: How can i make my image resource references stateless? Thanks Mike I think ImageButton is the component that makes it stateful. To be sure use wicket-devutils, a

Re: Why is stateless from making my page stateful?

2011-07-12 Thread Martin Grigorov
I think ImageButton is the component that makes it stateful. To be sure use wicket-devutils, annotate the page with @StatelessComponent and add StatelessChecker as IComponentOnBeforeRenderListener in your application. On Tue, Jul 12, 2011 at 2:14 PM, Mike Mander wrote: > Hi, > > i use a page wit

Why is stateless from making my page stateful?

2011-07-12 Thread Mike Mander
Hi, i use a page with a border. I add a panel with a stateless form to the border and the page gets stateful. Why? The symtoms are - NotSerializableExceptions and RuntimeException if i click the submit. Form action: ../../../../Overview.html/gdw_exact/Party/of/47/wicket:interface/:0:ambiance:s