Statful image

2011-09-07 Thread Jochen Mader
We just stumbled upon the following code in the Wicket(1.4.17) Image class getStatelessHint method: return (getImageResource() == null || getImageResource() == localizedImageResource.getResource()) localizedImageResource.isStateless) My question is: Why does an image become stateful because of a

upgrade from version 1.4.17 to 1.4.18 : a test broken

2011-09-07 Thread Mathilde Pellerin
Hi all, when I upgrade my application from wicket version 1.4.17 to version 1.4.18, there is one test which fails. When I test application manually, there is no problem, so I think there is a problem inside the test. this is the test which failed with 1.4.18 : @Test public void

Re: Statful image

2011-09-07 Thread Jochen Mader
Found it shortly after my mail (as always). Never mind. Am 07.09.2011 09:31 schrieb Jochen Mader pflanzenmoer...@gmail.com: We just stumbled upon the following code in the Wicket(1.4.17) Image class getStatelessHint method: return (getImageResource() == null || getImageResource() ==

Re: Statful image

2011-09-07 Thread Martin Grigorov
Would you share your knowledge with us ? :-) On Wed, Sep 7, 2011 at 12:33 PM, Jochen Mader pflanzenmoer...@gmail.com wrote: Found it shortly after my mail (as always). Never mind. Am 07.09.2011 09:31 schrieb Jochen Mader pflanzenmoer...@gmail.com: We just stumbled upon the following code in

Re: Statful image

2011-09-07 Thread Jochen Mader
Uh, sorry :) It all comes doen to the handling of shared and-nonshared resources. If a resource is non-shared (read: not registered with sharedresources). If the Image resource is null it can't assume that it's shared, therefore handling is at a non-shared/stateful resource. On Wed, Sep 7, 2011

Re: Include wicket into jsp page

2011-09-07 Thread sauli.ketola
I've added wicket pages to a jsp-page based application using a jsp-page which included the wicket page in an iframe. The reason it was done like this was because the jsp-application had a menu bar that I didn't want to clone in wicket. So basically I had a wicketPage.jsp which took as a

Re: Using Wicket together with Microsoft VirtualEarth/BingMaps

2011-09-07 Thread vittorio
Hi, t3_chris! I recently worked on integrating wicket and bing maps. All sources you can find on github (https://github.com/canwe/wicket-bingmaps-integration) Maybe this helps you after two years :) -- View this message in context:

Stateless page with an auto update section

2011-09-07 Thread Sylvain Vieujot
Hello, I have a stateless page, and I would like to periodically refresh a section of this page. If I do : add( new MyPanel( header ) .setOutputMarkupId( true ) .add( new AjaxSelfUpdatingTimerBehavior( Duration.minutes( 2 ) ) ); The page becomes stateless. If in MyPanel,

Stateless page with an auto update section

2011-09-07 Thread Sylvain Vieujot
Hello, I have a stateless page, and I would like to periodically refresh a section of this page. If I do : add( new MyPanel( header ) .setOutputMarkupId( true ) .add( new AjaxSelfUpdatingTimerBehavior( Duration.minutes( 2 ) ) ); The page becomes stateless. If in MyPanel,

Re: Statful image

2011-09-07 Thread vineet semwal
same as what joechen said but in a little different way if the Image resource reference is null the resource is just not added to the current available application sharedresources, it is treated in stateful way ,the url generated for such a image is not bookmarkable .. its mentioned in the

Re: Stateless page with an auto update section

2011-09-07 Thread Martin Grigorov
Hi, A Component (inc. Page) is stateless by nature. On Wed, Sep 7, 2011 at 11:51 AM, Sylvain Vieujot sylvain.vieu...@gmail.com wrote: Hello, I have a stateless page, and I would like to periodically refresh a section of this page. If I do : add( new MyPanel( header )    

Replacing the contents of a table with ajax

2011-09-07 Thread Werner Riegel
Hello, im trying to update the contents of a table, but it doesn't really work. I hope you guys can help me with that. My page looks like the following: It has a Form, consisting of a drop down list + an ajaxbutton, and below the form is a table. After choosing an element from the list and

Re: Replacing the contents of a table with ajax

2011-09-07 Thread Robert Dahlström
Usually, put a container around the table and update the container through ajax and not the table directly. /Robert On 09/07/2011 04:22 PM, Werner Riegel wrote: Hello, im trying to update the contents of a table, but it doesn't really work. I hope you guys can help me with that. My page

Re: Stateless page with an auto update section

2011-09-07 Thread Sylvain Vieujot
The component is indeed stateless, but adding the AjaxSelfUpdatingTimerBehavior prevents it to staying stateless and generates an exception like : Last cause: '[Header [Component id = header]]' claims to be stateless but isn't. Possible reasons: no stateless hint, statefull behaviors

Re: Stateless page with an auto update section

2011-09-07 Thread Martin Grigorov
See jolira-tools Wicket Ajax stateless components and behaviors. You'll have to roll your own timer behavior. On Wed, Sep 7, 2011 at 6:20 PM, Sylvain Vieujot svieu...@apache.org wrote: The component is indeed stateless, but adding the AjaxSelfUpdatingTimerBehavior prevents it to staying

Re: Stateless page with an auto update section

2011-09-07 Thread Igor Vaynberg
use something like this [1] as a base and build your own timer behavior [1] https://github.com/jolira/wicket-stateless/blob/master/stateless/src/main/java/com/google/code/joliratools/StatelessAjaxEventBehavior.java -igor On Wed, Sep 7, 2011 at 3:36 AM, Sylvain Vieujot svieu...@apache.org

RE: Replacing the contents of a table with ajax

2011-09-07 Thread Werner Riegel
Thanks for your reply. I've already done that, as described in my first mail, but it still doesn't work. Date: Wed, 7 Sep 2011 16:37:39 +0200 From: robert.dahlst...@ongame.com To: users@wicket.apache.org Subject: Re: Replacing the contents of a table with ajax Usually, put a container

Re: Stateless page with an auto update section

2011-09-07 Thread Sylvain Vieujot
I will look at this. Thank you. On Wed, 2011-09-07 at 08:34 -0700, Igor Vaynberg wrote: use something like this [1] as a base and build your own timer behavior [1]

Re: Stateless page with an auto update section

2011-09-07 Thread Sylvain Vieujot
I looked at this code, but it does not really help as it has to bind to an event, whilst I am trying to do an auto update component. I have 2 questions : 1) Why does the AbstractAjaxBehavior sets the getStatelessHint to false ? It seems to me that this non stateless hint could be set much lower

Re: Stateless page with an auto update section

2011-09-07 Thread Igor Vaynberg
On Wed, Sep 7, 2011 at 10:11 AM, Sylvain Vieujot svieu...@apache.org wrote: I looked at this code, but it does not really help as it has to bind to an event, whilst I am trying to do an auto update component. I have 2 questions : 1) Why does the AbstractAjaxBehavior sets the getStatelessHint

Wicket ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Hi We found serious performance issue costing aprox. 1 sec per request in ResourceStreamLocator. these are the resources searched by locate() method We wrote custom ResourceStreamLocator to temporarly resolve this issue. Attaching http://www.dropchop.org/log/log.txt log file to see the

Re: Wicket ResourceStreamLocator performance issue

2011-09-07 Thread Martin Grigorov
For which version of Wicket we are talking about ? In 1.5 there is CachingResourceStreamLocator which is setup by default. On Wed, Sep 7, 2011 at 9:01 PM, armandoxxx armando@dropchop.com wrote: Hi We found serious performance issue costing aprox. 1 sec per request in

Re: Stateless page with an auto update section

2011-09-07 Thread Sylvain Vieujot
On Wed, 2011-09-07 at 10:19 -0700, Igor Vaynberg wrote: On Wed, Sep 7, 2011 at 10:11 AM, Sylvain Vieujot svieu...@apache.org wrote: I looked at this code, but it does not really help as it has to bind to an event, whilst I am trying to do an auto update component. I have 2 questions :

Re: Stateless page with an auto update section

2011-09-07 Thread Martin Grigorov
Session#nextSequenceValue() is public and non-final. You can override it in YourWebSession to do whatever fits for your needs. On Wed, Sep 7, 2011 at 9:35 PM, Sylvain Vieujot svieu...@apache.org wrote: ** On Wed, 2011-09-07 at 10:19 -0700, Igor Vaynberg wrote: On Wed, Sep 7, 2011 at 10:11

Re: Stateless page with an auto update section

2011-09-07 Thread Igor Vaynberg
On Wed, Sep 7, 2011 at 11:35 AM, Sylvain Vieujot svieu...@apache.org wrote: On Wed, 2011-09-07 at 10:19 -0700, Igor Vaynberg wrote: On Wed, Sep 7, 2011 at 10:11 AM, Sylvain Vieujot svieu...@apache.org wrote: I looked at this code, but it does not really help as it has to bind to an event,

Re: Stateless page with an auto update section

2011-09-07 Thread Sylvain Vieujot
Using the session does not work, but using the RequestCycle works fine. Below is how I solved the problem, and it seems to work quite well for stateless pages. Thank you for your help. public class StatelessAjaxSelfUpdatingTimerBehavior extends AjaxSelfUpdatingTimerBehavior { private

Re: Wicket ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Sorry man .. forgot to mention version we're using is 1.5 RC7 Regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3797143.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket ResourceStreamLocator performance issue

2011-09-07 Thread Martin Grigorov
Next question: what did you change in your version to make it faster ? Create a ticket with the patch ;-) On Wed, Sep 7, 2011 at 11:19 PM, armandoxxx armando@dropchop.com wrote: Sorry man .. forgot to mention version we're using is 1.5 RC7 Regards Armando -- View this message in

Re: Replacing the contents of a table with ajax

2011-09-07 Thread Gabriel Landon
Maybe you should try something like : protected void onSubmit(AjaxRequestTarget target, Form? form) { TablePanel tp = new TablePanel(tablePanel.getId(), getItemList(selectedFromDropDown)); tp.setOutputMarkupId(true); //replace the panel of you page getPage().replace(tp);

Apache Wicket releases Wicket 1.5

2011-09-07 Thread Martijn Dashorst
The Apache Wicket team is proud to announce the immediate availability of the newest release of their component oriented open source Java web framework. Apache Wicket 1.5 has been in development for the last two years and brings many improvements over previous versions. Downloading Apache Wicket

Re: Apache Wicket releases Wicket 1.5

2011-09-07 Thread Carl-Eric Menzel
On Thu, 8 Sep 2011 00:17:25 +0200 Martijn Dashorst dasho...@apache.org wrote: The Apache Wicket team is proud to announce the immediate availability of the newest release of their component oriented open source Java web framework. Apache Wicket 1.5 has been in development for the last two

Re: Apache Wicket releases Wicket 1.5

2011-09-07 Thread Jonathan Locke
Hooray!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-releases-Wicket-1-5-tp3797412p3797722.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: Apache Wicket releases Wicket 1.5

2011-09-07 Thread Duy Do
Big news! You made my day. Thanks a lot for your great working. On 9/8/11 5:17 AM, Martijn Dashorst wrote: The Apache Wicket team is proud to announce the immediate availability of the newest release of their component oriented open source Java web framework. Apache Wicket 1.5 has been in

Re: Wicket ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Please give me time till weekend cause I'm really busy. I'll write it then ! Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3797889.html Sent from the Users forum mailing list archive

Re: Wicket ResourceStreamLocator performance issue

2011-09-07 Thread armandoxxx
Another question. Is it normal that onAfterRender() methods gets called several times for each component ? Regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-ResourceStreamLocator-performance-issue-tp3796815p3797892.html Sent from the Users

Re: Apache Wicket releases Wicket 1.5

2011-09-07 Thread Frédéric Donckels
Congratulations! The event system is really a bliss. F. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Apache Wicket releases Wicket 1.5

2011-09-07 Thread Bernhard Schauer
w00t, Wicket FTW! On 2011-09-08 05:31, Duy Do wrote: Big news! You made my day. Thanks a lot for your great working. On 9/8/11 5:17 AM, Martijn Dashorst wrote: The Apache Wicket team is proud to announce the immediate availability of the newest release of their component oriented open source

Re: Wicket ResourceStreamLocator performance issue

2011-09-07 Thread Igor Vaynberg
this one is fixed in trunk -igor On Wed, Sep 7, 2011 at 10:14 PM, armandoxxx armando@dropchop.com wrote: Another question. Is it normal that onAfterRender() methods gets called several times for each component ? Regards Armando -- View this message in context: