This isn't really a Seam question, more a general JSF one but I thought someone here could give me a shove in the right direction.
At the moment I have a RichFaces datatable displaying some information on the page. What I would like to do is to have a link just above the table along the lines of
Add New XYZ. When you click on this link, a new row is inserted at the start of the datatable containing input fields for you to enter data. Here's an example of what I mean from my Remember The Milk to-do list
Does anyone know of any easy way to do this? So far best I have come up with is this:
addmodeboolean to true and then adds a blank item to the list that my datatable iterates over
This will probably work but it seems really messy. I guess I could do it programmatically but I'd really rather avoid it if I can.
I would probably do (1).