JSF 튜토리얼에 오신 것을 환영합니다. Java Server Faces (JSF) 기술은 UI 구성 요소의 재사용을 통해 사용자 인터페이스 컴포넌트의 작성을 쉽게 만드는 프론트 엔드 프레임워크입니다. JSF는 프레젠테이션, 컨트롤러 및 비즈니스 로직을 분리하는 Model View Controller (MVC) 패턴에 기반하여 설계되었습니다.
JSF 튜토리얼
최근에는 많은 JSF 튜토리얼을 작성했으므로 이 JSF 튜토리얼은 JSF 프레임워크를 학습하기 위해 모든 튜토리얼을 순서대로 참조할 수 있는 색인 게시물입니다. 대부분의 JSF 튜토리얼은 예제를 통해 학습하기 위해 사용하고 일부 변경할 수 있는 프로젝트 zip 파일과 함께 제공됩니다.
-
JSF 초보자를 위한 튜토리얼
JSF 프레임워크를 시작하기에 이 튜토리얼이 완벽합니다. 기본 정보를 모두 얻고 Maven을 기반으로 한 첫 번째 “Hello World” JSF 프로젝트를 만들 수 있습니다. JSF 프레임워크에 대한 기본 지식이 있다면 건너뛸 수도 있습니다. 그러나 초보자 튜토리얼로 시작한 후에 더 많은 기능을 배우는 것이 항상 가장 좋은 방법입니다.
-
JSF 초보자를 위한 Primefaces 구현 튜토리얼
Primefaces는 JSF 사양의 가장 인기 있는 구현 중 하나입니다. 우리는 Primefaces에 대해 많은 게시물을 게시했지만, 이 게시물은 JSF 아키텍처도 다루고 있습니다. 좋은 UI 기반 프로젝트를 만들기 위해 우리는 다른 JSF 구현도 사용할 수 있다는 것을 이해하기 위해 이를 읽어보는 것이 좋습니다.
-
JSF View Pages 구성 요소 – 레이블, 이미지, 버튼, 텍스트 필드
이는 JSF 뷰 페이지를 시작하는 게시물로, 간단한 구성 요소인 레이블, 이미지, 버튼 등을 쉽게 추가하고 백엔드 관리 빈과 바인딩하는 방법을 배우게 됩니다.
-
JSF 리소스 번들 예제 튜토리얼
UI 레이블, 날짜, 상태 메시지 및 기타 UI 텍스트 요소를 페이지에 하드코딩하는 대신 별도의 속성 파일에 저장하는 현상을 리소스 번들링이라고 합니다. 기본적으로 JSF는 필드 유형이나 필드 길이 유효성 검사와 같은 컨텍스트에 따라 일부 표준 오류 메시지를 제공합니다. 이 튜토리얼은 로캘화를 위해 프로젝트에서 리소스 번들을 사용하는 방법과 리소스 번들 파일을 사용하여 표준 JSF 오류 메시지에 사용자 정의 메시지를 제공하는 방법에 대해 설명합니다.
-
JSF 오류 메시지 자습서
이 포스트에서는 기본 JSF 유효성 검사기를 사용하여 사용자에게 내장된 오류 메시지를 제공하는 방법을 배우게 될 것입니다. 또한 JSF HTML 태그의 간략한 사용 예도 확인할 수 있습니다.
-
JSF 페이지 탐색 자습서
페이지 탐색은 버튼을 클릭하거나 링크를 클릭하는 등의 이벤트에 기반하여 페이지를 리디렉션하는 것을 말합니다. 페이지 탐색을 정의하는 다양한 방법이 있습니다. 이에는 “제출 버튼의 action 속성에 페이지 이름 지정하기”, “관리되는 빈에서 페이지 지정하기”, “faces-config.xml에 탐색 지정하기” 및 “조건에 따라 탐색 정의하기”가 포함되며, 이러한 예제를 통해 이에 대해 알아보게 될 것입니다.
-
JSF UI 구성 요소 태그 예제 튜토리얼
JSF는 구성 요소 기반 프레임워크로, JSF의 강점은 관리되는 빈과 쉽게 통합되는 구성 요소 태그입니다. 이 포스트에서는 id, for, value, style, required, size 등 JSF HTML 태그에서 사용되는 다양한 속성에 대해 설명합니다.
-
JSF Form Components 예제 튜토리얼
폼 컴포넌트는 비즈니스 시나리오를 구현하는 모델로 전송되는 데이터와 제출 기능을 포함한 필드의 모음입니다. 폼 컴포넌트는 대부분의 웹 애플리케이션에서 로그인, 등록, 데이터베이스에 값 삽입 또는 업데이트 등과 같은 사용자 제출 데이터와 함께 작동하기 때문에 JSF에서 많이 사용됩니다. 이 글에서는 JSF 페이지에서 폼 컴포넌트를 사용하는 방법과 예제 프로젝트에서의 다양한 속성에 대해 설명합니다.
-
JSF 텍스트 구성 요소 예제 튜토리얼
JSF 텍스트 구성 요소는 웹 응용 프로그램의 형태로 데이터를 추가, 보기 및 편집할 수 있게 해줍니다. JSF 텍스트 구성 요소에는 레이블, 텍스트 필드, 텍스트 영역 및 비밀번호가 포함됩니다. 이 게시물에서는 예제 프로젝트를 통해 이 태그들의 사용법에 대해 알아보게 될 것입니다.
-
JSF 커맨드 구성 요소 태그 예제
JSF Command components are used for performing action and navigation in the JSF pages. This post explains about the h:commandButton and h:commandLink tags with example project.
The data bound table components are responsible for displaying the relational data in a tabular format. The h:dataTable tag is used for displaying the data components. The h:column tag iterates over each record in the data source displayed in rows. This is a very important component tag and you should understand it's usage and working carefully through the example project in the post.
JSF allows users to select multiple values for a single field with the help of h:selectManyListBox tag which corresponds to select tag in standard HTML. This post explains it's usage and different attributes of this tag with a working example.
JSF provides a special set of tags that gives the flexibility to manage common tags/parts in one place for more than one application. These tags allow us to create a common layout that can be used across applications. These are called facelets tags and this post explains about different facelets tags in detail with working example code.
JSF Event and Listener model is based on the JavaBeans Specification. An event is defined as a signal triggered based upon the user actions such as click of button, hyperlink, changing the input value etc. JSF tells the component to invoke the appropriate listener class that process the event generated by the user. This article explains about different events with example projects.
Form validations are common features in almost all web frameworks. JSF validation model defines a set of standard classes for validating the UI components. The JSF library defines a group of core tags that corresponds to `javax.faces.validator.Validator` implementations. Apart from the standard error messages validation model allows us to define the custom validations. Validations in JSF can be categorized into Imperative and Declarative.
Navigation rules specifies the navigation between the pages on click of button or hyperlink. Navigation can be specified in terms of the logical outcome such as success, failure or through action method. Navigation rules can be specified in faces-config.xml with the help of navigation-rule tag.
Navigations can also be handled in JSF by writing methods in the managed bean. These methods should be public, take no parameters and should returns an object or a view name. The method is invoked in the action attribute of the JSF page. You will learn about this way of navigation through example project in the post.
JSF Expression Language enables users to access the data dynamically from the JavaBeans components using various expressions. The EL supports the following kinds of expressions - Immediate value expressions or Deferred value expressions, Value expression or method expression and rvalue or lvalue expressions. Check out this post to understand about these in detail with example code.
Authentication mechanism allows users to have secure access to the application by validating the username and password. This tutorial shows you how to build session management with authentication in JSF application by using JSF view for login, DAO object, HttpSession for session management and JSF managed bean and mysql database.
Java Server Faces can be connected to database to perform operations on the data using JDBC API. This is a simple post where you will learn how to use JDBC API in a JSF based web application.
JSF is a component based framework with great focus on user interfaces. Whereas Spring framework core principle is Dependency Injection. So it makes sense to integrate JSF with Spring framework where JSF will be used for user interfaces and Spring framework will be used for backend server side business logic. This is an important article where you will learn how to integrate both these great frameworks and using the best features of each one.
JSF, Spring Framework and Hibernate - these three frameworks can be used together to build stunning web application where JSF components provide stunning UI, Spring components provide loose coupling through dependency injection and Hibernate takes care of interaction with database.
Finally if you are going to an interview and expecting JSF interview questions, then make sure you go through there. There are more than 50 questions with detailed answers that touch all the areas of JSF framework and help you in getting ready for the interview.
JSF 튜토리얼의 색인 포스트에 대한 모든 내용이 이것으로 마무리되었습니다. JSF 튜토리얼에 대해 더 많은 글을 작성할 때마다 목록에 추가하겠습니다. 만약 내가 JSF의 중요한 기능을 놓친 것 같다면, 아래의 댓글을 통해 알려주시면 해당 기능에 대해 포스트를 작성하여 이 목록에 포함시킬 수 있도록 하겠습니다.
Source:
https://www.digitalocean.com/community/tutorials/jsf-tutorial