{"id":3866,"date":"2012-01-04T14:40:48","date_gmt":"2012-01-04T19:40:48","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=3866"},"modified":"2013-10-10T14:10:22","modified_gmt":"2013-10-10T19:10:22","slug":"apache-myfaces-trinidad-2-jdeveloper-11gr2-11-1-2-1-0","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=3866","title":{"rendered":"Apache MyFaces Trinidad 2 + JDeveloper 11gR2 (11.1.2.1.0)"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Setup_Trinidad_Project_in_JDev_11gR2\">Setup Trinidad Project in JDev 11gR2<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Download_and_Install_JDeveloper_11g_R2\">Download and Install JDeveloper 11g R2<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Setup_User_Libraries\">Setup User Libraries<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Create_JSF_2.0_Project\">Create JSF 2.0 Project<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Add_Trinidad_Tag_Libraries_to_Project\">Add Trinidad Tag Libraries to Project<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Configuration\">Configuration<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Example\">Example<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Deploy\">Deploy<\/a>\n\t\t<ol class='toc-even level-2'>\n\t\t\t<li>\n\t\t\t\t<a href=\"#Deploy_to_Integrated_WebLogic_Server\">Deploy to Integrated WebLogic Server<\/a>\n\t\t\t<\/li>\n\t\t<\/ol>\n\t<li>\n\t\t<a href=\"#Example_Source\">Example Source<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Setup_Trinidad_Project_in_JDev_11gR2\"><h2>Setup Trinidad Project in JDev 11gR2<\/h2><\/span>\n<span id=\"Download_and_Install_JDeveloper_11g_R2\"><h3>Download and Install JDeveloper 11g R2<\/h3><\/span>\n<p>* Download JDev 11gR2 from <a href=\"http:\/\/www.oracle.com\/technetwork\/developer-tools\/jdev\/downloads\/index.html\">Oracle JDeveloper download site<\/a>, e.g. jdevstudio11121install.exe.<br \/>\n* Double click the download file to install.<\/p>\n<span id=\"Setup_User_Libraries\"><h3>Setup User Libraries<\/h3><\/span>\n<p>* JDev 11gR2 supports Trinidad 2 out-of-box. To see details:<br \/>\n&#8211; Click <em>Tools > Manage Libraries<\/em><br \/>\n&#8211; Click<em> Facelets Tag Libraries<\/em> tab<\/p>\n<span id=\"\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_userlib.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_userlib-300x215.jpg\" alt=\"\" title=\"jdev11gr2_trinidad2_userlib\" width=\"300\" height=\"215\" class=\"aligncenter size-medium wp-image-3898\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_userlib-300x215.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_userlib.jpg 696w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Create_JSF_2.0_Project\"><h3>Create JSF 2.0 Project<\/h3><\/span>\n<p>* Select<em> File > New > General > Applications > Custom Application<\/em>. Click <strong>OK<\/strong>.<br \/>\n* Enter:<br \/>\n&#8211; Application Name: <strong>jdev.jsf2.trinidad2.app1<\/strong><br \/>\n&#8211; Application Package Prefix: <strong>jdev.jsf2.trinidad2.app1<\/strong><br \/>\n* Click <strong>Next <\/strong>and enter:<br \/>\n&#8211; Project Name: <strong>jdev.jsf2.trinidad2.app1.proj1<\/strong><br \/>\n* Click <em>Project Features<\/em>. Select <em>Trinidad <\/em>on the Available panel and move to the Selected panel. Along with Trinidad, <em>JAVA, JSP, JSP and Servlets, XML<\/em> are also selected:<\/p>\n<span id=\"_1\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj1-300x226.jpg\" alt=\"\" title=\"jdev11gr2_trinidad2_createProj1\" width=\"300\" height=\"226\" class=\"aligncenter size-medium wp-image-3899\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj1-300x226.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj1.jpg 637w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj2-300x225.jpg\" alt=\"\" title=\"jdev11gr2_trinidad2_createProj2\" width=\"300\" height=\"225\" class=\"aligncenter size-medium wp-image-3900\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj2-300x225.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_createProj2.jpg 641w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<p>* Click <strong>Finish<\/strong><\/p>\n<span id=\"Add_Trinidad_Tag_Libraries_to_Project\"><h3>Add Trinidad Tag Libraries to Project<\/h3><\/span>\n<p>* Right click project and select<em> Project Properties > JSP Tag Libraries<\/em><br \/>\n* Click <strong>Add <\/strong>button and select both <em>Trinidad Components 2.0<\/em> and <em>Trinidad HTML Components 2.0<\/em><\/p>\n<span id=\"_2\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath2-199x300.jpg\" alt=\"\" title=\"trinidad_jdev_taglibpath2\" width=\"199\" height=\"300\" class=\"aligncenter size-medium wp-image-4021\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath2-199x300.jpg 199w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath2.jpg 332w\" sizes=\"auto, (max-width: 199px) 100vw, 199px\" \/><\/a><\/h6><\/span>\n<p>* Click <strong>OK<\/strong><\/p>\n<span id=\"_3\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath-300x214.jpg\" alt=\"\" title=\"trinidad_jdev_taglibpath\" width=\"300\" height=\"214\" class=\"aligncenter size-medium wp-image-4022\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath-300x214.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_taglibpath.jpg 696w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<p>* Select<em> Project Properties > Facelets Tag Libraries<\/em><br \/>\n* Click <strong>Add <\/strong>button and select both <em>Trinidad Components 2.0<\/em> and <em>Trinidad HTML Components 2.0<\/em><\/p>\n<span id=\"_4\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib-234x300.jpg\" alt=\"\" title=\"jdev11gr2_trinidad2_faceletsTagLib\" width=\"234\" height=\"300\" class=\"aligncenter size-medium wp-image-4041\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib-234x300.jpg 234w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib.jpg 371w\" sizes=\"auto, (max-width: 234px) 100vw, 234px\" \/><\/a><\/h6><\/span>\n<p>* Click <strong>OK<\/strong><\/p>\n<h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib2-300x213.jpg\" alt=\"\" title=\"jdev11gr2_trinidad2_faceletsTagLib2\" width=\"300\" height=\"213\" class=\"aligncenter size-medium wp-image-4042\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib2-300x213.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev11gr2_trinidad2_faceletsTagLib2.jpg 699w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n<\/h6>\n<p>* Click <strong>OK<\/strong><\/p>\n<span id=\"Configuration\"><h2>Configuration<\/h3><\/span>\n<p>* Configurations are similar to using Eclipse Indigo as JSF 2 IDE.<br \/>\n* See <a href=\"?p=3813\">here<\/a> for details<br \/>\n* Here is the web Content folder structure:<\/p>\n<span id=\"_5\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_folders.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_folders-300x232.jpg\" alt=\"\" title=\"jdev11gr2_trinidad2_folders\" width=\"300\" height=\"232\" class=\"aligncenter size-medium wp-image-3901\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_folders-300x232.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2011\/12\/jdev11gr2_trinidad2_folders.jpg 371w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Example\"><h2>Example<\/h2><\/span>\n<p>* See <a href=\"?p=3813#Example\">here <\/a>for configuration examples.<\/p>\n<span id=\"Deploy\"><h2>Deploy<\/h2><\/span>\n<span id=\"Deploy_to_Integrated_WebLogic_Server\"><h3>Deploy to Integrated WebLogic Server<\/h3><\/span>\n<p>* Right click test page, e.g. page1.xhtml, and click <strong>Run<\/strong><\/p>\n<span id=\"_6\"><h6><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_test_page1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_test_page1-300x121.jpg\" alt=\"\" title=\"trinidad_jdev_test_page1\" width=\"300\" height=\"121\" class=\"aligncenter size-medium wp-image-4033\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_test_page1-300x121.jpg 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_test_page1-1024x414.jpg 1024w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/trinidad_jdev_test_page1.jpg 1036w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/h6><\/span>\n<span id=\"Example_Source\"><h2>Example Source<\/h2><\/span>\n<p>* <a href='https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2012\/01\/jdev.jsf2_.trinidad2.app1_.proj1_.zip'>jdev.jsf2.trinidad2.app1.proj1<\/a><\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>*<a href=\"https:\/\/jianmingli.com\/wp\/?p=3813\"> Apache MyFaces Trinidad 2.0 + Eclipse Indigo + Tomcat 7<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setup Trinidad Project in JDev 11gR2 Download and Install JDeveloper 11g R2 * Download JDev 11gR2 from Oracle JDeveloper download site, e.g. jdevstudio11121install.exe. * Double click the download file to install. Setup User Libraries * JDev 11gR2 supports Trinidad 2 &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=3866\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[78,120],"tags":[],"class_list":["post-3866","post","type-post","status-publish","format-standard","hentry","category-jdev","category-jsf"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-10m","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3866"}],"version-history":[{"count":18,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3866\/revisions"}],"predecessor-version":[{"id":9139,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3866\/revisions\/9139"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}