-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathElExampleManagedBean.java
More file actions
41 lines (36 loc) · 999 Bytes
/
ElExampleManagedBean.java
File metadata and controls
41 lines (36 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.javaee7.chapter03;
import javax.enterprise.context.SessionScoped;
import javax.faces.bean.ManagedBean;
/**
*
* @author Juneau
*/
@ManagedBean(name = "elExampleManagedBean")
@SessionScoped
public class ElExampleManagedBean implements java.io.Serializable {
/**
* Creates a new instance of ElExampleManagedBean
*/
public ElExampleManagedBean() {
}
public boolean determineWage(javax.el.LambdaExpression le){
Employee e = new Employee(); // Grab an employee instance
// if (le.invoke(e)){
// return true;
// } else {
return false;
// }
}
public boolean displayResult(javax.el.LambdaExpression le){
Employee e = new Employee(); // Grab an employee instance
if ((Boolean)le.invoke(e)){
return true;
} else {
return false;
}
}
}