From the course: Java EE: JavaServer Faces JSF
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Functional programming with EL
From the course: Java EE: JavaServer Faces JSF
Functional programming with EL
- [Instructor] Expression language supports functional programming via lambda expressions and java streams. The functional program's support comes without the need for even java eight. What does it look like? We'll go back to our list of dog breeds. Let's reuse this list of dogs and filter for only dog breeds starting with letter C. So, this is our list of dogs on that. We'll call the stream method and then we want to filter the dog breed and then, only dog breeds that start with the letter C. And then collect that into a list. Let's save this and see what it looks like. And there we have it. Our list of dogs breeds has been filtered down just to the Corgi. Cause it starts with the letter C. Now ideally we should limit the amount of java code that will bleed into the facelets page. But there are some powerful use cases for this functionality. Finally for some configuration. By default, comments in facelets pages like this. This is a comment. Close that out. Comments like this will…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Introduction to Facelets5m 47s
-
ViewAction and common properties5m 14s
-
Common input text components5m 51s
-
Selection components11m 8s
-
JSF file upload component5m 33s
-
Page layout components4m 54s
-
Display from data structures in Facelets2m 56s
-
Tables in JSF4m 18s
-
Links and buttons2m 59s
-
Display messages4m 48s
-
HTML5 markup and support in JSF7m 45s
-
Bind components to the backing bean3m 13s
-
Expression language in JSF5m 24s
-
Functional programming with EL2m 44s
-
-
-
-
-
-
-