Issue solved,
I'm using href instead of src attribute of script tag
HHB wrote:
>
> Hey,
> I created this panel:
> <html>
> <head>
> <wicket:head>
> <wicket:link>
>
> </wicket:link>
> </wicket:head>
> </head>
> <body>
> <wicket:panel>
> <div id="accordion">
> <h3> # First header </h3>
>
> <div>First content</div>
> <h3>
> # Second header
> </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: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/NPE-%3A-Exception-in-rendering-component-tp22845707p22846458.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]