Hey,
I created this panel:
<html>
<head>
    <wicket:head>
        <wicket:link>

        </wicket:link>
    </wicket:head>
</head>
<body>
<wicket:panel>
    <div id="accordion">
            <h3><a href="#">First header</a></h3>

            <div>First content</div>
        <h3>
            <a href="#">Second header</a>
        </h3>
            <div>Second content</div>
    </div>
</wicket:panel>
</body>
</html>

This is supposed to be jQuery Accordion component.

public class NavigationPanel extends Panel {

    public NavigationPanel(String id) {
        super(id);
    }
    
}

And here is the main page:

<link href="jquery-ui-1.7.1.custom.css" 
rel="stylesheet" type="text/css"/>
<script href="jquery-1.3.2.min.js" 
type="text/javascript"/>
<script href="jquery-ui-1.7.1.custom.min.js"
 type="text/javascript"/>
<div class="yui-u first">
     <div wicket:id="navo">Content</div>
</div>

public Index() {
        add(new NavigationPanel("navo"));
}

But I'm getting the following exception:
WicketMessage: Exception in rendering component: 
[MarkupContainer [Component id
= _link3]]

Root cause:

java.lang.NullPointerException
at
org.apache.wicket.markup.resolver.
AutoLinkResolver$PathInfo.<init>(AutoLinkResolver.java:249)


Page

      [Page class = domain.Index, id = 0, version = 0]:
      #         Path    Size    Type    Model Object
      1         navo            641 bytes       domain.NavigationPanel          
  



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

Reply via email to