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 HashMaplt;String,Listgt; 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

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(); HashMapString,List messagesByCategory = getModelObject(); add(new ListView(messagesByCategory.keySet()){ populateItem(){

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 HashMaplt;String,Listgt; messagesByCategory = getModelObject(); the error is that getModelObject() is undefined for the custom class. Thanks -- View this message in context:

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 HashMapString,List. On Thu, May 12, 2011 at 10:41 AM, eugenebalt eugeneb...@yahoo.com wrote: Do I also have to override getModelObject()? If so, how? I'm getting

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 eugeneb...@yahoo.com wrote: I have a

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:

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