I have to forget IFRAMEs! to get compatible with netscape and IE you have to follow Matts solution with two tables. one for the header and one for the body. the body-table is put in an div-block with height and overflow styles applied. the problem with two tables having the same number of columns and the same column-widths remains. you could a) do the splitting of the table in javascript b) do the column-width copy from one to the other table in javascript c) mimic the browsers width calculation during servlet execution (guessing the font size ;.)) and set constant column-widths for both tables
Thx! are there any plans to make this a feature of displaytag? e.g. <display:table name="list" scrollable="true" /> Cheers carsten -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matt Raible Sent: Donnerstag, 6. Mai 2004 17:34 To: [EMAIL PROTECTED] Subject: RE: [displaytag-devel] Scrollable Tablerows via IFRAME Unfortunately, this does not work in IE, at least not on tbody. It works fine on <div>, hence my workaround: http://homepage.mac.com/mraible/demos/staticHeaders.html Matt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of John York > Sent: Thursday, May 06, 2004 9:15 AM > To: [EMAIL PROTECTED] > Subject: RE: [displaytag-devel] Scrollable Tablerows via IFRAME > > > Well, I just tried a simple thing in Mozilla that appears to > work fine > with CSS. I set the displaytag:table styleClass="testClass" > and then added > this into the stylesheet: > > table.testClass tbody { > height: 100px; > overflow: auto; > } > > And the scrolling just worked. I'm not sure if IE supports > this or not... > > > On Thu, 6 May 2004, Steckel, Carsten wrote: > > > > > Hi John, > > > > i have iframe working with netscape >6.2 and IE >5.0 ;-) > > the css idea interests me: how would i add a scrollbar to the table > > via stylesheet? > > > > cheers > > carsten > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > Behalf Of John > > York > > Sent: Donnerstag, 6. Mai 2004 14:36 > > To: [EMAIL PROTECTED] > > Subject: Re: [displaytag-devel] Scrollable Tablerows via IFRAME > > > > > > Does IFRAME work properly for all browsers? I recall it not working > > under Netscape in the past. > > > > Can't you just update your stylesheet to add a scroll bar to the > > table? Of course, CSS has it's compatability issues as well... > > > > John > > > > > > Steckel, Carsten wrote: > > > > >Hi all, > > > > > >before finding the "displaytag" table renderer, I have > maintained my > > >own little scrollable (sortable,...) table renderer. scrollable is > > >not equal pageable. I would like to add the feature of scrollable > > >content (rows) via an iframe calling a jsp (rows.jsp). if > someone has > > >a better (javascript free) idea of scrolling the rows of > the table, > > >please feel free to share it. > > > > > >details: the table will be rendered as a html-table with > the header > > >as TRs, TDs and a TD containing the IFRAME. the rows.jsp > is doing the > > >rendering of the rows. the iframe does the scrolling. > > > > > >is it doable or would this feature break the way the displaytag is > > >designed? it is more then decoration, i assume ;-) > > > > > >cheers > > >carsten > > > > > > > > > >********************************************************************* > > >****************************** > > >The information in this email is confidential and may be > legally privileged. Access to this email by anyone other > than the intended addressee is unauthorized. If you are not > the intended recipient of this message, any review, > disclosure, copying, distribution, retention, or any action > taken or omitted to be taken in reliance on it is prohibited > and may be unlawful. If you are not the intended recipient, > please reply to or forward a copy of this message to the > sender and delete the message, any attachments, and any > copies thereof from your system. > > > >************************************************************* > ************************************** > > > > > > > > >------------------------------------------------------- > > >This SF.Net email is sponsored by Sleepycat Software > > >Learn developer strategies Cisco, Motorola, Ericsson & > Lucent use to > > >deliver higher performing products faster, at low TCO. > > >http://www.sleepycat.com/telcomwpreg.php?From=dnemail3 > > >_______________________________________________ > > >displaytag-devel mailing list > [EMAIL PROTECTED] > > >https://lists.sourceforge.net/lists/listinfo/displaytag-devel > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Sleepycat Software > > Learn developer strategies Cisco, Motorola, Ericsson & > Lucent use to > > deliver higher performing products faster, at low TCO. > > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > > _______________________________________________ > > displaytag-devel mailing list [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/displaytag-devel > > > > > ********************************************************************** > > ***************************** > > The information in this email is confidential and may be > legally privileged. Access to this email by anyone other > than the intended addressee is unauthor > > -- > John York > Software Engineer > CareerSite Corporation > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?> From=osdnemail3 > > > _______________________________________________ > displaytag-devel mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/displaytag-devel > ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel *************************************************************************************************** The information in this email is confidential and may be legally privileged. Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *************************************************************************************************** ------------------------------------------------------- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel