ã¯ããã« ã軽éãã¬ã¼ã ã¯ã¼ã¯ãã¨å¼ã°ããã½ããã¦ã§ã¢ã¯ããã®ã軽éãã¨ããè¨èãããã¤ãåä½é度ãããã°ã©ã ãµã¤ãºãªã©ã«ç®ãåãã¦ãã¾ããã¡ã§ããããããã軽ããã¯ç©ççãªãã¨ã ãã示ãããã§ã¯ããã¾ããã ãæ軽ã«ä½¿ãããã¬ã¼ã ã¯ã¼ã¯ããèããã¨ãããã®æ大ã®é åã¯ãã¡ã¤ã«ãµã¤ãºãåä½é度ãããå¦ç¿ã«ãããã³ã¹ãã§ã¯ãªãã§ãããããã¨ã«ããçæéã§ç¿å¾ã使ããããã«ãªããããããããä»ã®ãã¬ã¼ã ã¯ã¼ã¯ã«ä½ãããæ±ãããããã®ããããã¾ããã ä»ååãä¸ãããApache Clickãã¯ãä½ãããä½ãå¦ç¿ã³ã¹ãããéè¦ãã¦éçºããã¦ãããã¬ã¼ã ã¯ã¼ã¯ãªã®ã§ãã 対象èªè Javaã§æãããªãã¬ã¼ã ã¯ã¼ã¯ãæ¢ãã¦ããæè¡è æè¿ã®ãã¬ã¼ã ã¯ã¼ã¯ããããã£ã¨ç解ãã¦ããããæ¹ Webéçºã®ææ³ãã©ããæ°ã«å ¥ããªããã¨å¸¸ã èãã¦ããJavaããã°ã©ã Apache Clickã¨ã¯ï¼ ãApac
Click Framework ãæè¿ãæ°ã«å ¥ãã§ããããã§ãSeasar å ã®ç§ã§ã¯ããã¾ãããGuice ã®ã·ã³ãã«ããæ°ã«ãªã£ã¦ããä»æ¥ãã®é ãªã®ã§ãã ã¨ãããã¨ã§ãClick Framework ã® Page ã¯ã©ã¹ã« Guice ã§ã¤ã³ã¸ã§ã¯ã·ã§ã³ãæ½ããããã ãã©ã©ããããããã ããï¼ãã¨ãããã¨ã«ãªãã¾ããããã㧠S2Click ã®ã½ã¼ã¹ãªã©ããããè¦ã¦ããã®ã§ãããããããè¦å½éãï¼ã¨ãããç§ã®ãããããã¨ã¨å¾®å¦ã«ããã¦ããï¼ã§ããã ã¨ãããã¨ã§ãèªåãªãã«èãã¦ã¿ãããæ¹ãã¨ã¦ãç°¡åã§ããã¾ãåæºåã¨ãã¦ãguice-1.0.jar ã«å ã㦠guice-servliet-1.0.jar ããããã¤ãã¾ãã次㫠ClickServlet ãç¶æ¿ã㦠Guice ã«ããã¤ã³ã¸ã§ã¯ã·ã§ã³ãè¡ããµã¼ãã¬ãããä½æãã¾ããâãããªæãã§ãã package example;
NTTãã¼ã¿å 端æè¡å¤åãå½ç£ã®ãªã¼ãã³ã½ã¼ã¹ããã¸ã§ã¯ãProject Amaterasã®ãªã¼ãã¼ã§ããï¼Seasarããã¸ã§ã¯ããClick Frameworkã§ãã³ããã¿ãåãã¦ãããèæ¸ã«ãå ¥éWikiããEclipseãã©ã°ã¤ã³éçºå¾¹åºæ»ç¥ãï¼ããããæ¯æ¥ã³ãã¥ãã±ã¼ã·ã§ã³ãºçºè¡ï¼ãªã©ãããã æ ªå¼ä¼ç¤¾DTS ãããã¯ã¼ã¯äºæ¥æ¬é¨ ããã¸ã§ã¯ãããã¼ã¸ã£ãJavaãä¸å¿ã«ãã¬ã¼ã ã¯ã¼ã¯éçºãéçºããã»ã¹å®ç¾©ãªã©å¹ åºãæ´»èºä¸ãStrutsIDEã³ããã¿ãèæ¸ãã¾ããã¨Eclipse!ãVol.1ãï¼çºè¡ï¼ã¤ã³ãã¬ã¹ã³ãã¥ãã±ã¼ã·ã§ã³ãºï¼ã ãã®ãã¬ã¼ã ã¯ã¼ã¯ï¼æ¬å½ã«å¿ è¦ã§ããï¼ Javaã®Webã¢ããªã±ã¼ã·ã§ã³ã»ãã¬ã¼ã ã¯ã¼ã¯ã®ã¯ããã¨ããã°ï¼ãªãã¨ãã£ã¦ãStrutsã§ããStrutsã¯ããã¡ã¯ãã¹ã¿ã³ãã¼ãã®å°ä½ã確ç«ãï¼ç¾å¨ã§ãå¤ãã®ã¦ã¼ã¶ã¼ã«å©ç¨ããã¦ãã¾ãããããï¼Ser
ã¦ãã®ç¤¾å¡ï¼ç¹ã«è¥æï¼ã®ã¢ããã¼ã·ã§ã³ãä½ãã®ã¯ï¼äººäºå¶åº¦ã ãã®åé¡ã ããããªãã¨æããã ãã©ãï¼ ç¶ããèªã http://www3.vis.ne.jp/~asaki/p_diary/diary.cgi?Date=2006-12-25#2006122500ããï¼ ãã®ãèªåã§ãä½ãããã¨ããæè¦ããClickã®ä¸çªã®é åã ã¨æãã¾ãã ããã¯ãã¬ã¼ã ã¯ã¼ã¯ãã·ã³ãã«ã§è¦éãè¯ãä½ããã¦ãããããããªã®ã§ãããé·å¤§ãéåã«ãªãç解ããã«ã¯å¤ãã®åªåãå¿ è¦ã¨ãªããã¬ã¼ã ã¯ã¼ã¯ãå¤ããªãã¤ã¤ããä¸ããã®ãèªåã§ãä½ãããæã¨ããã®ã¯é常ã«è²´éã ã¨æãã¾ãã ããããããæãã¾ãï¼ ãããããã«ã絡ããã©ï¼ã©ããä¸é¨ã®äººãã¡ã«ã¯ãStruts風ãªãã§ãè¨å®ãã¡ã¤ã«æ¸ãããããã¬ã¼ã ã¯ã¼ã¯ããè¯ãã¢ãã ã¨æãå¾åãããã¿ããï¼ ããClickã«å¯¾ãã¦ã大è¦æ¨¡ã«ã¯åããªããçãªè©ä¾¡ããã¦ããè¨äºãã¿
Click èªåã§ã使ããã¨æ¬å½ã«æãããã¬ã¼ã ã¯ã¼ã¯ Clickãã¬ã¼ã ã¯ã¼ã¯(Click Framework)ã¯ãç解ã容æã§ããäºãã·ã³ãã«ã§ããäºãéè¦ãã¦ä½æããã¦ããWEBã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ãã ãã¼ã ãã¼ã¸ã®"Why Click"ã®ãã¼ã¸ã§ãä¸çªä¸ã«Simple to leanãæ²ãã¦ããã ããã£ã¦ãæ¬å½ã«ã·ã³ãã«ã§ç解ãããããã¤ã³ãããã¯ã·ã§ã³ï¼ãªã³ã¯å ã¯æ¥æ¬èªwikiä¸ã®ãã®ï¼ãèªãã§ããµã³ãã«ãçºããã°ãã ãããã®æè¦ãããã«ã¤ãããããã«ãªã£ã¦ãã¾ããã¾ããããã¥ã¡ã³ãé¡ãé常ã«ä¸å¯§ã«ä½æããã¦ãã¾ãã å°ãClickã®ä»çµã¿ãç解ã§ããããClick controlé¡ï¼ã³ã³ãã¼ãã³ãï¼ã®ã½ã¼ã¹ã³ã¼ããèªãã§ã¿ã¦ãã ããããã¾ãã«ã·ã³ãã«ãã¤ç°¡åã«ä½æããã¦ããäºã«é©ãã¨æãã¾ããããã¦å¤ãã®äººãããããªãèªåã§ãä½ããããã¨æãã®ã§ã¯ãªãã§ããããã
(æ ª)ãªã¼ã¸ã¹ç·ç Yoji Kanno ã¯ããã« Webãã¬ã¼ã ã¯ã¼ã¯ã¨MVC 2006å¹´ç¾å¨ãJavaã§Webã¢ããªã±ã¼ã·ã§ã³ãéçºããå ´åã¯ãMVCã¢ã¼ããã¯ãã£ãæ¡ç¨ããã±ã¼ã¹ãã»ã¨ãã©ã§ããWebéçºã«ãããMVCã¯ãæ¬æ¥ã®MVCã¨ã¯è¥å¹²ç°ãªãé¨åããããWebçMVCã¨ããã¹ãæ¦å¿µã§ãããããããã®WebçMVCã¢ã¼ããã¯ãã£ã¯Strutsã®æµè¡ã¨ã¨ãæ¬æ¥ã®MVCããã¡ã¸ã£ã¼ã«ãªãã¾ããã WebçMVCã¢ã¼ããã¯ãã£ã®å¤§éæãªã³ã³ã»ããã¯ä»¥ä¸ã®ã¨ããã§ãã ç»é¢(View)ã¨ãã¸ãã¯ã®åé¢ ãªã¯ã¨ã¹ãããã³ããªã³ã°ãã¦ã³ã³ããã¼ã©ã¯ã©ã¹ã®å¼ã³åºãã«å¤æããæ©è½ ç»é¢ããã¼å¶å¾¡ãã¸ãã¯ã¨ãã¸ãã¹ãã¸ãã¯ã®åé¢ WebçMVCãã¬ã¼ã ã¯ã¼ã¯ã¯ãä¸è¨ã®ãããªMVCã¢ã¼ãã¯ãã£ã«åºã¥ããè¨è¨ã¨å®è£ ãæ¯æ´ãããã¯å¼·å¶ãã¾ããããã¦ä¸è¨ã®æ½çã«ããç»é¢éçºè ã¨ãã¸ãã¯éçºè ãåé¢ã§ããã
Click Frameworkã§ã·ã³ãã«Webéçº Click Frameworkã¯Bob Schellinkã»Malcolm Edgar両æ°ãä¸å¿ã«éçºããã¦ããWebã¢ããªã±ã¼ã·ã§ã³ç¨ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ã以ä¸ã®ãããªç¹å¾´ãããã¾ãã ã¨ã«ããã·ã³ãã«ã ã·ã³ãã«ãªã®ã§å¦ç¿ã³ã¹ããä½ãã ã·ã³ãã«ãªã®ã§åä½ãé«éï¼ä¸èª¬ã«ããã¨Tapestryã®3åã¨ãï¼ã ã·ã³ãã«ãªã®ã§æ¡å¼µã容æã ã«ãé¢ãããã³ã³ãã¼ãã³ããã¼ã¹ã®ããã°ã©ãã³ã°ãå¯è½ã è±å¯ãªãµã³ãã«ã»ããã¥ã¡ã³ããç¨æããã¦ããï¼å ¨é¨è±èªã§ããï¼ã å½éåããã¦ãããæ¥æ¬èªãï¼ã»ã¼ï¼åé¡ãªãå©ç¨å¯è½ã è±å¯ãªã³ã³ããã¼ã«ãç¨æããã¦ããã SpringãCayenneãHibernateã¨ã®é£æºæ©è½ãåãã¦ããã 豪Avoka Technologiesãåç¨ãµãã¼ãããã¬ã¼ãã³ã°ã³ã¼ã¹ãæä¾ãã¦ããã Apache Incubat
http://storehouse.sakura.ne.jp/hatena/10_minuit_click_app.htm scaffoldçææ©è½ãä»ããã®ã¯ãããããããã£ãããã§ã ãªããæ©åãã£ã½ããªã£ã¦ãã¾ã£ã⦠http://sourceforge.net/projects/rubbish-db 宣ä¼ãå ¼ãã¦ãClickç¨ã®scaffoldçææ©è½ãä»ãã¾ããã
Click Frameworkã§ã·ã³ãã«Webéçº Click Frameworkã¯Bob Schellinkã»Malcolm Edgar両æ°ãä¸å¿ã«éçºããã¦ããWebã¢ããªã±ã¼ã·ã§ã³ç¨ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ã以ä¸ã®ãããªç¹å¾´ãããã¾ãã ã¨ã«ããã·ã³ãã«ã ã·ã³ãã«ãªã®ã§å¦ç¿ã³ã¹ããä½ãã ã·ã³ãã«ãªã®ã§åä½ãé«éï¼ä¸èª¬ã«ããã¨Tapestryã®3åã¨ãï¼ã ã·ã³ãã«ãªã®ã§æ¡å¼µã容æã ã«ãé¢ãããã³ã³ãã¼ãã³ããã¼ã¹ã®ããã°ã©ãã³ã°ãå¯è½ã è±å¯ãªãµã³ãã«ã»ããã¥ã¡ã³ããç¨æããã¦ããï¼å ¨é¨è±èªã§ããï¼ã å½éåããã¦ãããæ¥æ¬èªãï¼ã»ã¼ï¼åé¡ãªãå©ç¨å¯è½ã è±å¯ãªã³ã³ããã¼ã«ãç¨æããã¦ããã SpringãCayenneãHibernateã¨ã®é£æºæ©è½ãåãã¦ããã 豪Avoka Technologiesãåç¨ãµãã¼ãããã¬ã¼ãã³ã°ã³ã¼ã¹ãæä¾ãã¦ããã Apache Incubat
ããã¤ãã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãç»å ´ãã¦ããããããã¤ãã®æ¹åæ§ãè¦ãã¯ããã¦ããããªãã§ãã§ãããã«ããªãã¬ã¼ã ã¯ã¼ã¯ãç¹å®ã®ç¨éã«ç¹åãããã¬ã¼ã ã¯ã¼ã¯ãã·ã³ãã«ãªãã¬ã¼ã ã¯ã¼ã¯ããã¨ã¯æåã©ãããã¾ã¨ãã¦ã²ã¨ã¤ã®ã½ãªã¥ã¼ã·ã§ã³ãæä¾ãããã¿ã¼ã³ããªã©ãä¾ã¨ãã¦æãããã¨ãã§ããã ããã æ¬ç¨¿ã§ã¯ã·ã³ãã«ãªãã¬ã¼ã ã¯ã¼ã¯ãã¨ãã«å¦ç¿ã容æã§ããã«æ±ããããã«ãªãWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã®ä»£è¡¨åã¨ãã¦Clickãç´¹ä»ãããããã²æ¬ç¨¿ãåèã«ãã¤ã¤ãå®éã«ãµã³ãã«ãåããã¦ã¿ããã Click Web Application Framework The Click Framework Projectã¯19æ¥(ç±³å½æé)ãClick Web Application Frameworkã®ææ°çã¨ãªãClick Web Application Framework(以é
Best Practices This section discusses Best Practices for designing and building Click application. The following topics are covered: Security - use JEE role based security Packages and Classes - project package structures and page classes Page Auto Mapping - use Convention over Configuration Navigation - use Page classes to forward and redirect Templating - to standardize your web application Menu
PartialFunctionã¯ããã¹ã¦ã®å¤ã«ã¤ãã¦å®ç¾©ããã¦ããã¨ã¯éããªãé¢æ°ã示ãã¦ããFunction1ã®ç¹æ®ãªã±ã¼ã¹ã val pf:PartialFunction[Int,String] = { case i if i>1000 => "Big" } PartialFunctionãã®ãã®ã®è©±ã¯ã¨ããããç½®ãã¨ãã¦ãScalaã£ã¦ãããªæ¸ãæ¹ãåºæ¥ããåãã©ã¡ã¼ã¿ã2ã¤ã¨ãåã«ã¤ãã¦ã¯ä¸ç½®ã®ããã«ã§ããã val pf:Int PartialFunction String = { case i if.... } ã§ããããªãã ãããããããªããã§ã Int => String ã®ããã«æ¸ãããã®ã§ã type ~>[A,B] = PartialFunction[A,B] val pf:Int ~> String = { case i if ... } ã¨ãã¨ã¤ãªã¢ã¹ãå®ç¾©ãã¦ã
â [Click]Clickã«ããã¹ãããæ°ã®åæ¸ ãã®ã¨ã³ããªãèªãã§ãã¦æã£ãã®ã§ãããæ¸ããªãããããªããã®ãããããèªåçæããã®ã§ã¯ãªããããããæ¸ããªãã¦æ¸ããããªæ¹æ³ãèããã¨ããã®ãæ£ããæ¹åã®ãããªæ°ãããããã§ï¼ã¢ã¯ã»ãµã¡ã½ããã¨ãã¯ä»æ¹ãªãã§ããâ¦ï¼ãèªåçæããã«ãã¦ãã¢ããã¼ã·ã§ã³ãªãXDocletã®ã¿ã°ãªããè¦ããªãããããªãããã§ãããåçã«ããéçã«ããè£ã§ãããªã«åãè¨ãã£ã¦ããã¦ãªããããããããªããã©åãã¦ãã®ã£ã¦æ°æã¡æªããæè²ä¸ããããããªããããã§Clickãã¨ããããçã¯éã£ã¦ããªããããã¨ããããã§ãClickãããã«å°ãªãã³ã¼ãã§Webã¢ããªã±ã¼ã·ã§ã³ãéçºãããã¨ãã§ãããã«ã¤ãã¦æ¸ãã¦ã¿ããã¨æãã¾ããã¾ããClickã§ã¯ç»é¢ãã¨ã«ãã¼ã¸ã¯ã©ã¹ã¨Velocityãã³ãã¬ã¼ããä½æãã¾ãããã¼ã¸ã¯ã©ã¹ã«ã¤ãã¦ã¯Tapestryã®ãã¼ã¸ã¯ã©
The Click Framework Projectã¯5æ¥(ç¾å°æé)ãClick Web Application Frameworkã®ææ°çã¨ãªãClick Web Application Framework version 0.17ãå ¬éãããClick Web Application Frameworkã¯åç¨Javaéçºè ã®ããã®J2EE Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãApache License Version 2.0ã®ãã¨ã§ãªã¼ãã³ã½ã¼ã¹ã½ããã¦ã§ã¢ã¨ãã¦å ¬éããã¦ããã Click Web Application Frameworkã¯ã¤ãã³ããã¼ã¹ããã°ã©ãã³ã°ã¢ãã«ãã³ã³ãã¼ãã³ãæåããã¼ã¸æåããã¼ã¹ã«è¨è¨ããã¦ãããä»çµã¿ãç°¡ç´ ã§å¦ç¿ã容æã¨ããç¹å¾´ããããé«æ§è½ããã©ã¼ã ã®èªåæ¤è¨¼ããã¼ã¸ãã³ãã¬ã¼ããåªããã¨ã©ã¼å ±åãVelocityãã¼ã¸ã¬ã³ããªã³ã°ã¨ã
â [Click]ä¹ ã ã«ã³ããã PickListãªã©ã®æ¡å¼µã³ã³ããã¼ã«ã®ç´°ããªãã°ä¿®æ£ããªãã¡ã¯ã¿ãªã³ã°ããã¦ã¿ã¾ãããã³ãããããç¬éã«Bobã«Javadocãç´ããã¦èªåã®è±èªè½åã®ç¡ããå確èªãã¾ããwæè¿ï¼ã¨ããããã1å¹´è¿ãï¼æ¬æ¥ã®ã»ããå¿ããç¶æ ãç¶ãã¦ãããã¨ããã£ã¦ãClickIDEã¯ã¨ãããClick Frameworkæ¬ä½ã«ã³ãããããã®ã¯éåä¹ ã ã§ããä»å¾ãJIRAã®ä¸ããèªåãã§ããããªãã®ãããã¯ã¢ãããã¦å°éã«ã³ããã¿ã¨ãã¦æ´»åãç¶ãã¦ããããã§ãã â [Click]Apache Incubatorã®Webãµã¤ã Clickã®Apache Incubatorä¸ã®ããã¸ã§ã¯ããµã¤ããã§ãã¾ããã http://incubator.apache.org/projects/click.html ã¡ã¼ãªã³ã°ãªã¹ããã½ã¼ã¹ãªã©ãããããå¾ã ã«ASFã«ç§»è¡ãã¦ãããã®ã¨
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}