Re: WicketRuntimeException: component not found on page

2010-12-13 Thread Takeo Hosomi
Hello,

The problem was solved by the advice I got from a wiquery developer.

He said it was a common problem which happens when double ajax
requests are issued where the first ajax request rewrite a component,
and the next one refer to it.

I solved the problem by preventing it by using the technique
introduced at the following link, and it works.
http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-of-code/

Thanks,
Takeo Hosomi

On Thu, Dec 9, 2010 at 4:56 PM, Takeo Hosomi takeo.hos...@gmail.com wrote:
 I attached it to a JIRA.
 https://issues.apache.org/jira/browse/WICKET-3248

 Thanks,
 Takeo Hosomi

 On Thu, Dec 9, 2010 at 4:12 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
 Attach the zip of the quickstart to a JIRA.

 Jeremy Thomerson
 http://wickettraining.com
 -- sent from my smart phone, so please excuse spelling, formatting, or
 compiler errors

 On Dec 9, 2010 4:15 PM, Takeo Hosomi takeo.hos...@gmail.com wrote:

 Hello,

 I have the same issue which is discussed in the following link:
 http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-component-not-found-on-page-td3055902.html

 I made a quickstart to reproduce it. Any idea on how to workaround
 this behavior?
 I'm using wicket 1.4.12, wiquery 1.1.2, and wiquery-plugin for tooltip
 (other-plugins-1.1.jar).

 Thanks,
 Takeo Hosomi

 Step1.
 Use following source code to reproduce the problem.

 Java:

 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;

 import org.apache.wicket.Component;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import
 org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
 import org.apache.wicket.behavior.SimpleAttributeModifier;
 import org.apache.wicket.markup.html.CSSPackageResource;
 import org.apache.wicket.markup.html.WebMarkupContainer;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.list.ListItem;
 import org.apache.wicket.markup.html.list.PageableListView;
 import org.apache.wicket.markup.html.panel.Panel;
 import org.odlabs.wiquery.ui.themes.ThemeUiHelper;
 import org.odlabs.wiquery.ui.themes.UiIcon;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior;
 import
 org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour.IToolTipOnBeforeShowUIEventHandler;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Offset;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Position;

 public class TestPanel extends Panel {
       private static final long serialVersionUID = 1L;

       private static int rowHeight = 40;

       public TestPanel(String id) {
               super(id);
               setOutputMarkupId(true);


  add(CSSPackageResource.getHeaderContribution(TooltipBehavior.CSS));

       // Tooltip Indicator
       final WebMarkupContainer indiIcon = new
 WebMarkupContainer(indiIcon);
       ThemeUiHelper.iconComponent(indiIcon, UiIcon.CARAT_1_EAST);
       final WebMarkupContainer tooltipIndicator = new
 WebMarkupContainer(indi);
       tooltipIndicator.add(indiIcon);
       tooltipIndicator.add(new SimpleAttributeModifier(style,

  display:none;background-color:#C4C4C4; +
                                       height:+20+px; +

  padding-top:+((rowHeight-20)/2-1)+px;padding-bottom:+((rowHeight-20)/2-1)+px;));
       tooltipIndicator.setOutputMarkupId(true);
       add(tooltipIndicator);

           // Container
       WebMarkupContainer container = new WebMarkupContainer(container);
       container.setOutputMarkupId(true);
       add(container);

               PageableListViewDummyUser users = new
 PageableListViewDummyUser(user, dummyUsers(), 3){
               /***/
                       private static final long serialVersionUID = 1L;

                       @Override
                       protected void populateItem(ListItemDummyUser item)
 {
                               item.add(new
 SimpleAttributeModifier(style,height:+rowHeight+px;));
                               item.add(new Label(name,
 item.getModelObject().getName()));
                               item.add(new Label(first,
 item.getModelObject().getFirst()));
                               item.add(new Label(last,
 item.getModelObject().getLast()));
                       item.add(new TooltipAjaxBehaviour()
                               .setDelay(0) // TODO magic number 400ms
                               .setPredelay(0)
                               .setPosition(Position.bottom_right)
                               .setOffset(new Offset(-(rowHeight-1),-15)) //
 y,x
                               .setTip(tooltipIndicator)
                               .setOnBeforeShow(new
 IToolTipOnBeforeShowUIEventHandler() {
                                       private static final long
 serialVersionUID = 1L;

                                       public void onEvent(AjaxRequestTarget

WicketRuntimeException: component not found on page

2010-12-09 Thread Takeo Hosomi
Hello,

I have the same issue which is discussed in the following link:
http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-component-not-found-on-page-td3055902.html

I made a quickstart to reproduce it. Any idea on how to workaround
this behavior?
I'm using wicket 1.4.12, wiquery 1.1.2, and wiquery-plugin for tooltip
(other-plugins-1.1.jar).

Thanks,
Takeo Hosomi

Step1.
Use following source code to reproduce the problem.

Java:

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
import org.apache.wicket.behavior.SimpleAttributeModifier;
import org.apache.wicket.markup.html.CSSPackageResource;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.PageableListView;
import org.apache.wicket.markup.html.panel.Panel;
import org.odlabs.wiquery.ui.themes.ThemeUiHelper;
import org.odlabs.wiquery.ui.themes.UiIcon;
import org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour;
import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior;
import 
org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour.IToolTipOnBeforeShowUIEventHandler;
import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Offset;
import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Position;

public class TestPanel extends Panel {
private static final long serialVersionUID = 1L;

private static int rowHeight = 40;

public TestPanel(String id) {
super(id);
setOutputMarkupId(true);

add(CSSPackageResource.getHeaderContribution(TooltipBehavior.CSS));

// Tooltip Indicator
final WebMarkupContainer indiIcon = new WebMarkupContainer(indiIcon);
ThemeUiHelper.iconComponent(indiIcon, UiIcon.CARAT_1_EAST);
final WebMarkupContainer tooltipIndicator = new 
WebMarkupContainer(indi);
tooltipIndicator.add(indiIcon);
tooltipIndicator.add(new SimpleAttributeModifier(style,

display:none;background-color:#C4C4C4; +
height:+20+px; +

padding-top:+((rowHeight-20)/2-1)+px;padding-bottom:+((rowHeight-20)/2-1)+px;));
tooltipIndicator.setOutputMarkupId(true);
add(tooltipIndicator);

// Container
WebMarkupContainer container = new WebMarkupContainer(container);
container.setOutputMarkupId(true);
add(container);

PageableListViewDummyUser users = new
PageableListViewDummyUser(user, dummyUsers(), 3){
/***/
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItemDummyUser item) {
item.add(new 
SimpleAttributeModifier(style,height:+rowHeight+px;));
item.add(new Label(name, 
item.getModelObject().getName()));
item.add(new Label(first, 
item.getModelObject().getFirst()));
item.add(new Label(last, 
item.getModelObject().getLast()));
item.add(new TooltipAjaxBehaviour()
.setDelay(0) // TODO magic number 400ms
.setPredelay(0)
.setPosition(Position.bottom_right) 

.setOffset(new Offset(-(rowHeight-1),-15)) // 
y,x
.setTip(tooltipIndicator)
.setOnBeforeShow(new 
IToolTipOnBeforeShowUIEventHandler() {
private static final long 
serialVersionUID = 1L;

public void onEvent(AjaxRequestTarget 
target, Component
component, int top, int left) {
// do something...
}
})
);
}
};
container.add(users);
container.add(new AjaxPagingNavigator(navigator, users));
}

private ListDummyUser dummyUsers() {
ListDummyUser ret = new ArrayListDummyUser();
for (int i=0; i10 ; i++){
ret.add(new DummyUser(name+i,first+i,last+i));
}
return ret;
}

private class DummyUser implements Serializable {
private static final long serialVersionUID = 1L

Re: WicketRuntimeException: component not found on page

2010-12-09 Thread Jeremy Thomerson
Attach the zip of the quickstart to a JIRA.

Jeremy Thomerson
http://wickettraining.com
-- sent from my smart phone, so please excuse spelling, formatting, or
compiler errors

On Dec 9, 2010 4:15 PM, Takeo Hosomi takeo.hos...@gmail.com wrote:

Hello,

I have the same issue which is discussed in the following link:
http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-component-not-found-on-page-td3055902.html

I made a quickstart to reproduce it. Any idea on how to workaround
this behavior?
I'm using wicket 1.4.12, wiquery 1.1.2, and wiquery-plugin for tooltip
(other-plugins-1.1.jar).

Thanks,
Takeo Hosomi

Step1.
Use following source code to reproduce the problem.

Java:

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
import org.apache.wicket.behavior.SimpleAttributeModifier;
import org.apache.wicket.markup.html.CSSPackageResource;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.PageableListView;
import org.apache.wicket.markup.html.panel.Panel;
import org.odlabs.wiquery.ui.themes.ThemeUiHelper;
import org.odlabs.wiquery.ui.themes.UiIcon;
import org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour;
import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior;
import
org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour.IToolTipOnBeforeShowUIEventHandler;
import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Offset;
import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Position;

public class TestPanel extends Panel {
   private static final long serialVersionUID = 1L;

   private static int rowHeight = 40;

   public TestPanel(String id) {
   super(id);
   setOutputMarkupId(true);


 add(CSSPackageResource.getHeaderContribution(TooltipBehavior.CSS));

   // Tooltip Indicator
   final WebMarkupContainer indiIcon = new
WebMarkupContainer(indiIcon);
   ThemeUiHelper.iconComponent(indiIcon, UiIcon.CARAT_1_EAST);
   final WebMarkupContainer tooltipIndicator = new
WebMarkupContainer(indi);
   tooltipIndicator.add(indiIcon);
   tooltipIndicator.add(new SimpleAttributeModifier(style,

 display:none;background-color:#C4C4C4; +
   height:+20+px; +

 
padding-top:+((rowHeight-20)/2-1)+px;padding-bottom:+((rowHeight-20)/2-1)+px;));
   tooltipIndicator.setOutputMarkupId(true);
   add(tooltipIndicator);

   // Container
   WebMarkupContainer container = new WebMarkupContainer(container);
   container.setOutputMarkupId(true);
   add(container);

   PageableListViewDummyUser users = new
PageableListViewDummyUser(user, dummyUsers(), 3){
   /***/
   private static final long serialVersionUID = 1L;

   @Override
   protected void populateItem(ListItemDummyUser item)
{
   item.add(new
SimpleAttributeModifier(style,height:+rowHeight+px;));
   item.add(new Label(name,
item.getModelObject().getName()));
   item.add(new Label(first,
item.getModelObject().getFirst()));
   item.add(new Label(last,
item.getModelObject().getLast()));
   item.add(new TooltipAjaxBehaviour()
   .setDelay(0) // TODO magic number 400ms
   .setPredelay(0)
   .setPosition(Position.bottom_right)
   .setOffset(new Offset(-(rowHeight-1),-15)) //
y,x
   .setTip(tooltipIndicator)
   .setOnBeforeShow(new
IToolTipOnBeforeShowUIEventHandler() {
   private static final long
serialVersionUID = 1L;

   public void onEvent(AjaxRequestTarget
target, Component
component, int top, int left) {
   // do something...
   }
   })
   );
   }
   };
   container.add(users);
   container.add(new AjaxPagingNavigator(navigator, users));
   }

   private ListDummyUser dummyUsers() {
   ListDummyUser ret = new ArrayListDummyUser();
   for (int i=0; i10 ; i++){
   ret.add(new DummyUser(name+i,first+i,last+i));
   }
   return ret;
   }

   private class DummyUser implements Serializable {
   private static final long serialVersionUID = 1L

Re: WicketRuntimeException: component not found on page

2010-12-09 Thread Takeo Hosomi
I attached it to a JIRA.
https://issues.apache.org/jira/browse/WICKET-3248

Thanks,
Takeo Hosomi

On Thu, Dec 9, 2010 at 4:12 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 Attach the zip of the quickstart to a JIRA.

 Jeremy Thomerson
 http://wickettraining.com
 -- sent from my smart phone, so please excuse spelling, formatting, or
 compiler errors

 On Dec 9, 2010 4:15 PM, Takeo Hosomi takeo.hos...@gmail.com wrote:

 Hello,

 I have the same issue which is discussed in the following link:
 http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-component-not-found-on-page-td3055902.html

 I made a quickstart to reproduce it. Any idea on how to workaround
 this behavior?
 I'm using wicket 1.4.12, wiquery 1.1.2, and wiquery-plugin for tooltip
 (other-plugins-1.1.jar).

 Thanks,
 Takeo Hosomi

 Step1.
 Use following source code to reproduce the problem.

 Java:

 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;

 import org.apache.wicket.Component;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import
 org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
 import org.apache.wicket.behavior.SimpleAttributeModifier;
 import org.apache.wicket.markup.html.CSSPackageResource;
 import org.apache.wicket.markup.html.WebMarkupContainer;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.list.ListItem;
 import org.apache.wicket.markup.html.list.PageableListView;
 import org.apache.wicket.markup.html.panel.Panel;
 import org.odlabs.wiquery.ui.themes.ThemeUiHelper;
 import org.odlabs.wiquery.ui.themes.UiIcon;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior;
 import
 org.wiquery.plugin.jquertytools.tooltip.TooltipAjaxBehaviour.IToolTipOnBeforeShowUIEventHandler;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Offset;
 import org.wiquery.plugin.jquertytools.tooltip.TooltipBehavior.Position;

 public class TestPanel extends Panel {
       private static final long serialVersionUID = 1L;

       private static int rowHeight = 40;

       public TestPanel(String id) {
               super(id);
               setOutputMarkupId(true);


  add(CSSPackageResource.getHeaderContribution(TooltipBehavior.CSS));

       // Tooltip Indicator
       final WebMarkupContainer indiIcon = new
 WebMarkupContainer(indiIcon);
       ThemeUiHelper.iconComponent(indiIcon, UiIcon.CARAT_1_EAST);
       final WebMarkupContainer tooltipIndicator = new
 WebMarkupContainer(indi);
       tooltipIndicator.add(indiIcon);
       tooltipIndicator.add(new SimpleAttributeModifier(style,

  display:none;background-color:#C4C4C4; +
                                       height:+20+px; +

  padding-top:+((rowHeight-20)/2-1)+px;padding-bottom:+((rowHeight-20)/2-1)+px;));
       tooltipIndicator.setOutputMarkupId(true);
       add(tooltipIndicator);

           // Container
       WebMarkupContainer container = new WebMarkupContainer(container);
       container.setOutputMarkupId(true);
       add(container);

               PageableListViewDummyUser users = new
 PageableListViewDummyUser(user, dummyUsers(), 3){
               /***/
                       private static final long serialVersionUID = 1L;

                       @Override
                       protected void populateItem(ListItemDummyUser item)
 {
                               item.add(new
 SimpleAttributeModifier(style,height:+rowHeight+px;));
                               item.add(new Label(name,
 item.getModelObject().getName()));
                               item.add(new Label(first,
 item.getModelObject().getFirst()));
                               item.add(new Label(last,
 item.getModelObject().getLast()));
                       item.add(new TooltipAjaxBehaviour()
                               .setDelay(0) // TODO magic number 400ms
                               .setPredelay(0)
                               .setPosition(Position.bottom_right)
                               .setOffset(new Offset(-(rowHeight-1),-15)) //
 y,x
                               .setTip(tooltipIndicator)
                               .setOnBeforeShow(new
 IToolTipOnBeforeShowUIEventHandler() {
                                       private static final long
 serialVersionUID = 1L;

                                       public void onEvent(AjaxRequestTarget
 target, Component
 component, int top, int left) {
                                               // do something...
                                       }
                               })
                       );
                       }
           };
           container.add(users);
           container.add(new AjaxPagingNavigator(navigator, users));
       }

       private ListDummyUser dummyUsers() {
               ListDummyUser ret = new ArrayListDummyUser();
               for (int i=0; i10 ; i++){
                       ret.add

Re: WicketRuntimeException: component not found on page @L

2010-11-24 Thread Alec Swan
The biggest problem with this issue is that it's intermittent. I saw
this happening a few time and I was not able to reproduce it manually
right after I saw it. One time I sat there for 15 minutes repeating
the sequence of clicks that had caused the error just a minute before
that and was not able to reproduce it.

One thing I could do is to take your recommendations, deploy them on
our QA server and let you know if we see this problem again.

Any thoughts on this?

On Tue, Nov 23, 2010 at 10:40 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 start by creating a quickstart that reproduces it so we can better understand 
 it

 -igor

 On Tue, Nov 23, 2010 at 9:38 PM, Alec Swan alecs...@gmail.com wrote:
 I noticed that all component not found on page exceptions were
 thrown for AjaxEditableLabel and AjaxLink components located inside of
 a DataView.

 It seems like other people had a component not found on page problem
 inside of DataView components:
 http://www.mail-archive.com/users@wicket.apache.org/msg08636.html
 http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-td1892913.html#a2229885

 A workaround in JIRA 923 recommends turn off browser caching to solve
 component not found on page problem when using the Back button.
 However, in my case the Back button is not used, instead the DataView
 is refreshed using Ajax.

 Could anybody provide any suggestions on how to fix this problem?

 Thanks

 On Tue, Nov 23, 2010 at 10:58 AM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 We upgraded our app to use Wicket 1.4.13. After that we started getting 
 sporadic WicketRuntimeExceptions about components not being found on a some 
 pages. We made changes to some, but not all pages, which exhibit this 
 behavior. Has anyone else noticed this with 1.4.14? Any ideas on how to 
 troubleshoot this intermittent behavior?

 Here is an example:

 microSitePanel:mainMenuContentPanel:secondMenuItem:1:secondMenuItemLink not 
 found on page
 com.galecsy.lrm.web.wicket.offer.OfferManagementPage[id = 1], listener 
 interface =
 [RequestListenerInterface name=IBehaviorListener, method=public abstract 
 void
 org.apache.wicket.behavior.IBehaviorListener.onRequest()]
     at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:26

 Thanks

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



WicketRuntimeException: component not found on page

2010-11-23 Thread Alec Swan
Hello,

We upgraded our app to use Wicket 1.4.13. After that we started getting
sporadic WicketRuntimeExceptions about components not being found on a some
pages. We made changes to some, but not all pages, which exhibit this
behavior. Has anyone else noticed this with 1.4.14? Any ideas on how to
troubleshoot this intermittent behavior?

Here is an example:

microSitePanel:mainMenuContentPanel:secondMenuItem:1:secondMenuItemLink not
found on page
com.galecsy.lrm.web.wicket.offer.OfferManagementPage[id = 1], listener
interface =
[RequestListenerInterface name=IBehaviorListener, method=public abstract
void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:26

Thanks


Re: WicketRuntimeException: component not found on page

2010-11-23 Thread Alec Swan
I noticed that all component not found on page exceptions were
thrown for AjaxEditableLabel and AjaxLink components located inside of
a DataView.

It seems like other people had a component not found on page problem
inside of DataView components:
http://www.mail-archive.com/users@wicket.apache.org/msg08636.html
http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-td1892913.html#a2229885

A workaround in JIRA 923 recommends turn off browser caching to solve
component not found on page problem when using the Back button.
However, in my case the Back button is not used, instead the DataView
is refreshed using Ajax.

Could anybody provide any suggestions on how to fix this problem?

Thanks

On Tue, Nov 23, 2010 at 10:58 AM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 We upgraded our app to use Wicket 1.4.13. After that we started getting 
 sporadic WicketRuntimeExceptions about components not being found on a some 
 pages. We made changes to some, but not all pages, which exhibit this 
 behavior. Has anyone else noticed this with 1.4.14? Any ideas on how to 
 troubleshoot this intermittent behavior?

 Here is an example:

 microSitePanel:mainMenuContentPanel:secondMenuItem:1:secondMenuItemLink not 
 found on page
 com.galecsy.lrm.web.wicket.offer.OfferManagementPage[id = 1], listener 
 interface =
 [RequestListenerInterface name=IBehaviorListener, method=public abstract void
 org.apache.wicket.behavior.IBehaviorListener.onRequest()]
     at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:26

 Thanks

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketRuntimeException: component not found on page

2010-11-23 Thread Igor Vaynberg
start by creating a quickstart that reproduces it so we can better understand it

-igor

On Tue, Nov 23, 2010 at 9:38 PM, Alec Swan alecs...@gmail.com wrote:
 I noticed that all component not found on page exceptions were
 thrown for AjaxEditableLabel and AjaxLink components located inside of
 a DataView.

 It seems like other people had a component not found on page problem
 inside of DataView components:
 http://www.mail-archive.com/users@wicket.apache.org/msg08636.html
 http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-td1892913.html#a2229885

 A workaround in JIRA 923 recommends turn off browser caching to solve
 component not found on page problem when using the Back button.
 However, in my case the Back button is not used, instead the DataView
 is refreshed using Ajax.

 Could anybody provide any suggestions on how to fix this problem?

 Thanks

 On Tue, Nov 23, 2010 at 10:58 AM, Alec Swan alecs...@gmail.com wrote:

 Hello,

 We upgraded our app to use Wicket 1.4.13. After that we started getting 
 sporadic WicketRuntimeExceptions about components not being found on a some 
 pages. We made changes to some, but not all pages, which exhibit this 
 behavior. Has anyone else noticed this with 1.4.14? Any ideas on how to 
 troubleshoot this intermittent behavior?

 Here is an example:

 microSitePanel:mainMenuContentPanel:secondMenuItem:1:secondMenuItemLink not 
 found on page
 com.galecsy.lrm.web.wicket.offer.OfferManagementPage[id = 1], listener 
 interface =
 [RequestListenerInterface name=IBehaviorListener, method=public abstract void
 org.apache.wicket.behavior.IBehaviorListener.onRequest()]
     at
 org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:26

 Thanks

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread david_

Yes indeed.
Is it possible that wicket is updating for example 2 Component's of 2
different users with the same Component identifiers?
Maybe that's why Wicket is unable to process the action for a link one of
the 2 Components.


2010/6/25 Rodolfo Hansen [via Apache Wicket] 
ml-node+2267816-1187617804-232...@n4.nabble.comml-node%2b2267816-1187617804-232...@n4.nabble.com


 You mean to say the error is sporadic?

 On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:

  Hi
 
  I have a Listener object with a Map in it containing
  org.apache.wicket.Component objects that need to be updated every time
 the
  onChange(); method is called. For example caused by another user's
 actions.
  This works perfectly with wicketstuff-push.
 
  The org.apache.wicket.Component objects that need to be updated, have
  org.apache.wicket.ajax.markup.html.AjaxLink objects.
  Sometimes if I click on the one of the links, I get a
 WicketRuntimeException
  telling me that the Link is not found on the Page.
 
  Any suggestions?




 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2267816.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1066186228-232...@n4.nabble.comml-node%2b1842947-1066186228-232...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2268007.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread Rodolfo Hansen
Yes, it may be something with the wicket session.
Can you send me a quickstart with the issue??

On Thu, 2010-06-24 at 23:22 -0700, david_ wrote:

 Yes indeed.
 Is it possible that wicket is updating for example 2 Component's of 2
 different users with the same Component identifiers?
 Maybe that's why Wicket is unable to process the action for a link one of
 the 2 Components.
 
 
 2010/6/25 Rodolfo Hansen [via Apache Wicket] 
 ml-node+2267816-1187617804-232...@n4.nabble.comml-node%2b2267816-1187617804-232...@n4.nabble.com
 
 
  You mean to say the error is sporadic?
 
  On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:
 
   Hi
  
   I have a Listener object with a Map in it containing
   org.apache.wicket.Component objects that need to be updated every time
  the
   onChange(); method is called. For example caused by another user's
  actions.
   This works perfectly with wicketstuff-push.
  
   The org.apache.wicket.Component objects that need to be updated, have
   org.apache.wicket.ajax.markup.html.AjaxLink objects.
   Sometimes if I click on the one of the links, I get a
  WicketRuntimeException
   telling me that the Link is not found on the Page.
  
   Any suggestions?
 
 
 
 
  --
   View message @
  http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2267816.html
  To start a new topic under Wicket - User, email
  ml-node+1842947-1066186228-232...@n4.nabble.comml-node%2b1842947-1066186228-232...@n4.nabble.com
  To unsubscribe from Wicket - User, click 
  herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.
 
 
 
 




Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-25 Thread david_

If that is the issue, it can be solved by overriding the method that sets
the id? But is it possible?

2010/6/25 Rodolfo Hansen [via Apache Wicket] 
ml-node+2268555-1340689353-232...@n4.nabble.comml-node%2b2268555-1340689353-232...@n4.nabble.com


 Yes, it may be something with the wicket session.
 Can you send me a quickstart with the issue??

 On Thu, 2010-06-24 at 23:22 -0700, david_ wrote:

  Yes indeed.
  Is it possible that wicket is updating for example 2 Component's of 2
  different users with the same Component identifiers?
  Maybe that's why Wicket is unable to process the action for a link one of

  the 2 Components.
 
 
  2010/6/25 Rodolfo Hansen [via Apache Wicket] 
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=2268555i=0[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2268555i=1
  
 
   You mean to say the error is sporadic?
  
   On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:
  
Hi
   
I have a Listener object with a Map in it containing
org.apache.wicket.Component objects that need to be updated every
 time
   the
onChange(); method is called. For example caused by another user's
   actions.
This works perfectly with wicketstuff-push.
   
The org.apache.wicket.Component objects that need to be updated, have

org.apache.wicket.ajax.markup.html.AjaxLink objects.
Sometimes if I click on the one of the links, I get a
   WicketRuntimeException
telling me that the Link is not found on the Page.
   
Any suggestions?
  
  
  
  
   --
View message @
  
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2267816.htmlhttp://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2267816.html?by-user=t
   To start a new topic under Wicket - User, email
   [hidden email] 
   http://user/SendEmail.jtp?type=nodenode=2268555i=2[hidden
 email] http://user/SendEmail.jtp?type=nodenode=2268555i=3
   To unsubscribe from Wicket - User, click here
 http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2by-user=t.

  
  
  
 




 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2268555.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1066186228-232...@n4.nabble.comml-node%2b1842947-1066186228-232...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=bWV1bGVtYW5zLmRhdmlkQGdtYWlsLmNvbXwxODQyOTQ3fC0xOTcyOTcxMjQ2.




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-causing-WicketRuntimeException-component-not-found-on-Page-tp2266008p2268581.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-24 Thread Rodolfo Hansen
You mean to say the error is sporadic?

On Wed, 2010-06-23 at 20:16 +0200, David Meulemans wrote:

 Hi
 
 I have a Listener object with a Map in it containing
 org.apache.wicket.Component objects that need to be updated every time the
 onChange(); method is called. For example caused by another user's actions.
 This works perfectly with wicketstuff-push.
 
 The org.apache.wicket.Component objects that need to be updated, have
 org.apache.wicket.ajax.markup.html.AjaxLink objects.
 Sometimes if I click on the one of the links, I get a WicketRuntimeException
 telling me that the Link is not found on the Page.
 
 Any suggestions?




wicketstuff-push causing WicketRuntimeException component not found on Page

2010-06-23 Thread David Meulemans
Hi

I have a Listener object with a Map in it containing
org.apache.wicket.Component objects that need to be updated every time the
onChange(); method is called. For example caused by another user's actions.
This works perfectly with wicketstuff-push.

The org.apache.wicket.Component objects that need to be updated, have
org.apache.wicket.ajax.markup.html.AjaxLink objects.
Sometimes if I click on the one of the links, I get a WicketRuntimeException
telling me that the Link is not found on the Page.

Any suggestions?