1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.el; |
20 | |
|
21 | |
import javax.faces.context.FacesContext; |
22 | |
import javax.faces.el.EvaluationException; |
23 | |
import javax.faces.el.PropertyNotFoundException; |
24 | |
import javax.faces.el.PropertyResolver; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@SuppressWarnings("deprecation") |
33 | 0 | public final class DefaultPropertyResolver extends PropertyResolver |
34 | |
{ |
35 | |
private void updatePropertyResolved() |
36 | |
{ |
37 | 0 | FacesContext.getCurrentInstance().getELContext().setPropertyResolved(false); |
38 | 0 | } |
39 | |
|
40 | |
@Override |
41 | |
public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException |
42 | |
{ |
43 | 0 | updatePropertyResolved(); |
44 | 0 | return null; |
45 | |
} |
46 | |
|
47 | |
@Override |
48 | |
public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException |
49 | |
{ |
50 | 0 | updatePropertyResolved(); |
51 | 0 | return null; |
52 | |
} |
53 | |
|
54 | |
@Override |
55 | |
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException |
56 | |
{ |
57 | 0 | updatePropertyResolved(); |
58 | 0 | return null; |
59 | |
} |
60 | |
|
61 | |
@Override |
62 | |
public Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException |
63 | |
{ |
64 | 0 | updatePropertyResolved(); |
65 | 0 | return null; |
66 | |
} |
67 | |
|
68 | |
@Override |
69 | |
public boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException |
70 | |
{ |
71 | 0 | updatePropertyResolved(); |
72 | 0 | return false; |
73 | |
} |
74 | |
|
75 | |
@Override |
76 | |
public boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException |
77 | |
{ |
78 | 0 | updatePropertyResolved(); |
79 | 0 | return false; |
80 | |
} |
81 | |
|
82 | |
@Override |
83 | |
public void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException |
84 | |
{ |
85 | 0 | updatePropertyResolved(); |
86 | 0 | } |
87 | |
|
88 | |
@Override |
89 | |
public void setValue(Object base, Object property, Object value) throws EvaluationException, |
90 | |
PropertyNotFoundException |
91 | |
{ |
92 | 0 | updatePropertyResolved(); |
93 | 0 | } |
94 | |
|
95 | |
} |