I'm more than happy to try and answer your questions - but you'll probably get better support in the future from using the Mailing Lists or Forums at http://displaytag.sf.net. I've cc'd the user's list.
See answers below...
On Mar 11, 2004, at 2:32 PM, [EMAIL PROTECTED] wrote:
Matt,
Myself and a few others have been goofing with the Display Tag and have a couple questions that you can hopefully answer, forward to somebody else who might be able to answer, or just point us to another spot for a possible answer.
First, and foremost in my mind, is there a way to get displaytag to work with something like a collection of maps, and still be sortable (just using String sorting)? Like an ArrayList of HashMaps (HashMap == table row, each entry key-pair is ColumnName=Value). We produce that type of structure from JDBC ResultSets a lot for reporting or passing data. Our internal library has a routine that generates this return type when passed an SQL SELECT statement, so it would be great to take advantage of it.
Fabrizio added support for Maps yesterday - allowing you to now use JSTL's SQL Tag to get your results. I'm about to post a blog entry on this - or you can checkout http://demo.raibledesigns.com/appfuse/users.jsp.
Even more powerful would be an on-the-fly JavaBean creator that implements Comparable on all the columns, taking the JDBC ResultSet metadata and using it to identify the Java types to use for each column. I know, I know, we should be using JDO, or iBatis, or something else that would create our JavaBeans automaticly out of the persistence layer, but our hands are tied to JDBC for the time being. Anyway, if you know of something like this, I'm totally interested.
Next up is whether the markup returned by displaytag is completely XHTML compliant? Just curious -- it appears to be in my experiments, but wanted to check. We use a PDF filter that takes XML input and I'm going to experiment with using displaytag with it. Also, is there a way to get a table header without the link (for sorting)?
It *does* produce completely valid XHTML - I validated one of my pages today. To get headers w/o the links, don't put sort="true" on your column headers.
Finally, is there a definitive location to get the latest official displaytag releases? I see sourceforge, displaytag.org, and edhill.its.uiowa.edu/display/. I know you talk about it a lot, and I think you mentioned maybe moving to java.net??
Moving to java.net was for my AppFuse project - not for the displaytag. The displaytag project will (most likely) always be at SourceForge. www.displaytag.org is merely to host the example app. Ed Hill's site is outdated - we should probably get him to do a simple redirect to http://displaytag.sf.net.
Matt
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

