1 Reply Latest reply on Oct 24, 2008 8:19 PM by Clint Popetz

    Wicket components not working on Seam-2.1.0.GA when extending other wicket components

    Filippo Guerzoni Newbie


      I switched from Seam-2.1.0.A1 to Seam-2.1.0.GA and I found that now Wicket components which extend other wicket components (which extend WebPage) do not work anymore.
      e.g. when Comp2 extends Comp1 which extends WebPage, Comp1 works fine but Comp2 when called produces the following error:

      Caused by: java.lang.NullPointerException
           at Comp2.getEnclosingInstance(Comp2.java)
           at org.jboss.seam.wicket.ioc.BijectionInterceptor.injectEnclosingInstances(BijectionInterceptor.java:37)
           at org.jboss.seam.wicket.ioc.BijectionInterceptor.beforeInvoke(BijectionInterceptor.java:22)
           ... 46 more

      Looking inside the instrumented objects, I found that Comp1.handler point to WicketHandler while Comp2.handler points to null, which probably causes the error.
      To replicate the problem try to extend some wicket component (which extends WebPage).

      Any suggestions?
      thanks in advance


      My environment:
      JBoss-4.2.3.GA, Seam-2.1.0.GA, Wicket-1.3.4, ubuntu-8.04.