How to show a HTML table
Good Morning. I need show some data that i get from a data base and show it in a HTML table in some place that i defined, how can i do it? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How show data from database in a html table
Hi, That are that i need, how i show some data that i get from a database in a simple html table? and how i do tu put it in some place that i defined? Thanks PD: Excuse my English. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to show a HTML table
Thanks for your question. if i get: ResultSet rs = stmt.executeQuery( SELECT * FROM MyTable ); i can set: flexTable.setWidget(0,0, rs) ?? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to show a HTML table
I would say FlexTable would be the easiest. FlexTable flexTable = new FlexTable(); flexTable.setWidget(0,0, Widget) and so on.. this will create an HTML Table for you where Widget can be anything you like, int, long, String, Image, etc.. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to show a HTML table
ResultSet isn't a gwt compatible class, so no that won't work and probably never will. Take a look at http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable To get an idea of how to build a celltable. You also might want to start out here: http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to show a HTML table
You would have to iterate through the ResultSet int rowCnt = 0; while(rs.next) { int myIntValue = rs.getInt(1); String myStringValue = rs.getString(2); // and so on... for each of the values you want in the table. // then you can add the values to the table. int colCnt = 0; flexTable(rowCnt, colCnt, new Label(myIntValue + )); colCnt = colCnt + 1; flexTable(rowCnt, colCnt, new Label(myStringValue)); // and so on... // at the end increment rowCnt to move down one row. rowCnt = rowCnt + 1; } then add flexTable to whatever widget you want it to show up in. Cheers, David On Apr 11, 3:04 pm, Ahrom brah...@gmail.com wrote: Thanks for your question. if i get: ResultSet rs = stmt.executeQuery( SELECT * FROM MyTable ); i can set: flexTable.setWidget(0,0, rs) ?? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
HTML Table
Hi to all I am using HTML table, and for setting title of the table I am using setTitle(My Table); But it is not working: Here is my code: HTMLTable table = new Grid(rows, 2); table.setTitle(My Table); Is there other property need to be set? Please help Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HTML Table
Why are you doing HTMLTable table = new Grid(rows, 2);? Try doing Grid table = new Grid(rows,2); or HTMLTable table = new HTMLTable(rows, 2); (assuming syntax for HTMLTable) On Aug 9, 3:25 am, Sanjay Jain snj...@gmail.com wrote: Hi to all I am using HTML table, and for setting title of the table I am using setTitle(My Table); But it is not working: Here is my code: HTMLTable table = new Grid(rows, 2); table.setTitle(My Table); Is there other property need to be set? Please help Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HTML Table
Hi, The name of that method is a bit misleading. HTMLTable inherits setTitle from the UIObject class, and from the javadoc: http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/UIObject.html#setTitle(java.lang.String) this method: Sets the title associated with this object. The title is the 'tool- tip' displayed to users when they hover over the object. Are you seeing that? Thanks, Dan On Aug 9, 1:25 am, Sanjay Jain snj...@gmail.com wrote: Hi to all I am using HTML table, and for setting title of the table I am using setTitle(My Table); But it is not working: Here is my code: HTMLTable table = new Grid(rows, 2); table.setTitle(My Table); Is there other property need to be set? Please help Thanks in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
HTML table border problem
Hello all, I am having a problem with borders in html and GWT The code is in my html file: table align=center cell-spacing=0 cell-padding=0 border =0 tr border =0 cell-spacing=0 cell-padding=0td colspan=2img src = images/top.png//td/tr tr border =0 cell-spacing=0 cell-padding=0 td id=leftContainer VALIGN=TOP border =0 cell-spacing=0 cell-padding=0/td td id=rightContainer VALIGN=TOP border =0 cell-spacing=0 cell-padding=0/td /tr tr border =0 cell-spacing=0 cell-padding=0td colspan=2img src = images/bottom.png//td/tr /table leftContiner and rightContainer are populated by GWT and each contain VerticalPanels The problem is that there is a gap between the top and middle row and middle and bottom row. The background colour is bleading through. As you can see from above I am explictly setting border width in an effor to try and get rid of this. Unfortunately everything I try does not seem to work - I still have the gap between the rows. Any help would be appreciated. Thanks Richard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
How to get the width of a cell in a HTML table/Grid
The width of a widget contained it a cell can be gotten, but how is the width of a cell or column gotten? Let's say all cells of a Grid contain text. How is the width of a column or cell gotten? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to get the width of a cell in a HTML table/Grid
See: UIObject.getOffsetWidth: return DOM.getElementPropertyInt(getElement(), offsetWidth); Just get your td element (do it yourself from the table or yourwidget.getParent().getElement()) and use: return DOM.getElementPropertyInt(element, offsetWidth); On Jan 9, 12:59 pm, sssmack jimc...@gmail.com wrote: The width of a widget contained it a cell can be gotten, but how is the width of a cell or column gotten? Let's say all cells of a Grid contain text. How is the width of a column or cell gotten? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Scrolling an HTML Table
To whom that it may concern, I have a problem. I have an HTML panel that I need to always be automatically scrolling to its bottom. I have it on autoscroll of course but, I need it to scroll down every opportunity that it can - if you know what I mean. I just want to know if I can do this without using a scroll panel. Thanks, Sandile --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Scrolling an HTML Table
Judging from your other message this is for an IM-like application? Why not use a ScrollPanel, and every time you add text call its ScrollToBottom() method. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---