
gwt : 글 3개
- 2008/03/20 GWT-Ext 이용한 HelloWorld 예제 (1)
- 2008/03/19 Google Web Toolki(GWT) 단점 및 참조 링크 (1)
- 2008/03/18 GWT (google Web Toolkit) 이란? (2)
function uft8html2utf8( $s ) { if ( !function_exists('uft8html2utf8_callback') ) { function uft8html2utf8_callback($t) { $dec = $t[1]; if ($dec < 128) { $utf = chr($dec); } else if ($dec < 2048) { $utf = chr(192 + (($dec - ($dec % 64)) / 64)); $utf .= chr(128 + ($dec % 64)); } else { $utf = chr(224 + (($dec - ($dec % 4096)) / 4096)); $utf .= chr(128 + ((($dec % 4096) - ($dec % 64)) / 64)); $utf .= chr(128 + ($dec % 64)); } return $utf; } } return preg_replace_callback('|([0-9]{1,});|', 'uft8html2utf8_callback', $s ); } function addMe2DaySkin($target, $mother) { global $entryView; requireComponent("Tattertools.Function.misc"); $me2day = getMe2Day(); misc::dress('Me2Day', $me2day, $entryView); return $target; } function addMe2DaySB($parameter) { global $configVal; requireComponent( "Tattertools.Function.misc"); $data = misc::fetchConfigVal($configVal); if (isset($parameter['preview'])) { // preview mode $retval = "미투데이에 올린 자신의 글을 확인할 수 있습니다."; return $retval; } $me2day = getMe2Day(); if($data['sb_use'] == 'T') { return $me2day; }return; } function getMe2Day(){ global $pluginURL, $entryView, $configVal; requireComponent('Eolin.PHP.HTTPRequest'); requireComponent('Tattertools.Function.misc'); requireComponent('Eolin.PHP.Core'); $data = misc::fetchConfigVal($configVal); $me2day_id=split(',',$data['me2day_url']); for($i=0; $i < count($me2day_id); $i++) { $me2day_url = 'http://me2day.net/'.$me2day_id[$i]; $me2day_rss = $me2day_url.'/rss'; $request = new HTTPRequest($me2day_rss); $request->timeout = 1; if ($request->send()){ $rst = $request->responseText; } // $rst = html_entity_decode($rst); $rst = uft8html2utf8($rst); $xmls = new XMLStruct(); $xmls->open($rst); if($xmls->doesExist('/rss/channel/title')) { $title=$xmls->getValue('/rss/channel/title'); } if($xmls->doesExist('/rss/channel/link')) { $link=$xmls->getValue('/rss/channel/link'); } $rankicon = ($data['icon_use']=='T')?" style=\"margin:4px 0px 0px 0px;padding:0px;list-style:none;margin-left:1px;\"":""; list($me2dayer, $temp) = split('님의 ', $title); $me2day .= $data['md_header']."\n"; $me2day .= "
$max_data[visits] "; if($cut_peak == 'true') $target .= $avg; else $target .= round($max_data[visits]/2); $target .=" | ";
}
$target .= "|
| "; $target .=" | -$how_day days today : $lastvisit |


http://www.expertvill.net/tc/jcfblog/trackback/88

http://www.expertvill.net/tc/jcfblog/trackback/87

gwt-ext를 보기 전에 먼저 한번 GWT에 대해서 찾아보았습니다.
자바로 작성한 코드를 자바스크립트와 html로 변환된다는 것이 가장 큰 특징입니다.
* GWT (구글 웹 툴킷)이란?
--오픈소스로 개발된 자바 소프트웨어 개발 프레임워크
--자바 스크립트 코드를 직접 작성하는 것이 아니라 자바로 작성한 코드를 자바스크립트와 HTML로 변환해 브라우저에서 실행함
--즉 개발자는 HTML과 자바스크립트에 접근할 필요가 없다는 것이 특징
* GWT (구글 웹 툴킷)의 특징
-- 자바로 구현된 풍부한 UI 컨포넌트들을 제공한다.
-- 직접 스크립트를 작성해서 gwt기능 보강이 가능하다.
JavaScript Native Interface (JSNI)를 통해 직접 작성한 Javascript와 GWT 사이에 통신이 가능함.
GWT 만으로는 부족하다 싶으면 직접 스크립트를 작성해서 GWT의 기능을 보강할 수 있음.
참조 url gwt-rpc servcie http://developerlife.com/tutorials/?p=125
http://www.expertvill.net/tc/jcfblog/trackback/86