Andy Pruitt wrote:

1) If there is a natural primary key, like a phone_id, then I would use that in a hidden field.

2) If there isn't a natural primary, would access to the index number suffice? Take a look at
http://java.sun.com/webservices/docs/1.0/api/javax/servlet/jsp/jstl/core
/LoopTagStatus.html


this is what the JSTL tags expose via the varStatus attribute.  I'm
thinking
about about proposing a varStatus implementation for displaytag, it
would
be useful for a large set of problems.

I have to admit, I'm overall skeptical of having a tag that did CRUD on
the list data itself. IMHO, it seems like this is either business logic or custom control logic that is best left to the individual apps.


Maybe displaytag should have a third party extensions page (like struts
does
at http://jakarta.apache.org/struts/resources/extensions.html) that
links to
various useful extensions. Extensions are non-core, but semi-endorsed
code that may or may not migrate to the core (a la Validator). My portlet
hack would likely end up there; I think this proposal might also fit there as well.




I'm not sure I understand your point. The only way to create, say a text area in a cell with display tag is to have a decorator to do this. The decorator will then have to create the HTML code for the text area. For this text area to be usable as a form input I need to be able to specify the name - the name to be used has to be specified in the HTML for the text area and therefore needs to be know in the decorator. If the decorator can't work out what to call the text area you cannot use it for the form.

Using tables with editable areas is a common solution to data entry - very common. The reason I am so interested in extending Display Tag to use this is that 90% of the data entry in the webapp I develop at work uses table-based display. I'm not even sure I'm asking for the display tag to do much more than it was designed for. I want to write a decorator to do this, but the decorator doesn't get enough contextual information to be able to name the form controls. If I had a similar amount of information as is provided to Swing's TableCellRenderer it would be a very simple matter to write the required ColumnDecorator.

--
sam
http://www.magpiebrain.com/




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to