Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread Pedro Santos
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

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread eugenebalt
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

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread Pedro Santos
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

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread eugenebalt
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

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread Pedro Santos
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

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread eugenebalt
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-

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread Pedro Santos
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