Re: [Wicket-user] Problem with concurren ajax requests on page
Is there any progress on this issue ? I search JIRA but there is no related issue... On 5/11/07, Alex Objelean [EMAIL PROTECTED] wrote: I'll add a quickstart as soon as possible... (tomorrow by noon) Thank you! Matej Knopp-2 wrote: Okay. Can you please create a quickstart that can be used to reproduce this and add attach it to a jira bug entry? Thanks -Matej On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote: I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget (DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10421801 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
Well, it wasn't wicket fault... It was mine. Actually, I used YUI for layout management and this didn't work very well for my fully ajaxified application by causing this kind of errors. Therefore I gave up using it... The problem appears when the component is not in the sync with its model. Alex. Ingram Chen-2 wrote: Is there any progress on this issue ? I search JIRA but there is no related issue... On 5/11/07, Alex Objelean [EMAIL PROTECTED] wrote: I'll add a quickstart as soon as possible... (tomorrow by noon) Thank you! Matej Knopp-2 wrote: Okay. Can you please create a quickstart that can be used to reproduce this and add attach it to a jira bug entry? Thanks -Matej On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote: I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget (DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10421801 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing
Re: [Wicket-user] Problem with concurren ajax requests on page
I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
Okay. Can you please create a quickstart that can be used to reproduce this and add attach it to a jira bug entry? Thanks -Matej On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote: I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
I'll add a quickstart as soon as possible... (tomorrow by noon) Thank you! Matej Knopp-2 wrote: Okay. Can you please create a quickstart that can be used to reproduce this and add attach it to a jira bug entry? Thanks -Matej On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote: I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10421801 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
I have the same issue and I am using wicket 1.2.6.. I am also developing an ajax application (desktop like)... Is it a known issue or bug in my code? Thank you! Regards, Alex. Matej Knopp-2 wrote: You seem to be using 1.2, is that right? -Matej On 4/30/07, RedFury [EMAIL PROTECTED] wrote: Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10392951 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: I have the same issue and I am using wicket 1.2.6.. I am also developing an ajax application (desktop like)... Is it a known issue or bug in my code? Thank you! Regards, Alex. Matej Knopp-2 wrote: You seem to be using 1.2, is that right? -Matej On 4/30/07, RedFury [EMAIL PROTECTED] wrote: Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10392951 Sent from the Wicket - User mailing list archive at Nabble.com.
Re: [Wicket-user] Problem with concurren ajax requests on page
Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: I have the same issue and I am using wicket 1.2.6.. I am also developing an ajax application (desktop like)... Is it a known issue or bug in my code? Thank you! Regards, Alex. Matej Knopp-2 wrote: You seem to be using 1.2, is that right? -Matej On 4/30/07, RedFury [EMAIL PROTECTED] wrote: Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE
Re: [Wicket-user] Problem with concurren ajax requests on page
Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: I have the same issue and I am using wicket 1.2.6.. I am also developing an ajax application (desktop like)... Is it a known issue or bug in my code? Thank you! Regards, Alex. Matej Knopp-2 wrote: You seem to be using 1.2, is that right? -Matej On 4/30/07, RedFury [EMAIL PROTECTED] wrote: Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control
Re: [Wicket-user] Problem with concurren ajax requests on page
The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10394773 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
You seem to be using 1.2, is that right? -Matej On 4/30/07, RedFury [EMAIL PROTECTED] wrote: Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
Though I'm not sure, maybe you'll get a hint from this : JAVASCRIPT : httpRequest.open('GET', 'http://www.example.org/some.file', true); * The third parameter sets whether the request is asynchronous. If TRUE, the execution of the JavaScript function will continue while the response of the server has not yet arrived. This is the A in AJAX. SOURCE: http://developer.mozilla.org/en/docs/AJAX:Getting_Started -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10280571 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
which version of wicket do you use? can you reproduce this in a quickstart example? johan On 4/30/07, RedFury [EMAIL PROTECTED] wrote: Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve (DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve (Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem with concurren ajax requests on page
Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user