{"id":444,"date":"2023-11-19T06:47:32","date_gmt":"2023-06-27T08:47:28","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"},"modified":"2025-07-31T23:38:46","modified_gmt":"2025-07-31T14:38:46","slug":"jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","title":{"rendered":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"},"content":{"rendered":"<p>JSF Primefaces\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002JavaServer Faces\u306f\u3001Java\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u3053\u308c\u3089\u306e\u65e5\u3005\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u4e3b\u8981\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e00\u3064\u3067\u3059\u3002JSF\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5316\u3057\u3001\u7279\u306b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u95a2\u9023\u3059\u308b\u90e8\u5206\u3092\u53d6\u308a\u6271\u3044\u307e\u3059\u3002JSF\u3067\u306f\u3001\u5404\u5358\u4e00\u306e\u30d3\u30e5\u30fc\u306f\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30c4\u30ea\u30fc\u3092\u4f7f\u7528\u3057\u3066\u69cb\u7bc9\u3055\u308c\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u308b\u969b\u306bHTML\u306b\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>JSF\u3092\u4f7f\u3063\u305fPrimefaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/h2>\n<p>JSF\u30d3\u30e5\u30fc\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30d7\u30ed\u30bb\u30b9\u306f\u3001JSF\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3068\u3057\u3066\u77e5\u3089\u308c\u3066\u3044\u308b\u3082\u306e\u3092\u7d4c\u7531\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u304c\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3057\u3001\u3069\u306e\u3088\u3046\u306b\u6271\u3046\u304b\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306a\u8aac\u660e\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u308c\u306f\u5358\u306b\u3001JSF\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\u3001\u305d\u3057\u3066JSF\u30d3\u30e5\u30fc\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u6e96\u5099\u3092\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u901a\u77e5\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u304c\u66f8\u304b\u308c\u305f\u6642\u70b9\u3067\u306f\u3001JSF\u306b\u306f2\u3064\u306e\u4e3b\u8981\u306a\u5b9f\u88c5\u304c\u3042\u308a\u307e\u3059\u3002\u30aa\u30e9\u30af\u30eb\u306e\u5b9f\u88c5\u3067\u3042\u308bMojarra\u3068Apache MyFaces\u306e\u5b9f\u88c5\u3067\u3059\u3002\u591a\u304f\u306eJSF\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5b58\u5728\u3057\u3066\u304a\u308a\u3001RichFaces\u3001IceFaces\u3001PrimeFaces\u3001MyFaces\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u6700\u3082\u591a\u304f\u5229\u7528\u3055\u308c\u8a55\u4fa1\u306e\u9ad8\u3044\u30e9\u30a4\u30d6\u30e9\u30ea\u306fPrimeFaces\u3067\u3059\u3002\u6570\u30f6\u6708\u524d\u306bPrimeFaces 5\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304a\u3088\u3073\u6b21\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5bfe\u8c61\u3067\u3059\u3002PrimeFaces 5\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b7\u30f3\u30d7\u30eb\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u958b\u767a\u74b0\u5883\u3092\u4f7f\u7528\u3059\u308b\u304b\u306b\u95a2\u4fc2\u306a\u304f\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u7d42\u308f\u308a\u307e\u3067\u306b\u3001PrimeFaces\u306e\u3059\u3079\u3066\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u767a\u898b\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>JSF 2\u306b\u304a\u3044\u3066\u65b0\u3057\u304f\u5c0e\u5165\u3055\u308c\u305f\u6a5f\u80fd\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u79c1\u305f\u3061\u304c\u77e5\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u3001JavaServer Faces\u306f\u3001\u8c4a\u304b\u306a\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002JSF\u306f\u3001\u3044\u304f\u3064\u304b\u306eJava Community Request JSR\u3067\u7d39\u4ecb\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308a\u3001JSF 2\u306e\u6700\u7d42\u30ea\u30ea\u30fc\u30b9\u304c2009\u5e747\u6708\u306b\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u30ea\u30ea\u30fc\u30b9\u306b\u306f\u3001\u4e00\u9023\u306e\u6539\u826f\u3068\u65b0\u6a5f\u80fd\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002JSF 2\u4ee5\u964d\u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7d50\u679c\u304c\u751f\u3058\u3001\u6700\u5f8c\u306e\u3082\u306e\u306f2013\u5e745\u6708\u306b\u516c\u958b\u3055\u308c\u305fJSF 2.2\u3067\u3059\u3002JSF 1.x\u3068\u306f\u7570\u306a\u308a\u3001JSF 2.x\u306b\u306f\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066JSF\u7ba1\u7406Bean\u3001\u30b3\u30f3\u30d0\u30fc\u30bf\u3001\u30d0\u30ea\u30c7\u30fc\u30bf\u3001\u30b9\u30b3\u30fc\u30d7\u306a\u3069\u3092\u5ba3\u8a00\u3059\u308b\u3068\u3044\u3063\u305f\u591a\u304f\u306e\u6a5f\u80fd\u304c\u5099\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u3001JSF 2\u3067\u306fView\u30b9\u30b3\u30fc\u30d7\u3001\u30ab\u30b9\u30bf\u30e0\u30b9\u30b3\u30fc\u30d7\u3001\u30d5\u30ed\u30fc\u30b9\u30b3\u30fc\u30d7\u3001\u4f1a\u8a71\u30b9\u30b3\u30fc\u30d7\u306a\u3069\u3001\u65b0\u305f\u306a\u30b9\u30b3\u30fc\u30d7\u3082\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001JSF 2\u306b\u8ffd\u52a0\u3055\u308c\u305f\u6700\u3082\u7d20\u6674\u3089\u3057\u3044\u6a5f\u80fd\u3067\u3042\u308bAjax\u306e\u6982\u5ff5\u3082\u5fd8\u308c\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002JSF 2\u3067\u306f\u3001Ajax\u306fJSF\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5358\u7d14\u306bAjax\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3001\u4efb\u610f\u306eJSF\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092Ajax\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30eb\u30fc\u30eb\u3082\u5909\u66f4\u3055\u308c\u3001\u3088\u308a\u7c21\u5358\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u6b21\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001JSF 2\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u304c\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u7c21\u5358\u306aJSF\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3001\u7279\u5b9a\u306e\u30d3\u30b8\u30cd\u30b9\u30b7\u30ca\u30ea\u30aa\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306ePrimefaces\u30bf\u30b0\u306e\u57fa\u672c\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u305f\u30c4\u30fc\u30eb<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u59cb\u3081\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u958b\u767a\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Tomcat 7\uff08\u30c8\u30e0\u30ad\u30e3\u30c3\u30c8 7\uff09<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Eclipse IDE\uff08\u30a8\u30af\u30ea\u30d7\u30b9 \u30a2\u30a4\u30c7\u30a3\u30fc\u30a4\u30fc\uff09<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Maven 3\uff08\u30e1\u30a4\u30d6\u30f3 3\uff09<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>JSF 2 \/ Primefaces 5\uff08JSF 2 \/ \u30d7\u30e9\u30a4\u30e0\u30d5\u30a7\u30a4\u30bb\u30b9 5\uff09<\/ol>\n<p>\u79c1\u305f\u3061\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u306b\u306fTomcat 7\u3092\u4f7f\u7528\u3057\u3001\u5fc5\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u958b\u767a\u306b\u306fEclipse IDE\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3068\u3057\u3066\u306fMaven\u3092\u4f7f\u7528\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u7ba1\u7406\u306b\u3082\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3067\u3059\u306e\u3067\u3001\u3053\u308c\u3089\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u958b\u767a\u30de\u30b7\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304a\u3088\u3073\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6700\u7d42\u7684\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<h3>Eclipse\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>Eclipse IDE\u306f\u3001\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u67a0\u7d44\u307f\u306e\u4e0b\u3067\u30a6\u30a7\u30d6\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u958b\u767a\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Open Eclipse IDE<\/li>\n<li>Right-Click on the project explorer space and select New &#8211; Dynamic Web Project<\/li>\n<\/ul>\n<ul class=\"post-ul\">\n<li>Complete the project creation process by setting up the project name, target runtime, source folder, context root, content directory and web.xml<\/li>\n<\/ul>\n<h3>JSF\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/h3>\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001\u79c1\u305f\u3061\u306e\u76ee\u6a19\u306f\u3001Primefaces\u30e6\u30fc\u30b6\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306bJSF\/Primefaces\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u304c\u3001\u73fe\u6642\u70b9\u3067\u306f\u3001\u5358\u7d14\u306a\u52d5\u7684\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002JSF\u3092\u69cb\u6210\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u3055\u3089\u306b\u624b\u9806\u304c\u5fc5\u8981\u3067\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bJSF\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001JSF\u30d5\u30a1\u30bb\u30c3\u30c8\u3092\u8ffd\u52a0\u3057\u3001JSF\u306e\u5b9f\u88c5\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u30d5\u30a1\u30bb\u30c3\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d5\u30a7\u30fc\u30ba\u30d1\u30cd\u30eb\u304b\u3089\u3001JavaServer Faces\u3092\u9078\u629e\u3057\u3001\u69cb\u6210\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u8ffd\u52a0\u8a2d\u5b9a\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u300cFurther configuration required\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001JSF Capabilities\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u300cDownload Library\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u958b\u3044\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u304b\u3089JSF 2.2\uff08Mojarra 2.2.0\uff09\u3092\u9078\u629e\u3057\u3001JSF\u306e\u5b9f\u88c5\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<p>JSF\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001JSF\u306e\u6a5f\u80fd\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d5\u30a7\u30fc\u30ba\u306e\u7d42\u4e86\u6642\u306b\u306f\u3001JSF\u6a5f\u80fd\u3092\u5099\u3048\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>Primefaces 5\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/h3>\n<p>\u4eca\u306e\u3068\u3053\u308d\u3001\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fJavaServer Faces\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u7528\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u304c\u3001Primefaces\u306e\u4f7f\u7528\u306f\u3067\u304d\u307e\u305b\u3093\u3002Primefaces\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30d7\u30e9\u30a4\u30e0\u30d5\u30a7\u30a4\u30bb\u30b9\u516c\u5f0f\u30b5\u30a4\u30c8\u307e\u305f\u306fMaven Central\u304b\u3089\u5fc5\u8981\u306a\u30d7\u30e9\u30a4\u30e0\u30d5\u30a7\u30a4\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d7\u30e9\u30a4\u30e0\u30d5\u30a7\u30a4\u30b9\u306eJAR\u30d5\u30a1\u30a4\u30eb\u3092WEB-INF\u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u3042\u308blib\u30d5\u30a9\u30eb\u30c0\u306b\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/ol>\n<h3>Primefaces\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a<\/h3>\n<p>\u4eca\u3001\u3042\u306a\u305f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306fJSF\/Primefaces\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306b\u6e96\u5099\u304c\u6574\u3063\u3066\u3044\u307e\u3059\u3002\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Primefaces DataTable\u304c\u30d0\u30c3\u30ad\u30f3\u30b0\u30d3\u30fc\u30f3\u304b\u3089\u5f93\u696d\u54e1\u30ea\u30b9\u30c8\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u5f93\u696d\u54e1\u30ea\u30b9\u30c8\u306f@PostConstruct\u7279\u5225\u306a\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u3063\u3066\u30dd\u30d4\u30e5\u30ec\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u5b8c\u5168\u306aJSF\/Primefaces\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>ViewEmployeesManagedBean\u3068\u3044\u3046\u540d\u524d\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u30d3\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>EmployeeName\u3068EmployeeId\u3092\u542b\u3080Pojo\u3068\u3057\u3066Employee\u3092\u4f5c\u6210\u3059\u308b\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u5b9a\u7fa9\u3055\u308c\u305f\u30de\u30cd\u30fc\u30b8\u30c9\u30d3\u30fc\u30f3\u3067\u5f93\u696d\u54e1\u30ea\u30b9\u30c8\u3092\u6d88\u8cbb\u3059\u308b\u305f\u3081\u306b\u3001Primefaces\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<\/ol>\n<pre class=\"post-pre\"><code>package com.scdev.data;\r\n\r\npublic class Employee {\r\n\tprivate String employeeId;\r\n\tprivate String employeeName;\r\n\tpublic String getEmployeeId() {\r\n\t\treturn employeeId;\r\n\t}\r\n\tpublic void setEmployeeId(String employeeId) {\r\n\t\tthis.employeeId = employeeId;\r\n\t}\r\n\tpublic String getEmployeeName() {\r\n\t\treturn employeeName;\r\n\t}\r\n\tpublic void setEmployeeName(String employeeName) {\r\n\t\tthis.employeeName = employeeName;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>package com.scdev.jsfBeans;\r\n\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport javax.annotation.PostConstruct;\r\nimport javax.faces.bean.ManagedBean;\r\nimport javax.faces.bean.SessionScoped;\r\n\r\nimport com.scdev.data.Employee;\r\n\r\n@ManagedBean\r\n@SessionScoped\r\npublic class ViewEmployeesManagedBean {\r\n\tprivate List&lt;Employee&gt; employees = new ArrayList&lt;Employee&gt;();\r\n\r\n\tpublic ViewEmployeesManagedBean(){\r\n\r\n\t}\r\n\r\n\t@PostConstruct\r\n\tpublic void populateEmployeeList(){\r\n\t\tfor(int i = 1 ; i &lt;= 10 ; i++){\r\n\t\t\tEmployee emp = new Employee();\r\n\t\t\temp.setEmployeeId(String.valueOf(i));\r\n\t\t\temp.setEmployeeName(\"Employee#\"+i);\r\n\t\t\tthis.employees.add(emp);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic List&lt;Employee&gt; getEmployees() {\r\n\t\treturn employees;\r\n\t}\r\n\r\n\tpublic void setEmployees(List&lt;Employee&gt; employees) {\r\n\t\tthis.employees = employees;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>JSF\u306e\u6ce8\u91c8\u306e\u4f7f\u7528\u3068\u3001PostConstruct\u306e\u6ce8\u91c8\u306e\u4f7f\u7528\u306b\u3088\u308a\u3001\u5f93\u696d\u54e1\u306e\u30ea\u30b9\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;\r\n&lt;html xmlns=\"https:\/\/www.w3.org\/1999\/xhtml\"\r\n\txmlns:ui=\"https:\/\/java.sun.com\/jsf\/facelets\"\r\n\txmlns:h=\"https:\/\/java.sun.com\/jsf\/html\"\r\n\txmlns:f=\"https:\/\/java.sun.com\/jsf\/core\"\r\n\txmlns:p=\"https:\/\/primefaces.org\/ui\"&gt;\r\n&lt;p:outputLabel value=\"JournalDev - JSF2\/Primefaces Tutorial\"&gt;&lt;\/p:outputLabel&gt;\r\n&lt;p:dataTable value=\"#{viewEmployeesManagedBean.employees}\" var=\"employee\"&gt;\r\n\t&lt;p:column&gt;\r\n\t\t&lt;f:facet name=\"header\"&gt;\r\n\t\t\t&lt;h:outputText value=\"Employee ID\"&gt;&lt;\/h:outputText&gt;\r\n\t\t&lt;\/f:facet&gt;\r\n\t\t&lt;h:outputText value=\"#{employee.employeeId}\"&gt;&lt;\/h:outputText&gt;\r\n\t&lt;\/p:column&gt;\r\n\t&lt;p:column&gt;\r\n\t\t&lt;f:facet name=\"header\"&gt;\r\n\t\t\t&lt;h:outputText value=\"Employee Name\"&gt;&lt;\/h:outputText&gt;\r\n\t\t&lt;\/f:facet&gt;\r\n\t\t&lt;h:outputText value=\"#{employee.employeeName}\"&gt;&lt;\/h:outputText&gt;\r\n\t&lt;\/p:column&gt;\r\n&lt;\/p:dataTable&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u7ba1\u7406\u3055\u308c\u305fBean\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u3001dataTable\u8981\u7d20\u306e\u4f7f\u7528\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002PrimeFaces\u3068JSF\u306f\u3053\u308c\u3089\u3092\u30d3\u30e5\u30fc\u30da\u30fc\u30b8\u306b\u6e21\u3057\u3066\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002Servlet\u306e\u80cc\u666f\u3092\u6301\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u624b\u9806\u306e\u6570\u304c\u6e1b\u3063\u305f\u3053\u3068\u304c\u7c21\u5358\u306b\u308f\u304b\u308b\u3067\u3057\u3087\u3046\u3002Servlet\u74b0\u5883\u3067\u306f\u3001\u307e\u305aServlet\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3057\u3001\u30e2\u30c7\u30eb\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092\u30ea\u30af\u30a8\u30b9\u30c8\/\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u5c5e\u6027\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3001\u305d\u308c\u3092JSP\u30da\u30fc\u30b8\u306b\u8ee2\u9001\u3057\u3066\u5fdc\u7b54\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;web-app xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txmlns=\"https:\/\/java.sun.com\/xml\/ns\/javaee\"\r\n\txsi:schemaLocation=\"https:\/\/java.sun.com\/xml\/ns\/javaee https:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd\"\r\n\tid=\"WebApp_ID\" version=\"3.0\"&gt;\r\n\t&lt;display-name&gt;JournalDev-PrimefacesWebApplication&lt;\/display-name&gt;\r\n\t&lt;servlet&gt;\r\n\t\t&lt;servlet-name&gt;Faces Servlet&lt;\/servlet-name&gt;\r\n\t\t&lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;\/servlet-class&gt;\r\n\t\t&lt;load-on-startup&gt;1&lt;\/load-on-startup&gt;\r\n\t&lt;\/servlet&gt;\r\n\t&lt;servlet-mapping&gt;\r\n\t\t&lt;servlet-name&gt;Faces Servlet&lt;\/servlet-name&gt;\r\n\t\t&lt;url-pattern&gt;\/faces\/*&lt;\/url-pattern&gt;\r\n\t&lt;\/servlet-mapping&gt;\r\n\t&lt;context-param&gt;\r\n\t\t&lt;description&gt;State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2&lt;\/description&gt;\r\n\t\t&lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;\/param-name&gt;\r\n\t\t&lt;param-value&gt;client&lt;\/param-value&gt;\r\n\t&lt;\/context-param&gt;\r\n\t&lt;context-param&gt;\r\n\t\t&lt;param-name&gt;javax.servlet.jsp.jstl.fmt.localizationContext&lt;\/param-name&gt;\r\n\t\t&lt;param-value&gt;resources.application&lt;\/param-value&gt;\r\n\t&lt;\/context-param&gt;\r\n\t&lt;listener&gt;\r\n\t\t&lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;\/listener-class&gt;\r\n\t&lt;\/listener&gt;\r\n&lt;\/web-app&gt;\r\n<\/code><\/pre>\n<p>javax.faces.webapp.FacesServlet\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u304c\u79c1\u305f\u3061\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bJSF\u3092\u30d7\u30e9\u30b0\u30a4\u30f3\u3059\u308b\u5834\u6240\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;faces-config\r\n    xmlns=\"https:\/\/xmlns.jcp.org\/xml\/ns\/javaee\"\r\n    xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n    xsi:schemaLocation=\"https:\/\/xmlns.jcp.org\/xml\/ns\/javaee https:\/\/xmlns.jcp.org\/xml\/ns\/javaee\/web-facesconfig_2_2.xsd\"\r\n    version=\"2.2\"&gt;\r\n\r\n&lt;\/faces-config&gt;\r\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001JSF\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a2d\u5b9a\uff08\u30de\u30cd\u30fc\u30b8\u30c9\u30d3\u30fc\u30f3\u3001i18n\u30b0\u30ed\u30fc\u30d0\u30eb\u30e1\u30c3\u30bb\u30fc\u30b8\u3001\u30ab\u30b9\u30bf\u30e0\u30d3\u30e5\u30fc\u30cf\u30f3\u30c9\u30e9\u3001\u30ab\u30b9\u30bf\u30e0\u30d5\u30a1\u30af\u30c8\u30ea\u30af\u30e9\u30b9\u306a\u3069\uff09\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u8a2d\u5b9a\u306f\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u5c06\u6765\u306e\u6295\u7a3f\u3067\u305d\u306e\u4f7f\u7528\u6cd5\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u306b\u793a\u3055\u308c\u305f\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>Maven\u306b\u5909\u63db\u3059\u308b\u3002<\/h3>\n<p>Maven\u306fJava\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d3\u30eb\u30c9\u3068\u4f9d\u5b58\u95a2\u4fc2\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u6700\u3082\u597d\u307e\u308c\u308b\u65b9\u6cd5\u3067\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306fMaven\u3078\u306e\u5909\u63db\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002Eclipse IDE\u3067\u306f\u3001Dynamic Web Project\u3092Maven\u306b\u5909\u63db\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002Maven\u306f\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u5236\u5fa1\u3057\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001[\u8a2d\u5b9a]\u30e1\u30cb\u30e5\u30fc\u304b\u3089[Maven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db]\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092Maven\u306b\u5909\u66f4\u3057\u305f\u5f8c\u3001Maven\u81ea\u4f53\u306b\u3088\u3063\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u53ef\u80fd\u306b\u306a\u308b\u3088\u3046\u306b\u3001\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002JSF 2\u3001Primefaces\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8ffd\u52a0\u3057\u305f\u5f8c\u306b\u5f97\u3089\u308c\u308b\u60f3\u5b9a\u3055\u308c\u308bMaven XML\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code>&lt;project xmlns=\"https:\/\/maven.apache.org\/POM\/4.0.0\" xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/maven.apache.org\/POM\/4.0.0 https:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"&gt;\r\n\t&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;\r\n\t&lt;groupId&gt;JournalDev-PrimefacesWebApplication&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;JournalDev-PrimefacesWebApplication&lt;\/artifactId&gt;\r\n\t&lt;version&gt;0.0.1-SNAPSHOT&lt;\/version&gt;\r\n\t&lt;packaging&gt;war&lt;\/packaging&gt;\r\n\t&lt;build&gt;\r\n\t\t&lt;sourceDirectory&gt;src&lt;\/sourceDirectory&gt;\r\n\t\t&lt;plugins&gt;\r\n\t\t\t&lt;plugin&gt;\r\n\t\t\t\t&lt;artifactId&gt;maven-compiler-plugin&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;version&gt;3.1&lt;\/version&gt;\r\n\t\t\t\t&lt;configuration&gt;\r\n\t\t\t\t\t&lt;source&gt;1.6&lt;\/source&gt;\r\n\t\t\t\t\t&lt;target&gt;1.6&lt;\/target&gt;\r\n\t\t\t\t&lt;\/configuration&gt;\r\n\t\t\t&lt;\/plugin&gt;\r\n\t\t\t&lt;plugin&gt;\r\n\t\t\t\t&lt;artifactId&gt;maven-war-plugin&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;version&gt;2.3&lt;\/version&gt;\r\n\t\t\t\t&lt;configuration&gt;\r\n\t\t\t\t\t&lt;warSourceDirectory&gt;webapp&lt;\/warSourceDirectory&gt;\r\n\t\t\t\t\t&lt;failOnMissingWebXml&gt;false&lt;\/failOnMissingWebXml&gt;\r\n\t\t\t\t&lt;\/configuration&gt;\r\n\t\t\t&lt;\/plugin&gt;\r\n\t\t&lt;\/plugins&gt;\r\n\t\t&lt;finalName&gt;${project.artifactId}&lt;\/finalName&gt;\r\n\t&lt;\/build&gt;\r\n\t&lt;repositories&gt;\r\n\t\t&lt;repository&gt;\r\n\t\t\t&lt;id&gt;prime-repo&lt;\/id&gt;\r\n\t\t\t&lt;name&gt;PrimeFaces Maven Repository&lt;\/name&gt;\r\n\t\t\t&lt;url&gt;https:\/\/repository.primefaces.org&lt;\/url&gt;\r\n\t\t\t&lt;layout&gt;default&lt;\/layout&gt;\r\n\t\t&lt;\/repository&gt;\r\n\t&lt;\/repositories&gt;\r\n\t&lt;dependencies&gt;\r\n\t\t&lt;!-- Servlet --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;javax.servlet&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;servlet-api&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.5&lt;\/version&gt;\r\n\t\t\t&lt;scope&gt;provided&lt;\/scope&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;!-- Faces Implementation --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;com.sun.faces&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jsf-impl&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.2.4&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;!-- Faces Library --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;com.sun.faces&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jsf-api&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.2.4&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;!-- Primefaces Version 5 --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.primefaces&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;primefaces&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;5.0&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;!-- JSP Library --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;javax.servlet.jsp&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;javax.servlet.jsp-api&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.3.1&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;!-- JSTL Library --&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;javax.servlet&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jstl&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;1.1.2&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t&lt;\/dependencies&gt;\r\n&lt;\/project&gt;\r\n<\/code><\/pre>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066mvn clean package\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001Java EE\u30b3\u30f3\u30c6\u30ca\u306b\u30c7\u30d7\u30ed\u30a4\u53ef\u80fd\u306aWAR\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u8abf\u67fb\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u8981\u7d04 \u3002<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306bJSF 2 \/ Primefaces\u3092\u3069\u306e\u3088\u3046\u306b\u4f7f\u7528\u3059\u308b\u304b\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u305d\u308c\u306b\u306f\u3001Eclipse IDE\u3092\u4f7f\u7528\u3057\u3066\u3001\u52d5\u7684\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001JSF 2\u306e\u5b9f\u88c5\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3084Primefaces\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u7528\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304b\u3089\u306f\u3001\u79c1\u305f\u3061\u306e\u4f8b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306bMaven\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30e9\u30a4\u30e0\u30d5\u30a7\u30a4\u30bb\u30b9\u306eHello World\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30ea\u30f3\u30af\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u3082\u3063\u3068\u5b66\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u53c2\u8003\uff1aPrimefaces\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JSF Primefaces\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002JavaServer Faces\u306f\u3001Java\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u3053\u308c\u3089\u306e\u65e5\u3005\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u4e3b\u8981\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e00\u3064\u3067\u3059 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-444","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" \/>\n<meta property=\"og:description\" content=\"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-27T08:47:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:38:46+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"27\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"name\":\"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-06-27T08:47:28+00:00\",\"dateModified\":\"2025-07-31T14:38:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","description":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","og_description":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-06-27T08:47:28+00:00","article_modified_time":"2025-07-31T14:38:46+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"27\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","name":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-06-27T08:47:28+00:00","dateModified":"2025-07-31T14:38:46+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"JSF PrimeFaces\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/jsf-primefaces%e3%81%ae%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=444"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":40697,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/444\/revisions\/40697"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}