Ahh, ok.  This helped.

I changed my implementation to use a subclass of
FormComponentFeedbackIndicator and it seems to work great... and I
created a wrapper to 3 of these panels to display different panels for
Errors, Warnings and Info messages (red, yellow, green boxes), and also
filter messages relative to a parent component, which allows me to use
it for an individual listItem. 

Works perfect now, thanks for the pointers

Aaron


Jonathan Locke wrote:
> Maybe I don't understand this quite, but there was an intention to make
> it possible to add feedback messages at the component level.  You ought
> to be able to add a FormComponentFeedbackBorder to any form component
> even in a list view, for example.  That feedback border normally would 
> contain a little red asterisk, but if you made your own derived class, it
> could
> also show the error for that component.
>
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/FormComponentFeedbackBorder.html
>
> The other one that might work is attaching a feedback indicator for each 
> form component in the list.  This works by filtering available feedback 
> messages based on the component.
>
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/validation/FormComponentFeedbackIndicator.html
>
> But feedback panels is probably not the way to do this in any case.
>
>
> Eelco Hillenius wrote:
>   
>> 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
>>
>>
>>     
>
>   

-------------------------------------------------------------------------
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

Reply via email to