A quick sketch of what I need now is:
- MessageList which will take list of messages and render HTML list from them;
- HTMLListItem which will be a child element of MessageList. It will take concrete Message and render it.
This is basically all. I'm starting and I will refactor the solution as I will stop.
JSF reference implementation have no support for HTML list. I looked at Myfaces Tomahawk and fortunately there is HTMLDataList component I can use.
Next: Working on UI