1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.shared_impl.taglib.html; |
20 | |
|
21 | |
import org.apache.myfaces.shared_impl.renderkit.JSFAttr; |
22 | |
|
23 | |
import javax.el.MethodExpression; |
24 | |
import javax.el.ValueExpression; |
25 | |
import javax.faces.component.UIComponent; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | 0 | public abstract class HtmlInputELTagBase |
33 | |
extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentELTagBase |
34 | |
{ |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
private ValueExpression _immediate; |
42 | |
private ValueExpression _required; |
43 | |
private MethodExpression _validator; |
44 | |
private MethodExpression _valueChangeListener; |
45 | |
private ValueExpression _readonly; |
46 | |
|
47 | |
public void release() { |
48 | 0 | super.release(); |
49 | |
|
50 | 0 | _immediate=null; |
51 | 0 | _required=null; |
52 | 0 | _validator=null; |
53 | 0 | _valueChangeListener=null; |
54 | 0 | _readonly=null; |
55 | 0 | } |
56 | |
|
57 | |
protected void setProperties(UIComponent component) |
58 | |
{ |
59 | 0 | super.setProperties(component); |
60 | |
|
61 | 0 | setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.IMMEDIATE_ATTR, _immediate); |
62 | 0 | setBooleanProperty(component, JSFAttr.REQUIRED_ATTR, _required); |
63 | 0 | addValidatorProperty(component, _validator); |
64 | 0 | addValueChangedListenerProperty(component, _valueChangeListener); |
65 | 0 | setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.READONLY_ATTR, _readonly); |
66 | 0 | } |
67 | |
|
68 | |
public void setImmediate(ValueExpression immediate) |
69 | |
{ |
70 | 0 | _immediate = immediate; |
71 | 0 | } |
72 | |
|
73 | |
public void setRequired(ValueExpression required) |
74 | |
{ |
75 | 0 | _required = required; |
76 | 0 | } |
77 | |
|
78 | |
public void setValidator(MethodExpression validator) |
79 | |
{ |
80 | 0 | _validator = validator; |
81 | 0 | } |
82 | |
|
83 | |
public void setValueChangeListener(MethodExpression valueChangeListener) |
84 | |
{ |
85 | 0 | _valueChangeListener = valueChangeListener; |
86 | 0 | } |
87 | |
public void setReadonly(ValueExpression _readonly) { |
88 | 0 | this._readonly = _readonly; |
89 | 0 | } |
90 | |
|
91 | |
} |