Monday, October 23, 2006

Implementation Idea

  • แทนที่จะสร้าง Widget ที่ฝั่ง Client เพื่อแสดงข้อมูล ก็ส่ง HTML String ทั้งก้อนมาจาก Server เลย

Sunday, October 15, 2006

GWT Round up!

  • String[] can't serialize!
  • You can't use "new" to widget variable that was attached to panel already! You will lose reference to that widget because "new" will generate new reference differ from old one. So, use other function to change content inside the widget.
  • Use "implements IsSerializable" to make your class serializable.
  • Use show and hide methods in PopupPanel to make PopupPanel modal. Otherwise, it will not be modal.
  • [Client] GWT.log(str, null), [Server] this.log(str)

Saturday, October 14, 2006

list view idea

ในหน้าที่แสดงรายการของข้อมูล ให้แสดงข้อมูลเป็น Text ธรรมดา แต่เมื่อผู้ใช้ Click ไปที่ข้อมูลนั้น จะเปลี่ยนให้เป็น Textbox พร้อมกับ Hilight ข้อความทั้งหมดไว้

ทั้งนี้ก็เพื่อแก้ปัญหา ข้อความที่ยาวเกิน โดยตอนที่แสดงเป็น Text ธรรมดานั้น ถ้ายาวเกินก็ใส่ "..." ไปด้านท้าย (? จะเช็คยังไง)

Friday, October 13, 2006

How to add MySQL driver to GWT

  1. Download MySQL Connector/J from Mysql.com
  2. Find GWT Directory from "YourProject-shell.cmd" file in your project directory, open it by text editor and find sometimg look like this "C:/MyDirectory/gwt-windows-x.x.x/gwt-user.jar" -- x.x.x is WebToolkit version number. Your GWT Directory is "C:/MyDirectory/gwt-windows-x.x.x/"
  3. Decompress MySQL Connector/J archive file and copy "mysql-connector-java-x.x.x-bin.jar" to GWT Directory (from step 2).
  4. Open eclipse, Run menu -> Run... -> Java Application -> your project name -> Classpath -> click at User Entries.
  5. Click Add External JARs on the right and open your "mysql-connector-java-x.x.x-bin.jar" at GWT Directory.
  6. Apply and ROCK THE WORLD!
credit from Solution for the "ClassNotFoundException" when trying to connect to MySql database

Wednesday, October 11, 2006

Template Field Idea

  • textbox (normal size)
  • textbox (long size)
  • combobox - preloaded data only (e.g. us states, sex, country, weekday etc.)
  • checkbox
  • link
  • link with title
  • date
  • date/time
  • time
  • rating
  • tagging (default for every scheme)

Welcome Page Idea

  • แสดงรายการของ Shortcut Key
  • Quick Add โดยแสดงเป็นแบบ Tag Cloud ให้กดแล้วจะมี Popup ขึ้นมาให้ใส่ข้อมูล
  • Bug Report