Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

display a grid with struts/tiles?

Thread view: 
Elhanan - 29 Oct 2005 22:40 GMT
hi... is there a way i can use to display an sortable, scrollable, html
table with struts?
Roedy Green - 31 Oct 2005 04:16 GMT
>hi... is there a way i can use to display an sortable, scrollable, html
>table with struts?

There is no such thing as a sortable table in HTML.  You have to
resend the table if you change the order.

You could however display the table with a JApplet JTable. Then you
can to the sorting, changing inserting etc an the client without
sending the whole table each time.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

shawnews - 31 Oct 2005 05:34 GMT
> hi... is there a way i can use to display an sortable, scrollable, html
> table with struts?

A table can be sorted client side with javascript in some cases,( colspans
and rowspans are problematic  with the scripts I've tried) else you'll need
to do it server side.  The table can be placed inside div tags with the
style set to "overflow: auto" to make it scrollable
Roedy Green - 31 Oct 2005 10:45 GMT
>A table can be sorted client side with javascript in some cases,( colspans
>and rowspans are problematic  with the scripts I've tried) else you'll need
>to do it server side.  The table can be placed inside div tags with the
>style set to "overflow: auto" to make it scrollable

I think it would be masochistic to implement a full JTable in
JavaScript where the server could insert, delete, replace, resort etc.

The easiest way to do it with Java script would be to send the row
data, and three int[] giving the orderings for three different sorts.
Then have JavaScript just select the ordering and display in that
order.  That way you don't have to write  a sort and comparators in
JavaScript. The first array would just be the numbers { 0, 1 , 2 ... }
and you would not actually bother to transmit it.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.