I've added a jar file and a .tld file to:
http://www.geocities.com/jonathan_bingham/jsp
(As with the .jsp files, the name is in fact listed as .txt. You'll have to
rename it to use it. A geocities quirk.)
This means you can now try out the tag!
Cheers,
Jonathan
p.s. -
For anyone interested, the jar and tld include definitions for several tags
in addition to ViewTableTag.
These include:
CreateTableTag - for managing table initialization,
scoping issues, and dissociating the table model
from the view (for, e.g., sorting)
SortTableTag - for sorting tables;
most useful when integrated with ViewTableTag
via a hyperlink on column headers
FormatTag - for applying any java.text.Format
to a static or runtime value;
useful also in localization.
***
IDEAL FOR USER FORM INPUT
SetPropertyTag -
parses any value using any java.text.Format
before invoking the bean method; doesn't throw
exceptions if the method invocation fails;
allows logging of exception messages for display to users;
avoids namespace collisions possible in jsp:setProperty
***
GetPropertyTag - applies any java.text.Format
to values retrieved from a JavaBean;
ProcessRequest - a flow-control tag for processing
HTTP requests via a single 'master' JSP; it
delegates to one or more controls (implementing a
one-method interface), each of which accepts
a parameters object (any arbitrary JavaBean);
IMO, the architecture is much more
transparent than in the Java PetStore demo;
For all tags, I can put up samples, JavaDocs and other info, if people are
interested.
-----Original Message-----
From: Peter Giannopoulos [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 1:56 PM
To: [EMAIL PROTECTED]
Subject: RE: tables?
Wow, I am VERY interested. I started created a similar tag for myself only a
day ago. I would love to try yours before I proceed. Do you think that's
possible?
----------------------------------------------------------
Peter Giannopoulos, Software Developer
Gemplus Software, Advanced Projects Group
Phone: +15147322434
Fax: +15147322401
Gemplus Card International, Http://www.gemplus.fr
I hear and I forget,
I see and I remember,
I do and I understand.
-----------------------------------------------------------
-----Original Message-----
From: jonathan [mailto:[EMAIL PROTECTED]]
Sent: April 26, 2001 4:35 PM
To: [EMAIL PROTECTED]
Subject: RE: tables?
JSP table tag:
For javadoc, sample jsp and sample output, see:
http://www.geocities.com/jonathan_bingham/jsp
(The jsp files are in fact saved as .txt.)
If this is potentially useful to others, let me know. I can send source.
Cheers,
Jonathan
-----Original Message-----
From: Stefan Riegel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: AW: tables?
Hi Jonathan,
I would like to see more about Your library too.
Regards
Stefan Riegel
> -----Urspr�ngliche Nachricht-----
> Von: jonathan [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 26. April 2001 04:44
> An: [EMAIL PROTECTED]
> Betreff: tables?
>
>
> Hi, all!
>
> I'm not sure what the status is on any efforts to create a
> generalized
> table tag. I submitted an RFE to javasoft, and they'd asked me to ask
> around, but that was 2 mo ago.
> I have a fully implemented table tag I've found extremely
> useful and have
> used again and again. Here's a quick example, from a recent
> client project:
>
> <% javax.swing.table.TableModel table = SomeTableModel(); %>
> <tbl:viewTable
> table="<%= table %>"
> columnHeaderAttributes="id=columnheader"
> evenRowAttributes="id=evenrow"
> oddRowAttributes="id=oddrow"
> rowSelectionMode="single"
> rowSelection="studyID=$value"
> selectedRows="0"
> editable="false"
> />
>
> There are options for generating CSV, tab-delimited and ASCII tables;
> formatting table cells, making table cells editable,
> hyperlinking cells and
> headers, paginating large tables, and more.
> Let me know if anyone would like more details, javadocs,
> sourcecode, etc.
>
> Cheers,
> Jonathan
>