KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > strutsel > taglib > html > ELSelectTag


1 /*
2  * $Id: ELSelectTag.java 123585 2004-12-29 00:43:33Z martinc $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.strutsel.taglib.html;
20
21 import org.apache.struts.taglib.html.SelectTag;
22 import javax.servlet.jsp.JspException JavaDoc;
23 import org.apache.strutsel.taglib.utils.EvalHelper;
24
25 /**
26  * Custom tag that represents an HTML select element, associated with a
27  * bean property specified by our attributes. This tag must be nested
28  * inside a form tag.
29  *<p>
30  * This class is a subclass of the class
31  * <code>org.apache.struts.taglib.html.SelectTag</code> which provides most of
32  * the described functionality. This subclass allows all attribute values to
33  * be specified as expressions utilizing the JavaServer Pages Standard Library
34  * expression language.
35  *
36  * @version $Rev: 123585 $
37  */

38 public class ELSelectTag extends SelectTag {
39
40     /**
41      * Instance variable mapped to "alt" tag attribute.
42      * (Mapping set in associated BeanInfo class.)
43      */

44     private String JavaDoc altExpr;
45     /**
46      * Instance variable mapped to "altKey" tag attribute.
47      * (Mapping set in associated BeanInfo class.)
48      */

49     private String JavaDoc altKeyExpr;
50     /**
51      * Instance variable mapped to "bundle" tag attribute.
52      * (Mapping set in associated BeanInfo class.)
53      */

54     private String JavaDoc bundleExpr;
55     /**
56      * Instance variable mapped to "disabled" tag attribute.
57      * (Mapping set in associated BeanInfo class.)
58      */

59     private String JavaDoc disabledExpr;
60     /**
61      * Instance variable mapped to "errorKey" tag attribute.
62      * (Mapping set in associated BeanInfo class.)
63      */

64     private String JavaDoc errorKeyExpr;
65     /**
66      * Instance variable mapped to "errorStyle" tag attribute.
67      * (Mapping set in associated BeanInfo class.)
68      */

69     private String JavaDoc errorStyleExpr;
70     /**
71      * Instance variable mapped to "errorStyleClass" tag attribute.
72      * (Mapping set in associated BeanInfo class.)
73      */

74     private String JavaDoc errorStyleClassExpr;
75     /**
76      * Instance variable mapped to "errorStyleId" tag attribute.
77      * (Mapping set in associated BeanInfo class.)
78      */

79     private String JavaDoc errorStyleIdExpr;
80     /**
81      * Instance variable mapped to "indexed" tag attribute.
82      * (Mapping set in associated BeanInfo class.)
83      */

84     private String JavaDoc indexedExpr;
85     /**
86      * Instance variable mapped to "multiple" tag attribute.
87      * (Mapping set in associated BeanInfo class.)
88      */

89     private String JavaDoc multipleExpr;
90     /**
91      * Instance variable mapped to "name" tag attribute.
92      * (Mapping set in associated BeanInfo class.)
93      */

94     private String JavaDoc nameExpr;
95     /**
96      * Instance variable mapped to "onblur" tag attribute.
97      * (Mapping set in associated BeanInfo class.)
98      */

99     private String JavaDoc onblurExpr;
100     /**
101      * Instance variable mapped to "onchange" tag attribute.
102      * (Mapping set in associated BeanInfo class.)
103      */

104     private String JavaDoc onchangeExpr;
105     /**
106      * Instance variable mapped to "onclick" tag attribute.
107      * (Mapping set in associated BeanInfo class.)
108      */

109     private String JavaDoc onclickExpr;
110     /**
111      * Instance variable mapped to "ondblclick" tag attribute.
112      * (Mapping set in associated BeanInfo class.)
113      */

114     private String JavaDoc ondblclickExpr;
115     /**
116      * Instance variable mapped to "onfocus" tag attribute.
117      * (Mapping set in associated BeanInfo class.)
118      */

119     private String JavaDoc onfocusExpr;
120     /**
121      * Instance variable mapped to "onkeydown" tag attribute.
122      * (Mapping set in associated BeanInfo class.)
123      */

124     private String JavaDoc onkeydownExpr;
125     /**
126      * Instance variable mapped to "onkeypress" tag attribute.
127      * (Mapping set in associated BeanInfo class.)
128      */

129     private String JavaDoc onkeypressExpr;
130     /**
131      * Instance variable mapped to "onkeyup" tag attribute.
132      * (Mapping set in associated BeanInfo class.)
133      */

134     private String JavaDoc onkeyupExpr;
135     /**
136      * Instance variable mapped to "onmousedown" tag attribute.
137      * (Mapping set in associated BeanInfo class.)
138      */

139     private String JavaDoc onmousedownExpr;
140     /**
141      * Instance variable mapped to "onmousemove" tag attribute.
142      * (Mapping set in associated BeanInfo class.)
143      */

144     private String JavaDoc onmousemoveExpr;
145     /**
146      * Instance variable mapped to "onmouseout" tag attribute.
147      * (Mapping set in associated BeanInfo class.)
148      */

149     private String JavaDoc onmouseoutExpr;
150     /**
151      * Instance variable mapped to "onmouseover" tag attribute.
152      * (Mapping set in associated BeanInfo class.)
153      */

154     private String JavaDoc onmouseoverExpr;
155     /**
156      * Instance variable mapped to "onmouseup" tag attribute.
157      * (Mapping set in associated BeanInfo class.)
158      */

159     private String JavaDoc onmouseupExpr;
160     /**
161      * Instance variable mapped to "property" tag attribute.
162      * (Mapping set in associated BeanInfo class.)
163      */

164     private String JavaDoc propertyExpr;
165     /**
166      * Instance variable mapped to "size" tag attribute.
167      * (Mapping set in associated BeanInfo class.)
168      */

169     private String JavaDoc sizeExpr;
170     /**
171      * Instance variable mapped to "style" tag attribute.
172      * (Mapping set in associated BeanInfo class.)
173      */

174     private String JavaDoc styleExpr;
175     /**
176      * Instance variable mapped to "styleClass" tag attribute.
177      * (Mapping set in associated BeanInfo class.)
178      */

179     private String JavaDoc styleClassExpr;
180     /**
181      * Instance variable mapped to "styleId" tag attribute.
182      * (Mapping set in associated BeanInfo class.)
183      */

184     private String JavaDoc styleIdExpr;
185     /**
186      * Instance variable mapped to "tabindex" tag attribute.
187      * (Mapping set in associated BeanInfo class.)
188      */

189     private String JavaDoc tabindexExpr;
190     /**
191      * Instance variable mapped to "title" tag attribute.
192      * (Mapping set in associated BeanInfo class.)
193      */

194     private String JavaDoc titleExpr;
195     /**
196      * Instance variable mapped to "titleKey" tag attribute.
197      * (Mapping set in associated BeanInfo class.)
198      */

199     private String JavaDoc titleKeyExpr;
200     /**
201      * Instance variable mapped to "value" tag attribute.
202      * (Mapping set in associated BeanInfo class.)
203      */

204     private String JavaDoc valueExpr;
205
206     /**
207      * Getter method for "alt" tag attribute.
208      * (Mapping set in associated BeanInfo class.)
209      */

210     public String JavaDoc getAltExpr() { return (altExpr); }
211     /**
212      * Getter method for "altKey" tag attribute.
213      * (Mapping set in associated BeanInfo class.)
214      */

215     public String JavaDoc getAltKeyExpr() { return (altKeyExpr); }
216     /**
217      * Getter method for "bundle" tag attribute.
218      * (Mapping set in associated BeanInfo class.)
219      */

220     public String JavaDoc getBundleExpr() { return (bundleExpr); }
221     /**
222      * Getter method for "disabled" tag attribute.
223      * (Mapping set in associated BeanInfo class.)
224      */

225     public String JavaDoc getDisabledExpr() { return (disabledExpr); }
226     /**
227      * Getter method for "errorKey" tag attribute.
228      * (Mapping set in associated BeanInfo class.)
229      */

230     public String JavaDoc getErrorKeyExpr() { return (errorKeyExpr); }
231     /**
232      * Getter method for "errorStyle" tag attribute.
233      * (Mapping set in associated BeanInfo class.)
234      */

235     public String JavaDoc getErrorStyleExpr() { return (errorStyleExpr); }
236     /**
237      * Getter method for "errorStyleClass" tag attribute.
238      * (Mapping set in associated BeanInfo class.)
239      */

240     public String JavaDoc getErrorStyleClassExpr() { return (errorStyleClassExpr); }
241     /**
242      * Getter method for "errorStyleId" tag attribute.
243      * (Mapping set in associated BeanInfo class.)
244      */

245     public String JavaDoc getErrorStyleIdExpr() { return (errorStyleIdExpr); }
246     /**
247      * Getter method for "indexed" tag attribute.
248      * (Mapping set in associated BeanInfo class.)
249      */

250     public String JavaDoc getIndexedExpr() { return (indexedExpr); }
251     /**
252      * Getter method for "multiple" tag attribute.
253      * (Mapping set in associated BeanInfo class.)
254      */

255     public String JavaDoc getMultipleExpr() { return (multipleExpr); }
256     /**
257      * Getter method for "name" tag attribute.
258      * (Mapping set in associated BeanInfo class.)
259      */

260     public String JavaDoc getNameExpr() { return (nameExpr); }
261     /**
262      * Getter method for "onblur" tag attribute.
263      * (Mapping set in associated BeanInfo class.)
264      */

265     public String JavaDoc getOnblurExpr() { return (onblurExpr); }
266     /**
267      * Getter method for "onchange" tag attribute.
268      * (Mapping set in associated BeanInfo class.)
269      */

270     public String JavaDoc getOnchangeExpr() { return (onchangeExpr); }
271     /**
272      * Getter method for "onclick" tag attribute.
273      * (Mapping set in associated BeanInfo class.)
274      */

275     public String JavaDoc getOnclickExpr() { return (onclickExpr); }
276     /**
277      * Getter method for "ondblclick" tag attribute.
278      * (Mapping set in associated BeanInfo class.)
279      */

280     public String JavaDoc getOndblclickExpr() { return (ondblclickExpr); }
281     /**
282      * Getter method for "onfocus" tag attribute.
283      * (Mapping set in associated BeanInfo class.)
284      */

285     public String JavaDoc getOnfocusExpr() { return (onfocusExpr); }
286     /**
287      * Getter method for "onkeydown" tag attribute.
288      * (Mapping set in associated BeanInfo class.)
289      */

290     public String JavaDoc getOnkeydownExpr() { return (onkeydownExpr); }
291     /**
292      * Getter method for "onkeypress" tag attribute.
293      * (Mapping set in associated BeanInfo class.)
294      */

295     public String JavaDoc getOnkeypressExpr() { return (onkeypressExpr); }
296     /**
297      * Getter method for "onkeyup" tag attribute.
298      * (Mapping set in associated BeanInfo class.)
299      */

300     public String JavaDoc getOnkeyupExpr() { return (onkeyupExpr); }
301     /**
302      * Getter method for "onmousedown" tag attribute.
303      * (Mapping set in associated BeanInfo class.)
304      */

305     public String JavaDoc getOnmousedownExpr() { return (onmousedownExpr); }
306     /**
307      * Getter method for "onmousemove" tag attribute.
308      * (Mapping set in associated BeanInfo class.)
309      */

310     public String JavaDoc getOnmousemoveExpr() { return (onmousemoveExpr); }
311     /**
312      * Getter method for "onmouseout" tag attribute.
313      * (Mapping set in associated BeanInfo class.)
314      */

315     public String JavaDoc getOnmouseoutExpr() { return (onmouseoutExpr); }
316     /**
317      * Getter method for "onmouseover" tag attribute.
318      * (Mapping set in associated BeanInfo class.)
319      */

320     public String JavaDoc getOnmouseoverExpr() { return (onmouseoverExpr); }
321     /**
322      * Getter method for "onmouseup" tag attribute.
323      * (Mapping set in associated BeanInfo class.)
324      */

325     public String JavaDoc getOnmouseupExpr() { return (onmouseupExpr); }
326     /**
327      * Getter method for "property" tag attribute.
328      * (Mapping set in associated BeanInfo class.)
329      */

330     public String JavaDoc getPropertyExpr() { return (propertyExpr); }
331     /**
332      * Getter method for "size" tag attribute.
333      * (Mapping set in associated BeanInfo class.)
334      */

335     public String JavaDoc getSizeExpr() { return (sizeExpr); }
336     /**
337      * Getter method for "style" tag attribute.
338      * (Mapping set in associated BeanInfo class.)
339      */

340     public String JavaDoc getStyleExpr() { return (styleExpr); }
341     /**
342      * Getter method for "styleClass" tag attribute.
343      * (Mapping set in associated BeanInfo class.)
344      */

345     public String JavaDoc getStyleClassExpr() { return (styleClassExpr); }
346     /**
347      * Getter method for "styleId" tag attribute.
348      * (Mapping set in associated BeanInfo class.)
349      */

350     public String JavaDoc getStyleIdExpr() { return (styleIdExpr); }
351     /**
352      * Getter method for "tabindex" tag attribute.
353      * (Mapping set in associated BeanInfo class.)
354      */

355     public String JavaDoc getTabindexExpr() { return (tabindexExpr); }
356     /**
357      * Getter method for "title" tag attribute.
358      * (Mapping set in associated BeanInfo class.)
359      */

360     public String JavaDoc getTitleExpr() { return (titleExpr); }
361     /**
362      * Getter method for "titleKey" tag attribute.
363      * (Mapping set in associated BeanInfo class.)
364      */

365     public String JavaDoc getTitleKeyExpr() { return (titleKeyExpr); }
366     /**
367      * Getter method for "value" tag attribute.
368      * (Mapping set in associated BeanInfo class.)
369      */

370     public String JavaDoc getValueExpr() { return (valueExpr); }
371
372     /**
373      * Setter method for "alt" tag attribute.
374      * (Mapping set in associated BeanInfo class.)
375      */

376     public void setAltExpr(String JavaDoc altExpr) { this.altExpr = altExpr; }
377     /**
378      * Setter method for "altKey" tag attribute.
379      * (Mapping set in associated BeanInfo class.)
380      */

381     public void setAltKeyExpr(String JavaDoc altKeyExpr) { this.altKeyExpr = altKeyExpr; }
382     /**
383      * Setter method for "bundle" tag attribute.
384      * (Mapping set in associated BeanInfo class.)
385      */

386     public void setBundleExpr(String JavaDoc bundleExpr) { this.bundleExpr = bundleExpr; }
387     /**
388      * Setter method for "disabled" tag attribute.
389      * (Mapping set in associated BeanInfo class.)
390      */

391     public void setDisabledExpr(String JavaDoc disabledExpr) { this.disabledExpr = disabledExpr; }
392     /**
393      * Setter method for "errorKey" tag attribute.
394      * (Mapping set in associated BeanInfo class.)
395      */

396     public void setErrorKeyExpr(String JavaDoc errorKeyExpr) { this.errorKeyExpr = errorKeyExpr; }
397     /**
398      * Setter method for "errorStyle" tag attribute.
399      * (Mapping set in associated BeanInfo class.)
400      */

401     public void setErrorStyleExpr(String JavaDoc errorStyleExpr) { this.errorStyleExpr = errorStyleExpr; }
402     /**
403      * Setter method for "errorStyleClass" tag attribute.
404      * (Mapping set in associated BeanInfo class.)
405      */

406     public void setErrorStyleClassExpr(String JavaDoc errorStyleClassExpr) { this.errorStyleClassExpr = errorStyleClassExpr; }
407     /**
408      * Setter method for "errorStyleId" tag attribute.
409      * (Mapping set in associated BeanInfo class.)
410      */

411     public void setErrorStyleIdExpr(String JavaDoc errorStyleIdExpr) { this.errorStyleIdExpr = errorStyleIdExpr; }
412     /**
413      * Setter method for "indexed" tag attribute.
414      * (Mapping set in associated BeanInfo class.)
415      */

416     public void setIndexedExpr(String JavaDoc indexedExpr) { this.indexedExpr = indexedExpr; }
417     /**
418      * Setter method for "multiple" tag attribute.
419      * (Mapping set in associated BeanInfo class.)
420      */

421     public void setMultipleExpr(String JavaDoc multipleExpr) { this.multipleExpr = multipleExpr; }
422     /**
423      * Setter method for "name" tag attribute.
424      * (Mapping set in associated BeanInfo class.)
425      */

426     public void setNameExpr(String JavaDoc nameExpr) { this.nameExpr = nameExpr; }
427     /**
428      * Setter method for "onblur" tag attribute.
429      * (Mapping set in associated BeanInfo class.)
430      */

431     public void setOnblurExpr(String JavaDoc onblurExpr) { this.onblurExpr = onblurExpr; }
432     /**
433      * Setter method for "onchange" tag attribute.
434      * (Mapping set in associated BeanInfo class.)
435      */

436     public void setOnchangeExpr(String JavaDoc onchangeExpr) { this.onchangeExpr = onchangeExpr; }
437     /**
438      * Setter method for "onclick" tag attribute.
439      * (Mapping set in associated BeanInfo class.)
440      */

441     public void setOnclickExpr(String JavaDoc onclickExpr) { this.onclickExpr = onclickExpr; }
442     /**
443      * Setter method for "ondblclick" tag attribute.
444      * (Mapping set in associated BeanInfo class.)
445      */

446     public void setOndblclickExpr(String JavaDoc ondblclickExpr) { this.ondblclickExpr = ondblclickExpr; }
447     /**
448      * Setter method for "onfocus" tag attribute.
449      * (Mapping set in associated BeanInfo class.)
450      */

451     public void setOnfocusExpr(String JavaDoc onfocusExpr) { this.onfocusExpr = onfocusExpr; }
452     /**
453      * Setter method for "onkeydown" tag attribute.
454      * (Mapping set in associated BeanInfo class.)
455      */

456     public void setOnkeydownExpr(String JavaDoc onkeydownExpr) { this.onkeydownExpr = onkeydownExpr; }
457     /**
458      * Setter method for "onkeypress" tag attribute.
459      * (Mapping set in associated BeanInfo class.)
460      */

461     public void setOnkeypressExpr(String JavaDoc onkeypressExpr) { this.onkeypressExpr = onkeypressExpr; }
462     /**
463      * Setter method for "onkeyup" tag attribute.
464      * (Mapping set in associated BeanInfo class.)
465      */

466     public void setOnkeyupExpr(String JavaDoc onkeyupExpr) { this.onkeyupExpr = onkeyupExpr; }
467     /**
468      * Setter method for "onmousedown" tag attribute.
469      * (Mapping set in associated BeanInfo class.)
470      */

471     public void setOnmousedownExpr(String JavaDoc onmousedownExpr) { this.onmousedownExpr = onmousedownExpr; }
472     /**
473      * Setter method for "onmousemove" tag attribute.
474      * (Mapping set in associated BeanInfo class.)
475      */

476     public void setOnmousemoveExpr(String JavaDoc onmousemoveExpr) { this.onmousemoveExpr = onmousemoveExpr; }
477     /**
478      * Setter method for "onmouseout" tag attribute.
479      * (Mapping set in associated BeanInfo class.)
480      */

481     public void setOnmouseoutExpr(String JavaDoc onmouseoutExpr) { this.onmouseoutExpr = onmouseoutExpr; }
482     /**
483      * Setter method for "onmouseover" tag attribute.
484      * (Mapping set in associated BeanInfo class.)
485      */

486     public void setOnmouseoverExpr(String JavaDoc onmouseoverExpr) { this.onmouseoverExpr = onmouseoverExpr; }
487     /**
488      * Setter method for "onmouseup" tag attribute.
489      * (Mapping set in associated BeanInfo class.)
490      */

491     public void setOnmouseupExpr(String JavaDoc onmouseupExpr) { this.onmouseupExpr = onmouseupExpr; }
492     /**
493      * Setter method for "property" tag attribute.
494      * (Mapping set in associated BeanInfo class.)
495      */

496     public void setPropertyExpr(String JavaDoc propertyExpr) { this.propertyExpr = propertyExpr; }
497     /**
498      * Setter method for "size" tag attribute.
499      * (Mapping set in associated BeanInfo class.)
500      */

501     public void setSizeExpr(String JavaDoc sizeExpr) { this.sizeExpr = sizeExpr; }
502     /**
503      * Setter method for "style" tag attribute.
504      * (Mapping set in associated BeanInfo class.)
505      */

506     public void setStyleExpr(String JavaDoc styleExpr) { this.styleExpr = styleExpr; }
507     /**
508      * Setter method for "styleClass" tag attribute.
509      * (Mapping set in associated BeanInfo class.)
510      */

511     public void setStyleClassExpr(String JavaDoc styleClassExpr) { this.styleClassExpr = styleClassExpr; }
512     /**
513      * Setter method for "styleId" tag attribute.
514      * (Mapping set in associated BeanInfo class.)
515      */

516     public void setStyleIdExpr(String JavaDoc styleIdExpr) { this.styleIdExpr = styleIdExpr; }
517     /**
518      * Setter method for "tabindex" tag attribute.
519      * (Mapping set in associated BeanInfo class.)
520      */

521     public void setTabindexExpr(String JavaDoc tabindexExpr) { this.tabindexExpr = tabindexExpr; }
522     /**
523      * Setter method for "title" tag attribute.
524      * (Mapping set in associated BeanInfo class.)
525      */

526     public void setTitleExpr(String JavaDoc titleExpr) { this.titleExpr = titleExpr; }
527     /**
528      * Setter method for "titleKey" tag attribute.
529      * (Mapping set in associated BeanInfo class.)
530      */

531     public void setTitleKeyExpr(String JavaDoc titleKeyExpr) { this.titleKeyExpr = titleKeyExpr; }
532     /**
533      * Setter method for "value" tag attribute.
534      * (Mapping set in associated BeanInfo class.)
535      */

536     public void setValueExpr(String JavaDoc valueExpr) { this.valueExpr = valueExpr; }
537
538     /**
539      * Resets attribute values for tag reuse.
540      */

541     public void release()
542     {
543         super.release();
544         setAltExpr(null);
545         setAltKeyExpr(null);
546         setBundleExpr(null);
547         setDisabledExpr(null);
548         setErrorKey(null);
549         setErrorStyleExpr(null);
550         setErrorStyleClassExpr(null);
551         setErrorStyleIdExpr(null);
552         setIndexedExpr(null);
553         setMultipleExpr(null);
554         setNameExpr(null);
555         setOnblurExpr(null);
556         setOnchangeExpr(null);
557         setOnclickExpr(null);
558         setOndblclickExpr(null);
559         setOnfocusExpr(null);
560         setOnkeydownExpr(null);
561         setOnkeypressExpr(null);
562         setOnkeyupExpr(null);
563         setOnmousedownExpr(null);
564         setOnmousemoveExpr(null);
565         setOnmouseoutExpr(null);
566         setOnmouseoverExpr(null);
567         setOnmouseupExpr(null);
568         setPropertyExpr(null);
569         setSizeExpr(null);
570         setStyleExpr(null);
571         setStyleClassExpr(null);
572         setStyleIdExpr(null);
573         setTabindexExpr(null);
574         setTitleExpr(null);
575         setTitleKeyExpr(null);
576         setValueExpr(null);
577     }
578
579     /**
580      * Process the start tag.
581      *
582      * @exception JspException if a JSP exception has occurred
583      */

584     public int doStartTag() throws JspException JavaDoc {
585         evaluateExpressions();
586         return(super.doStartTag());
587     }
588     
589     /**
590      * Processes all attribute values which use the JSTL expression evaluation
591      * engine to determine their values.
592      *
593      * @exception JspException if a JSP exception has occurred
594      */

595     private void evaluateExpressions() throws JspException JavaDoc {
596         String JavaDoc string = null;
597         Boolean JavaDoc bool = null;
598
599         if ((string = EvalHelper.evalString("alt", getAltExpr(),
600                                             this, pageContext)) != null)
601             setAlt(string);
602
603         if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(),
604                                             this, pageContext)) != null)
605             setAltKey(string);
606
607         if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
608                                             this, pageContext)) != null)
609             setBundle(string);
610
611         if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(),
612                                            this, pageContext)) != null)
613             setDisabled(bool.booleanValue());
614
615         if ((string = EvalHelper.evalString("errorKey", getErrorKeyExpr(),
616                                             this, pageContext)) != null)
617             setErrorKey(string);
618
619         if ((string = EvalHelper.evalString("errorStyle", getErrorStyleExpr(),
620                                             this, pageContext)) != null)
621             setErrorStyle(string);
622
623         if ((string = EvalHelper.evalString("errorStyleClass", getErrorStyleClassExpr(),
624                                             this, pageContext)) != null)
625             setErrorStyleClass(string);
626
627         if ((string = EvalHelper.evalString("errorStyleId", getErrorStyleIdExpr(),
628                                             this, pageContext)) != null)
629             setErrorStyleId(string);
630
631         if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(),
632                                            this, pageContext)) != null)
633             setIndexed(bool.booleanValue());
634
635         if ((string = EvalHelper.evalString("multiple", getMultipleExpr(),
636                                             this, pageContext)) != null)
637             setMultiple(string);
638
639         if ((string = EvalHelper.evalString("name", getNameExpr(),
640                                             this, pageContext)) != null)
641             setName(string);
642
643         if ((string = EvalHelper.evalString("onblur", getOnblurExpr(),
644                                             this, pageContext)) != null)
645             setOnblur(string);
646
647         if ((string = EvalHelper.evalString("onchange", getOnchangeExpr(),
648                                             this, pageContext)) != null)
649             setOnchange(string);
650
651         if ((string = EvalHelper.evalString("onclick", getOnclickExpr(),
652                                             this, pageContext)) != null)
653             setOnclick(string);
654
655         if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(),
656                                             this, pageContext)) != null)
657             setOndblclick(string);
658
659         if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(),
660                                             this, pageContext)) != null)
661             setOnfocus(string);
662
663         if ((string = EvalHelper.evalString("onkeydown", getOnkeydownExpr(),
664                                             this, pageContext)) != null)
665             setOnkeydown(string);
666
667         if ((string = EvalHelper.evalString("onkeypress", getOnkeypressExpr(),
668                                             this, pageContext)) != null)
669             setOnkeypress(string);
670
671         if ((string = EvalHelper.evalString("onkeyup", getOnkeyupExpr(),
672                                             this, pageContext)) != null)
673             setOnkeyup(string);
674
675         if ((string = EvalHelper.evalString("onmousedown", getOnmousedownExpr(),
676                                             this, pageContext)) != null)
677             setOnmousedown(string);
678
679         if ((string = EvalHelper.evalString("onmousemove", getOnmousemoveExpr(),
680                                             this, pageContext)) != null)
681             setOnmousemove(string);
682
683         if ((string = EvalHelper.evalString("onmouseout", getOnmouseoutExpr(),
684                                             this, pageContext)) != null)
685             setOnmouseout(string);
686
687         if ((string = EvalHelper.evalString("onmouseover", getOnmouseoverExpr(),
688                                             this, pageContext)) != null)
689             setOnmouseover(string);
690
691         if ((string = EvalHelper.evalString("onmouseup", getOnmouseupExpr(),
692                                             this, pageContext)) != null)
693             setOnmouseup(string);
694
695         if ((string = EvalHelper.evalString("property", getPropertyExpr(),
696                                             this, pageContext)) != null)
697             setProperty(string);
698
699         if ((string = EvalHelper.evalString("size", getSizeExpr(),
700                                             this, pageContext)) != null)
701             setSize(string);
702
703         if ((string = EvalHelper.evalString("style", getStyleExpr(),
704                                             this, pageContext)) != null)
705             setStyle(string);
706
707         if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(),
708                                             this, pageContext)) != null)
709             setStyleClass(string);
710
711         if ((string = EvalHelper.evalString("styleId", getStyleIdExpr(),
712                                             this, pageContext)) != null)
713             setStyleId(string);
714
715         if ((string = EvalHelper.evalString("tabindex", getTabindexExpr(),
716                                             this, pageContext)) != null)
717             setTabindex(string);
718
719         if ((string = EvalHelper.evalString("title", getTitleExpr(),
720                                             this, pageContext)) != null)
721             setTitle(string);
722
723         if ((string = EvalHelper.evalString("titleKey", getTitleKeyExpr(),
724                                             this, pageContext)) != null)
725             setTitleKey(string);
726
727         if ((string = EvalHelper.evalString("value", getValueExpr(),
728                                             this, pageContext)) != null)
729             setValue(string);
730     }
731 }
732
Popular Tags