{"id":66423,"date":"2021-07-19T04:10:04","date_gmt":"2021-07-19T08:10:04","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/jsf-lesson-1-jsf-specifications-java-short-notes\/"},"modified":"2021-07-19T04:10:04","modified_gmt":"2021-07-19T08:10:04","slug":"jsf-lesson-1-jsf-specifications-java-short-notes","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=66423","title":{"rendered":"JSF: Lesson &#8211; 1: JSF Specifications #Java Short Notes"},"content":{"rendered":"<li> <a href='http:\/\/www.justetc.net\/knowledge\/multimedia_training\/displayArticle.php?table=TrainingVideos&amp;articleID=7'>Video Demonstration of a sample JSF application create: Read the article first<\/a>\n<ul>\n<li> <a href='http:\/\/java.sun.com\/javaee\/javaserverfaces\/' target='new' rel=\"noopener\">JSF Specifications<\/a>    <\/li>\n<li> JSF is not standalone technology, you have to use it in conjunction with JSPs, Servlets, EJBs    <\/li>\n<li> How to use JSF with Servlets and EJBs: In Servlet or EJB, explicitly create instances of UI components and use the UI classes directly   <\/li>\n<li> JSF with JSPs: Use the JSF custom tag library with JSP    <\/li>\n<li> To use JSF, you need to understand JSF lifecycle: take a look at <a href='http:\/\/www.ibm.com\/developerworks\/library\/j-jsf2\/' target='new' rel=\"noopener\">JSF Lifecycle<\/a>: Restore view, Apply request values, Process validations, Update model values, Invoke application, Render response  <\/li>\n<li> How to install JSF: Current version of Sun&#8217;s Application Server contains JSF and JSTL  <\/li>\n<li> For Tomcat 5.5:\n<ul>\n<li> Download JSF from http:\/\/java.sun.com\/j2ee\/javaserverfaces\/download.html and  JSTL from http:\/\/jakarta.apache.org\/taglibs\/doc\/standard-doc\/intro.html.   <\/li>\n<li> Put these Six JSF JARs into your project WEB-INF\/lib  folder or tomcat lib folder: commons-beanutils.jar, commons-collections.jar, commons-digester.jar, commons-logging.jar, jsf-api.jar, and jsf-impl.jar<\/li>\n<li> <a href='https:\/\/javaserverfaces.dev.java.net\/servlets\/ProjectDocumentList?folderID=5420&amp;expandFolder=5420&amp;folderID=5420' target='new' rel=\"noopener\">Download JSF Jars<\/a> <\/li>\n<li> Put these two JSTL JARs in the same way: jstl.jar and standard.jar   <\/li>\n<\/ul>\n<\/li>\n<li> JSF provides different custom actions as will be provided below: <\/li>\n<li> You can use these elements\/controls\/actions to collect user data, to display output, to validate user inputs, control the flow of the application dynamically\/statically also, convert data from one type to another.<\/li>\n<li> HTML Custom Actions<br \/><b>Input: To create input elements<\/b><br \/>h:inputHidden, h:inputSecret,h:inputText, h:inputTextarea\n<p><b>Output:create output elements<\/b>h:message, h:messages,h:outputFormat, h:outputLabel,h:outputLink, h:outputText<br \/><b>Selection: Create selection elements like combo boxes<\/b>h:selectBooleanCheckbox,h:selectManyCheckbox,h:selectManyListbox,h:selectManyMenu,h:selectOneListbox,h:selectOneMenu,h:selectOneRadio<br \/><b>Commands: Create form submission buttons or links<\/b><br \/>h:commandButton,h:commandLink<br \/><b>Miscellaneous<\/b><br \/>h:dataTable, h:form,h:graphicImage, h:panelGrid,h:panelGroup, h:column <\/li>\n<li> <b>JSF Core custom actions:<\/b>\n<p><b>Converters:Standard<\/b><br \/>f:convertDateTime,f:convertNumber, f:converter<br \/><b>Listeners:Listener for a component<\/b><br \/>f:actionListener,f:valueChangeListener<br \/><b>Miscellaneous<\/b><br \/>f:attribute, f:loadBundle,f:param, f:verbatim\t<br \/><b>Selection<\/b><br \/>f:selectItem, f:selectItems<br \/><b>Validators:Standard<\/b><br \/>f:validateDoubleRange,f:validateLength ,f:validateLongRange ,f:validator<br \/><b>View: Create JSF view or sub-view<\/b><br \/>f:facet, f:subview, f:view\t<\/li>\n<li><b>An example of JSF with JSP with Managed Bean Support<\/b>\n<ul>\n<li> You need a configuration file like faces-config.xml , or you can use any other file but you have to supply the file name in the web.xml file.<\/li>\n<li> To use a managed bean, you need to define a managed bean in the JSF configuration file with a name, class, and scope<\/li>\n<li> Also you need to define navigation rules in the configuration file. A navigation-rule defines the start page, a condition, and which page to navigate to when the condition occurs<\/li>\n<li> Create the managed bean class<\/li>\n<li> In your JSP, you should refer to the JSF tag libs and JSTL tag libs by\n<\/li>\n<li> Then in the JSP page you will be able to use the JSF tags and the managed beans directly<\/li>\n<li> <a href='codes\/jsf\/test.rar'>A sample example with code<\/a><\/li>\n<li> <a href=''>Video Demonstration of the example JSF application create <\/a><\/li>\n<li> Details about other JSF features like: using managed beans, controlling page navigation, accessing JSF context data in beans, converting data, validating user inputs, using message bundles to support internationalization will be disucssed in another article.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<p> From: http:\/\/sitestree.com\/?p=4991<br \/> Categories:Java Short Notes<br \/>Tags:<br \/> Post Data:2012-10-30 13:33:53<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Video Demonstration of a sample JSF application create: Read the article first JSF Specifications JSF is not standalone technology, you have to use it in conjunction with JSPs, Servlets, EJBs How to use JSF with Servlets and EJBs: In Servlet or EJB, explicitly create instances of UI components and use the UI classes directly JSF &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=66423\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-66423","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":66421,"url":"http:\/\/bangla.sitestree.com\/?p=66421","url_meta":{"origin":66423,"position":0},"title":"Key J2EE  Components : Basic Concepts with Examples #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Java EE 5 (J2EE 5) uses XML deployment descriptors for the configuration of the web-applications and web-components. What Java EE provides? It provides the internal framework\/structure\/system level capability\/system-level infrastructure to support large enterprise level applications with features like distributed database, distributed computing , security, and transaction management. J2EE also provides\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":74781,"url":"http:\/\/bangla.sitestree.com\/?p=74781","url_meta":{"origin":66423,"position":1},"title":"Playlist: Anything Java","author":"Sayed","date":"May 31, 2022","format":false,"excerpt":"Playlist: Anything Java: https:\/\/www.youtube.com\/playlist... #SaLearningSchoolShopForSoulSitesTree, #SaLearningSchool, #ShopForSoul, #SitesTree Starting Java training basic file operations in java basic java language concepts bengali javascript debugging data conversion in jsf applications debugging javascript code Docker and Vagrant Optional Java and\/or PHP Platform ejb application with bea weblogic eclipse experiment eclipse ant how to\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":74778,"url":"http:\/\/bangla.sitestree.com\/?p=74778","url_meta":{"origin":66423,"position":2},"title":"JSF: Java Server Faces Short Notes from the past","author":"Sayed","date":"May 31, 2022","format":false,"excerpt":"JSF: Java Server Faces Short Notes from the past http:\/\/bangla.salearningschool.com\/recent-posts?s=jsf Data conversion in jsf applications 2022\/04\/15 at 10:01 am 0 views Select internationalization in jsf #AngularJS #By Sayed Ahmed internationalization in jsf #AngularJS #By Sayed Ahmed 2021\/08\/02 at 4:10 am 0 views Select data conversion in jsf applications #AngularJS #By\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":66431,"url":"http:\/\/bangla.sitestree.com\/?p=66431","url_meta":{"origin":66423,"position":3},"title":"JSF: Lesson &#8211; 5: Converting Data #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Sample application for JSF Data Type Converter Video Tutorial for JSF Data Type Converter Pre-requisite: JSF Lesson 1, 2, 3, 4 JSF provides two different types of built-in data type converters such as: String and Date Conversion, Number and String Conversion. Related tags: f:convertDateTime, f:convertNumber, f:converter In our previous examples,\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":66425,"url":"http:\/\/bangla.sitestree.com\/?p=66425","url_meta":{"origin":66423,"position":4},"title":"JSF: Lesson &#8211; 2: JSF Managed Beans #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Codes for this article Video Demonstration for this article Target: Intermediate level programmers and web-developers. Any programmer\/web-developer can take a look. Pre-requisite: HTML, JSP, Servlet, Tomcat, J2EE, MVC, and JSF Introduction. Check the corresponding sections of this web-site, to have an idea on the required technology knowledge Pre-requisite: Download this\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":66435,"url":"http:\/\/bangla.sitestree.com\/?p=66435","url_meta":{"origin":66423,"position":5},"title":"JSF: Lesson &#8211; 7: Using Message Bundles in JSF: Support Internationalization #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Target: Intermediate level web-developers (Java-platform). Sample application on Internationalization with JSF Video Tutorial on Internationalization with JSF To support Internationalization, in the web-pages, the text messages and the control texts make use of the keys for the values\/messages. In the value fields, keys are mentioned\/provided as the values. Later, based\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/66423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66423"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/66423\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}