{"id":56877,"date":"2016-06-01T13:00:35","date_gmt":"2016-06-01T10:00:35","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=56877"},"modified":"2016-06-01T10:18:50","modified_gmt":"2016-06-01T07:18:50","slug":"netbeans-java-ee-tip-9-create-jsf-application-database","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html","title":{"rendered":"NetBeans Java EE Tip #9: Create JSF Application from Database"},"content":{"rendered":"<p>Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables very quickly, and with very little coding. \u00a0Now this tutorial is an oldie, but a goodie&#8230;and it is worth mentioning again for those who are not aware of it.<\/p>\n<p>First, create your application. \u00a0In this case, I create a Maven Web Application by choosing &#8220;New Project&#8221;-&gt;&#8221;Maven&#8221;-&gt;&#8221;Web Application&#8221; (Figure 1).<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9a.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-56881\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9a.jpg\" alt=\"netbeans-ee-9a\" width=\"720\" height=\"511\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9a.jpg 720w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9a-300x213.jpg 300w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>Figure 1: \u00a0Maven Web Application<\/p>\n<p>Next, I provide the web application name of\u00a0JsfCustomers\u00a0since I&#8217;ll be making use of the CUSTOMERS sample database tables. \u00a0Once the application project is created, create a new Java package to hold the entity classes for the database. \u00a0In this case, I right-click on the project&#8217;s &#8220;Source Packages&#8221; and select &#8220;New&#8221;-&gt;&#8221;Java Package&#8230;&#8221;, and then name it\u00a0org.jsf.jsfcustomers.entity \u00a0(Figure 2).<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9b.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-56883\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9b.jpg\" alt=\"netbeans-ee-9b\" width=\"721\" height=\"509\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9b.jpg 721w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9b-300x212.jpg 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/a><\/p>\n<p>Figure 2: \u00a0New Java Package<\/p>\n<p>After the package is created, right-click on it and select &#8220;New&#8221;-&gt;&#8221;Entity Classes from Database&#8221;, which I&#8217;ve covered in a previous posting. \u00a0This wizard allows me to select a set of database tables from one of my connections&#8230;here I choose my sample database and select the\u00a0CUSTOMER table. \u00a0After doing so, all related database tables are automatically added to the &#8220;Selected Tables&#8221; list&#8230;click next (Figure 3).<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9c.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-56884\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9c.jpg\" alt=\"netbeans-ee-9c\" width=\"721\" height=\"521\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9c.jpg 721w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9c-300x217.jpg 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/a><\/p>\n<p>Figure 3: \u00a0Create Entity Classes from Database<\/p>\n<p>The next wizard page (Figure 4) allows me to select various options for generating my entity classes&#8230;I&#8217;ll leave the defaults and click &#8220;Finish&#8221;.<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9d.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-56885\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9d.jpg\" alt=\"netbeans-ee-9d\" width=\"782\" height=\"550\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9d.jpg 782w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9d-300x211.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9d-768x540.jpg 768w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p>Figure 4: \u00a0Entity Class Options<\/p>\n<p>After doing so, the entity classes for my database have been generated. \u00a0Now it is time to put the icing on the cake. \u00a0Since the database entity classes are now available, I can generate the entire JavaServer Faces infrastructure with just a few clicks. \u00a0Right click on the project&#8217;s &#8220;Web Pages&#8221; folder and select &#8220;New&#8221;-&gt;&#8221;JavaServer Pages&#8221;-&gt;&#8221;JSF Pages from Entity Classes&#8221; (Figure 5).<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9f.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-56886\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9f.jpg\" alt=\"netbeans-ee-9f\" width=\"721\" height=\"509\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9f.jpg 721w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9f-300x212.jpg 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/a><\/p>\n<p>Figure 5: \u00a0Create JSF Pages from Entity Classes<\/p>\n<p>Next, select all of the entity classes that have been created, and click &#8220;Next&#8221; (Figure 6).<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9g.jpg\"><img decoding=\"async\" class=\"aligncenter wp-image-56887\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9g.jpg\" alt=\"netbeans-ee-9g\" width=\"840\" height=\"493\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9g.jpg 869w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9g-300x176.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9g-768x451.jpg 768w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/a><\/p>\n<p>Figure 6: \u00a0Select Entity Classes<\/p>\n<p>Lastly, specify options for creating your JSF classes and pages. \u00a0First, I specify a good name for my EJB session bean and JSF Controller packages. \u00a0The EJBs and controllers will be automatically generated into these locations. \u00a0Next, select the web folder where the JSF pages should be generated&#8230;leave blank for the root. \u00a0Lastly, I chose to utilize the PrimeFaces pages template to make use of PrimeFaces components. \u00a0Click next and choose the JSF configuration that has been previously registered with the IDE (Figure 7). \u00a0Lastly&#8230;click &#8220;Finish&#8221; and see the magic&#8230;the web application and all of the JavaServer Faces infrastructure is generated automatically (Figure 8).<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9h.jpg\"><img decoding=\"async\" class=\"aligncenter wp-image-56888\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9h.jpg\" alt=\"netbeans-ee-9h\" width=\"860\" height=\"529\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9h.jpg 871w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9h-300x185.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9h-768x473.jpg 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p>Figure 7: \u00a0JavaServer Faces Configuration<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9i.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-56889\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9i.jpg\" alt=\"netbeans-ee-9i\" width=\"417\" height=\"364\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9i.jpg 417w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9i-300x262.jpg 300w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/a><\/p>\n<p>Figure 8: \u00a0Completed JSF Application<\/p>\n<p>Note that you may need to right-click on your project &#8220;Dependencies&#8221; module and add PrimeFaces (Figure 9).<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9j.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-56890\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9j.jpg\" alt=\"netbeans-ee-9j\" width=\"583\" height=\"566\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9j.jpg 583w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9j-300x291.jpg 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n<p>Figure 9: \u00a0Add Maven Dependency<\/p>\n<p>Now build and run your application&#8230;and it is ready to use!<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9k.jpg\"><img decoding=\"async\" class=\"aligncenter wp-image-56891\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9k.jpg\" alt=\"netbeans-ee-9k\" width=\"860\" height=\"452\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9k.jpg 1441w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9k-300x158.jpg 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9k-768x403.jpg 768w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/06\/netbeans-ee-9k-1024x538.jpg 1024w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/jj-blogger.blogspot.com\/2016\/05\/netbeans-java-ee-tip-9-create-jsf.html\">NetBeans Java EE Tip #9: Create JSF Application from Database<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\">JCG partner<\/a> Josh Juneau at the <a href=\"http:\/\/jj-blogger.blogspot.com\/\">Josh&#8217;s Dev Blog &#8211; Java, Java EE, Jython, Oracle, and More&#8230;<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables very quickly, and with very little coding. \u00a0Now this tutorial is an oldie, but a goodie&#8230;and it is worth mentioning again for those who are not aware &hellip;<\/p>\n","protected":false},"author":605,"featured_media":192,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[293,187],"class_list":["post-56877","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-jsf","tag-netbeans"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>NetBeans Java EE Tip #9: Create JSF Application from Database - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables\" \/>\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.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NetBeans Java EE Tip #9: Create JSF Application from Database - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-01T10:00:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/netbeans-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Josh Juneau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/javajuneau\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Josh Juneau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html\"},\"author\":{\"name\":\"Josh Juneau\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/c8b1ce85156b06b3953341a9dfaae89a\"},\"headline\":\"NetBeans Java EE Tip #9: Create JSF Application from Database\",\"datePublished\":\"2016-06-01T10:00:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html\"},\"wordCount\":541,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/netbeans-logo.jpg\",\"keywords\":[\"JSF\",\"Netbeans\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html\",\"name\":\"NetBeans Java EE Tip #9: Create JSF Application from Database - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/netbeans-logo.jpg\",\"datePublished\":\"2016-06-01T10:00:35+00:00\",\"description\":\"Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/netbeans-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/netbeans-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/06\\\/netbeans-java-ee-tip-9-create-jsf-application-database.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"NetBeans Java EE Tip #9: Create JSF Application from Database\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/c8b1ce85156b06b3953341a9dfaae89a\",\"name\":\"Josh Juneau\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7410fb64f5d5278eb4bac42342d408f052eadb27f0b7773c8ca7de595c44cb15?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7410fb64f5d5278eb4bac42342d408f052eadb27f0b7773c8ca7de595c44cb15?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7410fb64f5d5278eb4bac42342d408f052eadb27f0b7773c8ca7de595c44cb15?s=96&d=mm&r=g\",\"caption\":\"Josh Juneau\"},\"description\":\"Josh is an application developer and technical writer. He has authored several books for Apress, primarily focusing on Java development. Most recently, he has authored Java EE 7 Recipes, Introducing Java EE 7, and Java 8 Recipes. Josh is a member of the JCP, and he is on the JSF 2.3 Expert Group.\",\"sameAs\":[\"http:\\\/\\\/jj-blogger.blogspot.gr\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/profile\\\/view?id=22074683\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/javajuneau\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/josh-juneau\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NetBeans Java EE Tip #9: Create JSF Application from Database - Java Code Geeks","description":"Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables","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.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html","og_locale":"en_US","og_type":"article","og_title":"NetBeans Java EE Tip #9: Create JSF Application from Database - Java Code Geeks","og_description":"Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables","og_url":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-06-01T10:00:35+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/netbeans-logo.jpg","type":"image\/jpeg"}],"author":"Josh Juneau","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/javajuneau","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Josh Juneau","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html"},"author":{"name":"Josh Juneau","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/c8b1ce85156b06b3953341a9dfaae89a"},"headline":"NetBeans Java EE Tip #9: Create JSF Application from Database","datePublished":"2016-06-01T10:00:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html"},"wordCount":541,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/netbeans-logo.jpg","keywords":["JSF","Netbeans"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html","url":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html","name":"NetBeans Java EE Tip #9: Create JSF Application from Database - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/netbeans-logo.jpg","datePublished":"2016-06-01T10:00:35+00:00","description":"Do you need to create an database front-end very quickly? \u00a0The NetBeans IDE allows one to develop a JSF application front end for a set of database tables","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/netbeans-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/netbeans-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2016\/06\/netbeans-java-ee-tip-9-create-jsf-application-database.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"NetBeans Java EE Tip #9: Create JSF Application from Database"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/c8b1ce85156b06b3953341a9dfaae89a","name":"Josh Juneau","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7410fb64f5d5278eb4bac42342d408f052eadb27f0b7773c8ca7de595c44cb15?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7410fb64f5d5278eb4bac42342d408f052eadb27f0b7773c8ca7de595c44cb15?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7410fb64f5d5278eb4bac42342d408f052eadb27f0b7773c8ca7de595c44cb15?s=96&d=mm&r=g","caption":"Josh Juneau"},"description":"Josh is an application developer and technical writer. He has authored several books for Apress, primarily focusing on Java development. Most recently, he has authored Java EE 7 Recipes, Introducing Java EE 7, and Java 8 Recipes. Josh is a member of the JCP, and he is on the JSF 2.3 Expert Group.","sameAs":["http:\/\/jj-blogger.blogspot.gr\/","https:\/\/www.linkedin.com\/profile\/view?id=22074683","https:\/\/x.com\/https:\/\/twitter.com\/javajuneau"],"url":"https:\/\/www.javacodegeeks.com\/author\/josh-juneau"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/56877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/605"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=56877"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/56877\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=56877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=56877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=56877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}