블로그 이미지
올해목표 // 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
 
03-29 02:17
 

달력

« » 2024.3
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
31
 

최근에 올라온 글

최근에 달린 댓글


회사에서 최근에 기존 프로젝트를 메이븐으로 분리하면서 고민거리가 생겼습니다. 바로 그건 GWT...

버전관리도 안되고 별도로 컴파일 후 배포할 수 있는 메이븐 플러그인을 찾지도 못하여 고민을 하고 있던 찰나... 먼가에 이끌리듯 개발을 진행하였습니다.

아이디어는 생각보다 단순합니다.

1. 등록된 소스 서버에서 관련 소스를 체크아웃 or 업데이트 합니다.
2. 등록된 모듈을 컴파일합니다.
3. 컴파일 결과물을 압축하여 특정폴더에 복사합니다.
4. 매일 새벽에 작업이 진행됩니다.

한 4일 정도 작업을 한 결과 쓸 수 있을 정도의 결과물이 나왔습니다.

0123



음하하하하하...

Posted by 자수씨
, |

GWT 와 Spring MVC 를 통합시켜주는 gwtwidgets 라이브러리의 GWTHandler 사용 시 유의사항이 있습니다.

정의된 bean 들이 순서에 영향을 받는 것 같습니다.

[나쁜 예]
<beans ...>
  <bean id="hasA" ...>
    <property name="a" ref="a" />
  </bean>
  <bean id="a" ... />
  ...

</beans>

[좋은 예]
<beans ...>
  <bean id="a" ... />
  <bean id="hasA" ...>
    <property name="a" ref="a" />
  </bean>
  ...

</beans>


사용되는 프로퍼티가 미리 선언되어 있지 않으면 어디선가 꼬여버려 상상하지도 못하는 곳에서 에러가 발생합니다.

원래 스프링은 빈 팩토리가 순서에 영향을 받지 않는 걸로 알고 있는데... 오래전 라이브러리를 계속 쓰다보니 지금와서 발견하게 되네요;;; 이것 때문에 한 5시간은 삽질한 것 같습니다.



Posted by 자수씨
, |

이전에 작성했던 [GWT] OpenerEvents 에서는 GWT 에서 open 한 GWT 페이지에서 상위 페이지로 이벤트를 fire 하는 내용을 포스팅 하였습니다. 이번에 제가 맡은 업무는 GWT 로 만들어진 opener 에서 extjs 로 만들어진 popup 을 띄운 후, popup 에서 opener 로 이벤트를 발생시키는 일이였습니다.

지난 포스팅을 참고해서 다음과 같이 간단한 작업으로 처리가 가능합니다.



소스 내에서 top 을 쓰는 이유는 frame 구조 안쪽에 있을 수 있기 때문에 다음과 같이 처리하였습니다.
재대로 안될 경우 이전 포스팅에서 OpenerEvents.install() 메소드의 $wnd[...] 를 top.$wnd[...] 로 바꾸면 될 것 입니다.

따로 js 파일을 만들어서 function 만 제공할까 하였으나 얼마 안되는 내용이므로 간략하게 정리합니다.



Posted by 자수씨
, |

java.math.BigDecimal 을 RPC 통신을 할 경우에 기본 GWT 에서는 처리가 불가능 합니다.

그걸 처리가 가능하도록 나온 라이브러리가 있습니다.

http://code.google.com/p/gwt-math/



gwt-math-2.0.3.jar 는 client 컴파일시 사용을 하며
gwt-math-server-2.0.3.jar 는 was 라이브러리 경로에 배포합니다.


왜 이걸 이제야 찾았을까요~ (BigDecimal 을 직접 써야 하니깐... -_ㅜ;;;)




Posted by 자수씨
, |

1월 23일자로 GWT Wiki 에 새로운 글이 하나 올라왔습니다.
글의 제목은 InstantHostedMode 입니다. 찬찬히 살펴 볼까욤~



언제쯤 GWT 1.6 이 나와서 테스트하기 편한 환경을 마련해 줄까요...



Posted by 자수씨
, |

자바스크립트는 싱글스레드라 복잡한 화면을 렌더링하면서 MessageBox 로 progress 를 보여줄 경우 재대로 표시가 되지 않는 경우가 있습니다. 이러한 경우에는 Timer 를 통해서 딜레이를 주어서 차례대로 실행하면 원하는 효과대로 처리할 수 있습니다.


_M#]

이 방법보다 좋은 방법 아시는 분 있나유~ -_ㅜ
아직 불안불안 합니다. ㅋㅋㅋ


Posted by 자수씨
, |

GWT 위키에 들어가보니 새로운 글이 하나 떴습니다. "Design: Overlay Types" ...

http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes

Background

The JavaScriptObject class has been an extremely useful concept because it provides zero-overhead interoperation with external (typically, non-GWT) JavaScript while adding additional value to external JavaScript objects by representing them as actual Java types that are amenable to refactoring, code completion, and Javadoc-style documentation. However, subclassing JavaScriptObject was not generally supported before GWT 1.5 because we weren't sure if it was the right solution, or if we might need to evolve it in breaking ways. This document describes the "old model" prior to GWT 1.5, and the new model, overlay types, which shipped in GWT 1.5 as well as extensions to overlay types that will first ship in GWT 2.0.

The old model used two very different approaches for hosted mode and web mode, but in both cases the point of interest was the boundary point between Java and JavaScript code, when a JavaScript object passes into "the Java world". This boundary point was most often the return value of a JSNI function, but could also occur when a JSNI function accessed Java code through a field assignment, or by passing parameters to a Java function called from JSNI.

In hosted mode, we created an instance of JavaScriptObject (or a JavaScriptObject subclass) as we marshalled the value from JavaScript to Java. This instance served as a Java wrapper for the underlying JavaScript object. It had strong type identity, and handled instanceof, casts, and polymorphic calls through the normal Java mechanisms.

In web mode, we did not wrap the underlying JavaScript object in the traditional sense with a peer object, because that would have impeded performance. Instead, we decorated the underlying JavaScript object with sufficient type information to handle runtime type checks and polymorphic dispatch as needed.


JavaScriptObject 와 관련된 글인 것 같은데 조금 더 읽어봐야겠습니다.
누군가 영어를 잘하신 분이 친절하게 댓글을 달아주신다면.... ㅎㅎㅎ



Posted by 자수씨
, |

GWT 관련된 프로젝트 하나가 또 구글 코드에 공개되었습니다. 
GWTEventService 라는 프로젝트로 작년말에 1.0 버전이 릴리즈 되었습니다.

프로젝트 페이지: http://code.google.com/p/gwteventservice/

GWTEventService 는 이벤트 기반의 클라이언트-서버 통신 프레임워크입니다. GWT-RPC 와 Comet 을 이용합니다.
자세한 내용은 아래쪽에...

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. Events can be added to a context/domain on the server side and the listeners on the client side get informed about the incoming events. The server side is completely independent of the client implementation and is highly configurable. Domains can be defined to decide which events are important for the different contexts.

Advantages

  • Encapsulation of the client-server communication
  • High-level API with listeners and events
  • Only one open connection for event listening
  • Reduction of server calls
  • Reduction of connection peaks
  • Events are returned directly when the event has occurred (instead of polling)
  • Events are bundled to reduce server calls
  • Based on the GWT-RPC mechanism
  • Automatic timeout recognition and handling
  • Extensible architecture

원래 Comet 과 GWT 를 이용해서 메신저 비슷한 것을 만들어 보려고 했는데 이런 프레임워크가 나오면 개발이 좀 더
쉬워질 것 같습니다~





 

Posted by 자수씨
, |

SpringSource 블로그에서 SpringSource DM Server 에서 GWT 어플리케이션을 배포하는 포스팅을 올리고 있던 것을
오늘 확인했습니다.

평소에 관심이 많던 두 분야이기 때문에 꼭 읽어보고 테스트 해봐야겠습니다.
원래 맨몸으로 비비대야지 이론적으로 익히는 것보다 빨리 받아들일 수 있기에....

여튼 링크정리입니다.
Deploying GWT Applications in SpringSource dm Server - Part 1
Deploying GWT Applications in SpringSource dm Server - Part 2
Deploying GWT Applications in SpringSource dm Server - Part 3


복학하면 해볼까나~



Posted by 자수씨
, |

[GWT-Ext] LoggerWindow

Google/GWT / 2008. 12. 24. 15:05

UI Logger 를 제작하였습니다.




_M#]

예전에 쪼렙이였을 때 20여일 사부였던 형이 로거클래스도 직접 작성해보면 재밌다고 했는데 나름 재미가 쏠쏠하네요 ㅋㅋㅋ


 



Posted by 자수씨
, |

글 보관함

최근에 받은 트랙백