ã§ãGETã§ç§»åã§ããããã«ãªã£ãã®ã¯ãããã©ããã®ãã©ã¡ã¼ã¿ã¯ã©ããã£ã¦åãåãã®?ããã¯ãã¼ã«ãã«ãªURLã©ãããã®ï¼ ã¨JSFãç¥ã£ã¦ãã人ã¯æãã«éããªããä»ã¾ã§ã ã¨ExternalContextã使ã£ã¦åå¾ãã¦ããã ãã£ãã便å©ãªç®¡çBeanï¼sunã®ç¿»è¨³ã ã¨ãããæ£å¼ã¿ããï¼ãããã®ã«ããããã®ã¾ã¾ã§ã¯ä½¿ãããªãã JSF 2.0ã§ã¯ãããæ¹åãããã <f:metadata> <f:viewParam name="name" value="#{HogeBean.text}"/> </f:metadata> ã¨ãã³ãã¬ã¼ãã«ã»ãããã¦ããã¨ãHogeBean#setText(String)ããå¼ã°ããã ã»ãããããã®ã¯ããã®ã ãããããã¤ãã£ã¦å¦çããã¿ã¤ãã³ã°ã¯ããã®ãã JSFã®ãã§ã¼ãºãè¦ãã¨ããªã¬ã³ãã¼ãã§ã¼ãºãããã«è©²å½ãããwoodstockã®æ¡å¼µã§ã¯ãã£ããã
JSF 2.0 : ããã¯ãã¼ã¯å¯è½ãª URL (GET ãªã¯ã¨ã¹ã) ã®ãµãã¼ãã¨åçãã©ã¡ã¼ã¿è¨å® 2011å¹´2æ16æ¥ at 2:01 åå¾ 2件ã®ã³ã¡ã³ã ä»åç´¹ä»ããæ©è½ã¯æããå¤ãã® JSF ã®éçºè ãæ±ãã¦ããæ©è½ã®ä¸ã¤ãã¨æ³å®ãã¾ãããJSF 1.2 ã¾ã§ã¯ç»é¢é·ç§»ãè¡ãé h:commandLink, h:commandButton ã使ç¨ã㦠POST ã«ããé·ç§»ããã§ãã¾ããã§ãããããã JSF 2.0 ãã㯠GET ã«ããç»é¢é·ç§»ãå¯è½ã«ãªãã¾ãããGET ã«ããç»é¢é·ç§»ãè¡ãããã«ã¯ãh:link, h:button ãå©ç¨ãã¾ããã¾ãããããã®ã¿ã°ã¯ JSF ã®ããã²ã¼ã·ã§ã³ã«ã¼ã«ã«å¾ãç»é¢é·ç§»ãã§ããããã«ãªã£ã¦ãã¾ãã ä¾ãã°ãJSF 1.2 ã§ã¯ä¸è¨ã®ããã«ç´æ¥é·ç§»å ã® URL ãã³ã¼ãä¸ã«åãè¾¼ãã§ãã¾ããã <h:link value="next.
JSR-299ã§æå®ããã¦ããã³ã³ããã¹ãã¨ä¾åæ§ã®æ³¨å ¥(CDI: Contexts and Dependency Injection)ã¯Java EE 6ã®ä¸å¯æ¬ ãªé¨åã§ããããµã¼ãã¬ãããã¨ã³ã¿ã¼ãã©ã¤ãºBeanãJavaBeansãªã©ã®Java EEã³ã³ãã¼ãã³ãããã¢ããªã±ã¼ã·ã§ã³ã®ã©ã¤ããµã¤ã¯ã«å ã§æ確ãªã¹ã³ã¼ããæã£ã¦åå¨ã§ããããã«ããããã®ã¢ã¼ããã¯ãã£ãæä¾ãã¾ããã¾ããCDIãµã¼ãã¹ã«ãã£ã¦ãEJBã»ãã·ã§ã³BeanãJSF (JavaServer Faces)管ç対象Beanãªã©ã®Java EEã³ã³ãã¼ãã³ããæ³¨å ¥å¯è½ã«ãªããã¤ãã³ãã®èµ·åãç£è¦ã«ããççµåæ¹å¼ã®å¯¾è©±ãå¯è½ã«ãªãã¾ãã ãã®ãã¥ã¼ããªã¢ã«ã¯ãAndy Gibsonæ°ã«ãã£ã¦æ稿ãããGetting Started with JSF 2.0 and CDI in JEE 6ã¨ããã¿ã¤ãã«ã®ããã°ããã¼ã¹
å é±ã®åå¼·ä¼ã§ç´¹ä»ããã¦ããã ããjsf-scrumtoys-refactoredã§ã¯ãJSFã®ç®¡çBeanã使ç¨ãã代ããã«CDIã®Beanãå©ç¨ãã¦ãã¾ãããã®ç¹èª¬æãä¸ååã ã£ãã®ã§ãããã§ç°¡åã«è£è¶³ããã¦ããã ãã¾ãã JSFã¨ç®¡çBean åå¼·ä¼ã®ä¸ã§ãJSFã¯ã³ã³ãã¼ãã³ããã¼ã¹ã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ããã¨èª¬æããã¦ããã ãã¾ãããï¼ãã®ç¹ã«ã¤ãã¦ã¯ä»¥ä¸ã®ã¨ã³ããªã¼ããåç §ãã ãããStruts1ã«ä»£ããWebãã¬ã¼ã ã¯ã¼ã¯ã®é¸æ - é人ããã°ã©ãã¼ãç®æãã¦ï¼ ã³ã³ãã¼ãã³ããã¼ã¹ã®ãã¬ã¼ã ã¯ã¼ã¯ã®å ´åãVBãSwingã¨ãã£ãä¼çµ±çãªï¼Webã§ãªãï¼GUIã¢ããªã±ã¼ã·ã§ã³ã®ããã«ããã©ã¼ã ãå ¥åãã£ã¼ã«ãããã¿ã³ã¨ãã£ãç»é¢ã³ã³ãã¼ãã³ãã®ããªã¼ãæ§ç¯ããã¾ããããã¦ãç»é¢é¨åã®å ¥åãã¯ãªãã¯ãªã©ã®ã¤ãã³ãã«å¾ã£ã¦ã管çBeanã¨å¼ã°ããPOJOã«å¯¾ãã¦
Java EE6ã§ããã«éçºã¯å®¹æã«ãªã£ãï¼ ä»¥åJavaEEæ¨æºã®é²åããæè¿ã®æ¥åã¢ããªã±ã¼ã·ã§ã³éçºææ³ã®å¤é·ã«ã¤ãã¦èãã - é人ããã°ã©ãã¼ãç®æãã¦ã«ã¦Java EEæ¨æºã®éçºã¢ãã«ã®é²åã«ã¤ãã¦èª¬æãã¾ããã10å¹´åã®ç¸å½é¢åã ã£ãJ2EEã®éçºã¢ãã«ã¨æ¯ã¹ã¦ãææ°ã®Java EE6ã§ã¯ãæ§ã ãªOSSã®è¯ãç¹å¾´ãåãå ¥ãã¦ãç°¡åã«ããã°ã©ãã³ã°ã§ããããã«å¤§å¹ ã«æ¹è¯ããã¦ãã¾ããã¾ããGlassfish 3.1ãJBoss AS7ãªã©ã¯èµ·åæéãé常ã«ç縮ããã¦ãã*1ããã»ã©é ãPCã§ãªããã°ãããæ°ç§ã§åèµ·åãããã¨ãã§ãã¾ããããã«ãJava EEãµã¼ãã¼ãéãã¦ãã¹ãä¸è½ã¨ããã¤ã¡ã¼ã¸ã¯ããéå»ã®è©±ãããããªã - é人ããã°ã©ãã¼ãç®æãã¦ã§ç´¹ä»ããããã«ãJava EE6ã§ã¯å¾æ¥å°é£ã§ãã£ãåä½è©¦é¨ã®èªååã容æã«ãªã£ã¦ãã¾ãã åã ã®æè¡ã¯åªãã¦ããã®ã ããã©
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}