I can imagine those two components together is asking for trouble... The easiest way to solve this is to not use feedbackpanels at all, but instead a custom mechanism (just labels that work on a shared model or even use page.getFeedbackMessages for instance). But that's kind of a lame answer from us I guess. Alternatively, you could write a simple quickstart project with what you want (or a test case might even be better) and we can take a look at if/ how/ what we can do to make Wicket handle this or what a good workaround is.
Eelco On 2/15/07, Aaron Hiniker <[EMAIL PROTECTED]> wrote: > I am trying to create FeedbackPanel within each ListView component. The > problem is how the visibility is handled... from what I understand, the > order of events occurs like this: > > updateFeedback is called on my FeedbackPanel > ListView re-creates all of my components, thus ignoring the visiblity > flag set in updateFeedback > > Because of this, my feedback panels never show. > > If i set ListView#setReuseItems( true ), I get an NPE: > > Caused by: java.lang.NullPointerException > at wicket.markup.html.list.ListView.renderItem(ListView.java:701) > at wicket.markup.html.list.ListView.onRender(ListView.java:664) > at wicket.Component.render(Component.java:1726) > at wicket.MarkupContainer.renderNext(MarkupContainer.java:1357) > at > wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:948) > at > wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:882) > at wicket.Component.renderComponent(Component.java:1941) > ... 116 more > > > > How can I get this to work (preferably without ListView#setReuseItems( > true )) ?? > > Aaron > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user