  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Pattern for sorting columns of an html table | Pattern for sorting columns of an html table 2003-12-25 - By Satyan Prakash
Back J2EEPATTERNS-INTEREST Digest - 23 Dec 2003 to 24 Dec 2003 (#2003-107)Hi All,
I think a solution can be achieved in the right way of we think about sorting the data source rather than HTML table. Iterator pattern can be fruitfully applied on top on the Collection objects in which the original data fetched from the server is stored. JDK gives lot of apis to sort collections. After that all you have to do is to Iterate over the collection. Once you have this Iterator in place it does not matter whether you use it in a HTML table on in an Applet.
Regards, Satyan Prakash Consultant Siemens, Gurgaon
-- -- Original Message -- -- From: Automatic digest processor To: Recipients of J2EEPATTERNS-INTEREST digests Sent: Thursday, December 25, 2003 7:00 AM Subject: J2EEPATTERNS-INTEREST Digest - 23 Dec 2003 to 24 Dec 2003 (#2003-107)
J2EEPATTERNS-INTEREST Digest - 23 Dec 2003 to 24 Dec 2003 (#2003-107)
Table of contents: a.. Pattern for sorting columns of an html table a.. Pattern for sorting columns of an html table a.. Pattern for sorting columns of an html table (12/24) From: Charles Bradley <cbradley2@(protected)>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Browse the J2EEPATTERNS-INTEREST online archives.
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>J2EEPATTERNS-INTEREST Digest - 23 Dec 2003 to 24 Dec 2003 ( #2003-107)</TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1276" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ece9d8> <DIV><FONT face=Arial size=2>Hi All,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I think a solution can be achieved in the right way of we think about sorting the data source rather than HTML table. Iterator pattern can be fruitfully applied on top on the Collection objects in which the original data fetched from the server is stored. JDK gives lot of apis to sort collections. After that all you have to do is to Iterate over the collection. Once you have this Iterator in place it does not matter whether you use it in a HTML table on in an Applet.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Regards,</FONT></DIV> <DIV><FONT face=Arial size=2>Satyan Prakash</FONT></DIV> <DIV><FONT face=Arial size=2>Consultant</FONT></DIV> <DIV><FONT face=Arial size=2>Siemens, Gurgaon</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=LISTSERV@(protected) href="mailto:LISTSERV@(protected)">Automatic digest processor</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=J2EEPATTERNS-INTEREST@(protected) href="mailto:J2EEPATTERNS-INTEREST@(protected)">Recipients of J2EEPATTERNS-INTEREST digests</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 25, 2003 7:00 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> J2EEPATTERNS-INTEREST Digest - 23 Dec 2003 to 24 Dec 2003 (#2003-107)</DIV> <DIV><BR></DIV> <TABLE class=header cellSpacing=0 cellPadding=0 width="100%"> <TBODY> <TR> <TD> <TABLE borderColor=#99ccff height=25 cellSpacing=0 borderColorDark=#003366 cellPadding=0 width="100%" borderColorLight=#6699ff background=http://archives.java.sun.com/archives/images/ls2-header.gif border=3> <TBODY> <TR> <TD borderColorLight=#0066ff borderColorDark=#3399ff> <TABLE cellSpacing=0 width="100%" border=0> <TBODY> <TR> <TD noWrap width="100%"><A href="http://www.lsoft.com" target=_blank><IMG alt=L-Soft src="http://archives.java.sun.com/archives/images/ls2-lsoft .gif" border=0></A> <IMG alt="LISTSERV(R) 1.8e" src="http://archives.java.sun.com/archives/images/ls2-18e .gif" border=0> </TD></TR></TBODY></TABLE></TD></TR></TBODY>< /TABLE> <CENTER> <H2>J2EEPATTERNS-INTEREST Digest - 23 Dec 2003 to 24 Dec 2003 (#2003-107)</H2></CENTER> <P> <H3>Table of contents:</H3> <UL> <LI><A href="#S1">Pattern for sorting columns of an html table</A> </LI></UL> <OL><A name=S1> <LI>Pattern for sorting columns of an html table</A> <UL> <LI><A href="cid:5007@(protected)">Pattern for sorting columns of an html table</A> (12/24)<BR><B>From:</B> Charles Bradley <<A href="mailto:cbradley2@(protected)">cbradley2@(protected)</A>></LI>< /UL></LI></OL> <P> <HR> <A href="http://www.lsoft.com/LISTSERV-powered.html"><IMG alt="Powered by LISTSERV(R)" src="http://archives.java.sun.com/archives/lpowered.gif" align=right border=0></A> <FONT size=-1>Browse the <A href="http://archives.java.sun.com/cgi-bin/wa?LIST=J2EEPATTERNS -INTEREST">J2EEPATTERNS-INTEREST online archives.</A> </FONT></TR></TBODY></BLOCKQUOTE></BODY></HTML> ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |