Hi, the code I sent was only to give you an idea of how to use
ListView. I understood by your previous mails that you already have a
HashMap.
On Thu, May 12, 2011 at 10:41 AM, eugenebalt wrote:
> Do I also have to override getModelObject()? If so, how?
>
> I'm getting an error in your code on the
Do I also have to override getModelObject()? If so, how?
I'm getting an error in your code on the line
HashMap messagesByCategory = getModelObject();
the error is that getModelObject() is undefined for the custom class. Thanks
--
View this message in context:
http://apache-wicket.1
ListView is a good component to present lists.
e.g.
class MyFeedbackPanel extends Panel implements IFeedback{
onInitialize(){
super.onInitialize();
HashMap messagesByCategory = getModelObject();
add(new ListView(messagesByCategory.keySet()){
populateItem(){
item.add(new Label(cate
But what is responsible for actually presenting (listing) the items?
My Model can be a HashMap that maps a category to a list
of errors in that category. But what do I have to override to make the
feedback panel present that hierarchical list based on the HashMap?
--
View this messag
By implementing IFeedback you are just comunicating about your type
goal: be a feedback. Imagine that one can visit a page adding
components implementing IFeedback to an AJAX request target.
About handle messages, FeedbackPanel is just presenting messages in
session, take a look at FeedbackMessages
So I need to write my own class that extends Panel and implements IFeedback?
I just looked in the IFeedback javadoc, it doesn't have any methods, it's
just a marker. So how would I handle my messages?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-with-
FeedbackPanel is just a panel implementing IFeedback interface and
presenting messages in session. You can write a completely different
panel implementing IFeedback with custom presentation. It is nothing
special.
On Wed, May 11, 2011 at 4:59 PM, eugenebalt wrote:
> I have a FeedbackPanel in my