Creating the first application in GWT

OPENAPI | 2010/01/10 03:17 | brian lee
Creating the first application in GWT

- There are 3 methods of creating GWT applications
  • Using the GWT Creation Tools
  • Using IDE(eclipse)
  • Create Application by Hand

[Figure : 3 way of creating GWT app.]


[Figure : The generic lifecycle of GWT Application]










- Creating a GWT Application (using IDE:eclipse)
   • JDK Install : http://java.sun.com/javase/downloads/index.jsp
   • eclipse : http://www.eclipse.org/downloads/
   • Install Google Plug-in for Eclipse
      [figrue : Install New Software in Eclipse]


  • download SDK & unzip SDK : http://code.google.com/intl/en/webtoolkit/download.html
  • Create sample web application project
     - webAppCreator command line utility create the gwt project that contains eclipse project & config file
     - create new sample app. with the following command    
webAppCreator -out MyWebApp com.opencloud.mywebapp.MyWebApp
          [figrue : Create new project ]

  • import the generated project into the eclipse
    - "File"->"Import"->"General"->"Existing Projects into Workspace"

[figrue : import generated project into eclipse ]


  • Run
     - Run in eclipse (Ctrl + F11)
[figrue : Run the sample gwt web project ]
   • Debug
     - Toggle Breakpoint at the source in Eclipse the following pic.
[figrue : Debug ]

    -



 
- Debug (F11) in Eclipse
Bookmark and Share
태그 : Google,GWT,구글
지역태그 : 서울
profile image
opencloud.kr brian lee

http://opencloud.kr

Introducing Google Web Toolkit (GWT)

OPENAPI | 2010/01/10 00:23 | brian lee

GWT(Google Web Toolkit, http://code.google.com/intl/en/webtoolkit/)

1. Introduce

- Big feature Convert java program code to javascript code

- Compile option
  • obfuscated : keep javascript code size down, more compressed -> suit for production-mode

ex)

펼쳐두기..

  • pretty : generate more readable javascript
ex)

펼쳐두기..

  • detailed : addition of the full class name of the javascript method name
ex) 

펼쳐두기..

- Generate the javascript file for each browser    -> brower doesn't contain code that don't use.
        ※ Supported browers : IE, Firefox, Mozilla, opera, safari, chrome
   
- Execute javascript from JAVA
   • when you compile your source, must have all the source that are refered from your source.

   • JSNI(JavaScript Native Interface) : you execute javascript from java as well as execute java from javascript. This is made by GWT compiler

ex)

펼쳐두기..


   

  - JRE Emulation Library
  • provide developers with the ability to use some of the JRE classes

  • several classes are missing in JRE Emulation Library
     ex) java.util.Calendar is not included

Bookmark and Share
태그 : GWT
지역태그 : 서울
profile image
opencloud.kr brian lee

http://opencloud.kr

About opensource S/W Licence

OPENAPI | 2010/01/09 21:26 | brian lee
현재 오픈소스 SW license로 많이 사용되고 있는 것은 Apache, GPL, LGPL, BSD, MPL 임.
   - GPL/LGPL/MPL : 수정한 내용에 대한 소스코드를 공개하여야 함.
   - BSD/Apache   : 소스를 수정하더라도 소스코드를 공개할 의무가 없음.

   * Apache 라이센스
     - 사용한 경우 Apache 라이센스 문장 반드시 포함
     - 수정 가능.
     - 소스코드 공개하지 않아도 됨.

   * GPL 라이센스
     - 수정 가능. 사용하거나 수정하였을 경우 나의 프로그램도 자동 GPL이 됨.
     - 상용 판매 가능하나 구입자에게 소스코드 제공해야 함.
     . 구입자는 무료 재배포 가능
   * LGPL 라이센스
     - GPL 라이센스 속성 완화
     - 수정하지 않으면 소스코드 공개하지 않아도 됨.
   * BSD 라이센스
     - 제한이 거의 없음
     - 소스코드 수정 후, 공개없이 판매 가능
   * MPL 라이센스
     - 소스 코드 반드시 공개
     - 수정시 최초 저작자에게 통지

   * 대표적으로 사용한 오픈소스
     . Spring Framework : Apache License
     . Struts Framework : Apache License
     . Hibernate : LGPL License
     . Quartz : Apache License
     . OSCache : OpenSymphony License (modified Apache License)
     . Commons DBCP : Apache License
     
이외 오픈소스 라이센스는 각 사이트 참조
Bookmark and Share
지역태그 : 서울
profile image
opencloud.kr brian lee

http://opencloud.kr

LVM 생성
LVM 늘리기
Bookmark and Share
profile image
opencloud.kr brian lee

http://opencloud.kr

Seoul GTUG 첫 모임 후기

소셜네트워크 | 2009/12/20 21:58 | brian lee

 

Seoul GTUG 첫 모임 후기

 

Bookmark and Share
지역태그 : 서울
profile image
opencloud.kr brian lee

http://opencloud.kr

이전 1 2 3 4 5 ... 12 다음