File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ < ?xml version='1.0' encoding='UTF-8' ?>
2+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3+ < html xmlns ="http://www.w3.org/1999/xhtml "
4+ xmlns:h ="http://java.sun.com/jsf/html "
5+ xmlns:c ="http://java.sun.com/jsp/jstl/core ">
6+ < h:head >
7+ < title > Baeldung | Expression Language 3.0</ title >
8+ </ h:head >
9+ < h:body >
10+ < h:outputLabel id ="valueLabel " for ="valueOutput " value ="Composite Lambda Evaluation: "/>
11+ < h:outputText id ="valueOutput " value ="#{(cube=(x->x*x*x);cube(4))} "/>
12+ < br />
13+ < h:outputLabel id ="staticLabel " for ="staticFieldOutput " value ="Static Field Output: "/>
14+ < h:outputText id ="staticFieldOutput " value ="#{com.baeldung.el.controllers.ELSampleBean.constantField} "/>
15+ < br />
16+ < h:outputLabel id ="avgLabel " for ="avg " value ="Average of Integer List Value: "/>
17+ < h:outputText id ="avg " value ="#{['1','2','3'].stream().average().get()} "/>
18+ < br />
19+ < h:outputLabel id ="lambdaLabel " for ="lambdaPass " value ="Passing Lambda Expressions: "/>
20+ < h:outputText id ="lambdaPass " value ="#{ELBean.multiplyValue(x->x*x*x)} "/>
21+ < br />
22+ < h:outputLabel id ="avgPageVarLabel " for ="avgPageVar " value ="Average of Page-Level Integer List Value: "/>
23+ < h:outputText id ="avgPageVar " value ="#{pageLevelNumberList.stream().average().get()} "/>
24+ < br />
25+ < h:panelGrid title ="Data Structures " border ="3 " >
26+ < h:dataTable var ="streamResult " value ="#{ELBean.numberList.stream().filter(x-> x>1).toList()} ">
27+ < h:column id ="nameCol ">
28+ < h:outputText id ="name " value ="#{streamResult} "/>
29+ </ h:column >
30+ </ h:dataTable >
31+ </ h:panelGrid >
32+ < c:set var ='pageLevelNumberList ' value ="#{[1,2,3]} "/>
33+ </ h:body >
34+ </ html >
35+
You can’t perform that action at this time.
0 commit comments