티스토리 뷰
1 Controller event listening
Controller사이에서의 이벤트 리스닝은 해당 Controller가 View Controller이건 Global Controller이건 상관없다. 하나의 컨트롤러에서 fireEvent를 호출하면 다른 하나의 컨트롤러에서는 발생된 이벤트를 리스닝한다.
2 Controller 1 (Global Controller)
다른 Controller에서 발생되는 이벤트들을 전부 감지하는 Controller 정의
3 Controller 2 (View Controller)
이벤트를 발생시키는 컨트롤러 정의
- Controller 2에서 fireEvent() 함수를 통하여 'uploadToServerEvent'이벤트를 발생시킨다.
- Controller 1에서 listen 설정으로 모든 Controller에서 발생되는 uploadToServerEvent 이벤트를 자신이 가지고있는 'uploadToServer'함수로 연결하게 된다.
- 여기서 주의할점은 이벤트 발생시점 보다 Controller 1의 초기화시점이 앞서야한다. 그렇지 않으면 아무리 이벤트를 발생시키더라도 Controller 1의 리스닝설정이 발생되지 않는다. (당연하다면 당연한말이다...)
'Javascript > Ext JS' 카테고리의 다른 글
Ext JS Session Check (0) | 2014.11.03 |
---|---|
Ext JS Save the data to the session storage (0) | 2014.10.27 |
Ext JS Chart (0) | 2014.10.03 |
Ext JS Loading data via a proxy (0) | 2014.09.26 |
Ext JS 클래스 생성 (0) | 2014.07.09 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- maven 로컬저장소
- with grant option
- extjs 6 테마
- mybatis common resultmap
- mybatis resultmap
- extjs6
- mysql 한글깨짐
- tiles sitemesh
- 마이바티스 공통 resultmap
- 로컬저장소
- custom mapping
- with admin option
- jboss spring4
- extjs
- sencha touch icons
- mysql convert
- tiles vs sitemesh
- 스프링 autowired
- spring container
- 마이바티스 resultmp
- 시간차이구하기
- sencha touch icons list
- 제이보스 스프링4
- spring autowired
- extjs grid crud
- local repository
- 스프링 컨테이너
- extjs 6 theme
- Spring
- 스프링
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함