1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.view.facelets.el;
20
21 import javax.el.ELContext;
22 import javax.el.ELException;
23 import javax.el.PropertyNotFoundException;
24 import javax.el.ValueExpression;
25 import javax.el.ValueReference;
26 import javax.faces.view.facelets.TagAttribute;
27
28
29
30
31
32
33
34 public class TagValueExpressionUEL extends TagValueExpression
35 {
36
37 public TagValueExpressionUEL()
38 {
39 super();
40 }
41
42 public TagValueExpressionUEL(TagAttribute attr, ValueExpression orig)
43 {
44 super(attr, orig);
45 }
46
47 @Override
48 public ValueReference getValueReference(ELContext context)
49 {
50 try
51 {
52 return this.orig.getValueReference(context);
53 }
54 catch (PropertyNotFoundException pnfe)
55 {
56 throw new PropertyNotFoundException(this.attr + ": " + pnfe.getMessage(), pnfe.getCause());
57 }
58 catch (ELException e)
59 {
60 throw new ELException(this.attr + ": " + e.getMessage(), e.getCause());
61 }
62 }
63
64 }