블로그 이미지
올해목표 // 10월 어학연수 떠나자~ 자수씨

카테고리

전체글 (1457)
Brand New! (28)
주절주절 (213)
MOT (11)
해외쇼핑 (49)
쇼핑노트 (150)
취미생활 (94)
iPhone (4)
Eclipse (121)
Google (83)
GWT (64)
Google Gears (2)
Google Chart API (4)
Android (2)
Spring (31)
JAVA (176)
JavaScript (59)
WEB (49)
Database (20)
OS (26)
Tools (8)
Tips (26)
IT정보 (1)
Book (21)
Programming (37)
외부행사 (43)
주변인들 (17)
여행노트 (60)
학교생활 (30)
회사생활 (52)
사회생활 (5)
외국어공부 (12)
잡동사니 (30)
Total
Today
Yesterday
 
04-28 00:02
 

달력

« » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
 

최근에 올라온 글

최근에 달린 댓글


GWT의 버전이 1.5가 되면서 AsyncCallback에서 제너릭을 지원해주게 되었습니다. 이걸 활용해서 콜백에
사용자데이터를 넣고 편하게 빼서 쓸수도록 확장해 보았습니다.


사용예)




Posted by 자수씨
, |

[원문] http://www.ongwt.com/post/2008/11/14/New-GWT-framework%3A-GWTEventService

The first public version of GWTEventService is released. GWTEventService is an event-based client-server communication framework. It uses GWT-RPC and the Comet / server-push technique. The client side offers a high-level API with opportunities to register listeners to the server like to a GUI component. The server side is completely independent of the client implementation and is highly configurable. GWTEventService can be used to resolve "old-style" polling calls in GWT applications with an event listen mechanism and a clean and extensible architecture.
The developer-release contains a small demo chat application to demonstrate the event listening technique with GWT. A short manual / tutorial can be found in the Wiki or in the developer-release of GWTEventService.

[프로젝트 홈] http://code.google.com/p/gwteventservice


GWTEventService 라는 프레임워크가 새로나왔나봅니다. 이벤트 기반의 C/S 커뮤니케이션 프레임워크랍니다.
GWT-RPC 와 Comet(서버로 밀어넣는 기술인가봅니다.) 를 사용하여 만들었다고 합니다. 일반 GUI 프로그래밍
하듯이 리스너를 등록해 놓으면 서버와 통신을 할 수 있는 것인가 봅니다.


오호.. 그렇다면 웹 메신저를 쉽게 만들수 있게네요... 왜 Comet 은 많이 들어봤는데 실제로 찾아보지 않았을까요..

이런... 찾아봐야할게 하나 더 늘어버렸네..


Posted by 자수씨
, |

GWT 1.5 버전이 나오면서 어노테이션을 지원하게 되었습니다.
예전에는 주석에 @gwt.key 를 써줘서 properties 파일과 맵핑시켜줬는데 이제는 @Key 어노테이션으로 처리가 가능합니다.



정규식이 역시 쵝오!

Posted by 자수씨
, |

GWT 를 시작한 것이 2006년 9월 이었으니깐... 2년이 넘어가네요.
2년간 몰랐던 사실이 있었습니다.

항상 GWT 클라이언트에서 사용하는 클래스는 client 폴더 안에만 있어야 하는지 알았습니다.

기본 패키지 구조의 Model도 Module XML 설정을 수정해주는 꼼수를 부리면 사용이 가능합니다.

~/model/workflowform/WorkflowFormModel.gwt.xml


기본적으로 Module XML 에 source element 가 없으면 하위 client 경로의 클래스들을 인식합니다.
위와 같이 주게되면 기존 구조를 사용할 수 있는 것이지요~
WorkflowFormModel.gwt.xml 을 model 패키지에 두고 source element 의 path 를 workflowform 으로
주어도 되지만 사용하는 플러그인이 재대로 인식을 못하는 관계로 위와 같은 구조로 가게 되었습니다.
(플러그인만 인식 못하는 것이지 컴파일도 되고 Hosted 모드에서 실행도 됩니다.)


근무중 이상무~

[참고자료]

Posted by 자수씨
, |

GWT 에서 url 파라미터에 대해서 접근을 위해서는 다음과 같은 유틸리티를 사용합니다.

주소가 만약 http://localhost:8080/TestModule.html?form_id=99 라면
아래의 form_id 변수는 99 의 값을 가지게 됩니다.



1.4 에서는 없었던 거 같은데??? 그래서 gwt-widgets 라이브러리를 사용했었습니다만...
있으니깐 쓰면되겠죠 ㅋㅋㅋ

[참고자료]
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Window.Location.html

Posted by 자수씨
, |

GWT 가 안드로이드도 지원해주네요 ㅋㅋㅋ
GWT 만 뜬다면... 그런날이 온다면...


출처 : http://www.screaming-penguin.com/node/7612

Posted by 자수씨
, |

GWT Ext 에서 제공하는 페이징툴바는 수정해서 쓰기가 힘들어서 우리가 쓰기 편하게 만들어 보았습니다.

ㅁ 기본 작업
  관련된 CSS 를 html 에 추가해줍니다. (Sprites 이미지 CSS)



ㅁ SearchToolbarHelper Sample 




ㅁ PagingToolbarHelper Sample  
 - FullMode

 - SimpleMode


 - 기타 메소드...


기본적으로 제공되는 ext Toolbar 에 apply 되는 형식입니다. 툴바에 자주쓰는 셋들은 묶어서 헬퍼클래스로
계속 제공될 예정입니다.

팀 분들은 상관 없지만 따로 관심이 있으신 분은 연락주세요. ㅌㅌㅌ


Posted by 자수씨
, |
영어에 너무 약해서 고민하던 찰나...

배운게 개발질이라고 개발이랑 영어랑 어떻게 엮어 볼가 하고 만든것입니다.

그냥 멀뚱멀뚱 모니터만 바라보고 있을게 아니라 외울 단어들을 10초마다 바꿔서 본다면 그나마 기억에 남을가 해서...

이클립스 플러그인을 만들까....

Posted by 자수씨
, |
gwtext 에서 Date format 을 사용할 경우 쓰이는 것이랍니다.

PHP 에서 사용하는 포멧을 사용했나봐요~~

출처 >> gwtext javadoc... com.gwtext.client.util.DateUtil

The date parsing and format syntax is a subset of PHP's date() function, and the formats that are supported will provide results equivalent to their PHP versions. Following is the list of all currently supported format.

Format Description Example returned values
d Day of the month, 2 digits with leading zeros 01 to 31
D A short textual representation of the day of the week Mon to Sun
j Day of the month without leading zeros  1 to 31
l A full textual representation of the day of the week Sunday to Saturday
N ISO-8601 numeric representation of the day of the week 1 (for Monday) through 7 (for Sunday)
S English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j
w Numeric representation of the day of the week 0 (for Sunday) to 6 (for Saturday)
z The day of the year (starting from 0) 0 to 364 (365 in leap years)
W ISO-8601 week number of year, weeks starting on Monday 01 to 53
F A full textual representation of a month, such as January or March January to December
m Numeric representation of a month, with leading zeros 01 to 12
M A short textual representation of a month Jan to Dec
n Numeric representation of a month, without leading zeros 1 to 12
t Number of days in the given month 28 to 31
L Whether it's a leap year 1 if it is a leap year, 0 otherwise.
o ISO-8601 year number (identical to (Y), but if the ISO week number (W)     Examples: 1998 or 2004
 belongs to the previous or next year that year is used instead)
Y A full numeric representation of a year, 4 digits Examples: 1999 or 2003
y A two digit representation of a year Examples: 99 or 03
a Lowercase Ante meridiem and Post meridiem am or pm
A Uppercase Ante meridiem and Post meridiem AM or PM
g 12-hour format of an hour without leading zeros 1 to 12
G 24-hour format of an hour without leading zeros 0 to 23
h 12-hour format of an hour with leading zeros 01 to 12
H 24-hour format of an hour with leading zeros 00 to 23
i Minutes, with leading zeros 00 to 59
s Seconds, with leading zeros 00 to 59
u Milliseconds, with leading zeros 001 to 999
O Difference to Greenwich time (GMT) in hours and minutes Example: +1030
P Difference to Greenwich time (GMT) with colon between hours and minutes Example: -08:00
T Timezone abbreviation of the machine running the code Examples: EST, MDT, PDT …
Z Timezone offset in seconds (negative if west of UTC, positive if east) -43200 to 50400
c ISO 8601 date 2007-04-17T15:19:21+08:00
U Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) 1193432466 or -2138434463

Posted by 자수씨
, |

GWTCompiler 재수정...

Google/GWT / 2008. 9. 17. 11:51
형상관리를 위해 수정한 GWTCompiler...

firefox 에서 Selenium 로 테스트를 해볼라고 보니깐 페이지가 열리지 않는다. (크롬도 이 문제였음)

gecko 와 gecho1_8(firefox) 들과 opera 와 safari(chfrome) 들이 같은 컴파일 결과를 뿜어내어 gwt 의

nocache.js 에서 분리를 해주어야 하는데 gecko1_8 과 safafi 는 무시되고 있는 것이었다...

어제 한번 GWTCompiler 를 열어서 해보았는데 정신이 없어서 그런지 잘 처리가 안되었는데...

오늘은 무적의 하드코딩으로 원하는 결과물을 얻어내었다.

근본적인 핵심은 StandardCompilationResult 의 strongName 을 내가 원하는 값으로 변경하는 것이었는데

그냥 변경하다보니 위와 같은 문제가 발생했던 것이다.

html 파일을 생성하는 부분과 nocache.js 에서만 원하는 값이 들어가면 되는 것이기 때문에 SelectionScriptLinker

클래스의 doEmitCompilation() 메소드에서 partialPath 를 원하는 값으로 교체하였더니 일단은 문제없이 컴파일...

문제가 생기면 다시 수정해야 하는... 이 불안한 환경...

구글에 글을 올리고 싶어도 영어가 안되니.. 몸으로 때우는 수밖에...


Posted by 자수씨
, |

글 보관함

최근에 받은 트랙백