0001: /*
0002: * $Id: ELSelectTag.java 479635 2006-11-27 14:27:18Z pbenedict $
0003: *
0004: * Licensed to the Apache Software Foundation (ASF) under one
0005: * or more contributor license agreements. See the NOTICE file
0006: * distributed with this work for additional information
0007: * regarding copyright ownership. The ASF licenses this file
0008: * to you under the Apache License, Version 2.0 (the
0009: * "License"); you may not use this file except in compliance
0010: * with the License. You may obtain a copy of the License at
0011: *
0012: * http://www.apache.org/licenses/LICENSE-2.0
0013: *
0014: * Unless required by applicable law or agreed to in writing,
0015: * software distributed under the License is distributed on an
0016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0017: * KIND, either express or implied. See the License for the
0018: * specific language governing permissions and limitations
0019: * under the License.
0020: */
0021: package org.apache.strutsel.taglib.html;
0022:
0023: import org.apache.struts.taglib.html.SelectTag;
0024: import org.apache.strutsel.taglib.utils.EvalHelper;
0025:
0026: import javax.servlet.jsp.JspException;
0027:
0028: /**
0029: * Custom tag that represents an HTML select element, associated with a bean
0030: * property specified by our attributes. This tag must be nested inside a
0031: * form tag. <p> This class is a subclass of the class
0032: * <code>org.apache.struts.taglib.html.SelectTag</code> which provides most of
0033: * the described functionality. This subclass allows all attribute values to
0034: * be specified as expressions utilizing the JavaServer Pages Standard Library
0035: * expression language.
0036: *
0037: * @version $Rev: 479635 $
0038: */
0039: public class ELSelectTag extends SelectTag {
0040: /**
0041: * Instance variable mapped to "alt" tag attribute. (Mapping set in
0042: * associated BeanInfo class.)
0043: */
0044: private String altExpr;
0045:
0046: /**
0047: * Instance variable mapped to "altKey" tag attribute. (Mapping set in
0048: * associated BeanInfo class.)
0049: */
0050: private String altKeyExpr;
0051:
0052: /**
0053: * Instance variable mapped to "bundle" tag attribute. (Mapping set in
0054: * associated BeanInfo class.)
0055: */
0056: private String bundleExpr;
0057:
0058: /**
0059: * Instance variable mapped to "dir" tag attribute. (Mapping set in
0060: * associated BeanInfo class.)
0061: */
0062: private String dirExpr;
0063:
0064: /**
0065: * Instance variable mapped to "disabled" tag attribute. (Mapping set in
0066: * associated BeanInfo class.)
0067: */
0068: private String disabledExpr;
0069:
0070: /**
0071: * Instance variable mapped to "errorKey" tag attribute. (Mapping set in
0072: * associated BeanInfo class.)
0073: */
0074: private String errorKeyExpr;
0075:
0076: /**
0077: * Instance variable mapped to "errorStyle" tag attribute. (Mapping set in
0078: * associated BeanInfo class.)
0079: */
0080: private String errorStyleExpr;
0081:
0082: /**
0083: * Instance variable mapped to "errorStyleClass" tag attribute. (Mapping
0084: * set in associated BeanInfo class.)
0085: */
0086: private String errorStyleClassExpr;
0087:
0088: /**
0089: * Instance variable mapped to "errorStyleId" tag attribute. (Mapping set
0090: * in associated BeanInfo class.)
0091: */
0092: private String errorStyleIdExpr;
0093:
0094: /**
0095: * Instance variable mapped to "indexed" tag attribute. (Mapping set in
0096: * associated BeanInfo class.)
0097: */
0098: private String indexedExpr;
0099:
0100: /**
0101: * Instance variable mapped to "lang" tag attribute. (Mapping set in
0102: * associated BeanInfo class.)
0103: */
0104: private String langExpr;
0105:
0106: /**
0107: * Instance variable mapped to "multiple" tag attribute. (Mapping set in
0108: * associated BeanInfo class.)
0109: */
0110: private String multipleExpr;
0111:
0112: /**
0113: * Instance variable mapped to "name" tag attribute. (Mapping set in
0114: * associated BeanInfo class.)
0115: */
0116: private String nameExpr;
0117:
0118: /**
0119: * Instance variable mapped to "onblur" tag attribute. (Mapping set in
0120: * associated BeanInfo class.)
0121: */
0122: private String onblurExpr;
0123:
0124: /**
0125: * Instance variable mapped to "onchange" tag attribute. (Mapping set in
0126: * associated BeanInfo class.)
0127: */
0128: private String onchangeExpr;
0129:
0130: /**
0131: * Instance variable mapped to "onclick" tag attribute. (Mapping set in
0132: * associated BeanInfo class.)
0133: */
0134: private String onclickExpr;
0135:
0136: /**
0137: * Instance variable mapped to "ondblclick" tag attribute. (Mapping set in
0138: * associated BeanInfo class.)
0139: */
0140: private String ondblclickExpr;
0141:
0142: /**
0143: * Instance variable mapped to "onfocus" tag attribute. (Mapping set in
0144: * associated BeanInfo class.)
0145: */
0146: private String onfocusExpr;
0147:
0148: /**
0149: * Instance variable mapped to "onkeydown" tag attribute. (Mapping set in
0150: * associated BeanInfo class.)
0151: */
0152: private String onkeydownExpr;
0153:
0154: /**
0155: * Instance variable mapped to "onkeypress" tag attribute. (Mapping set in
0156: * associated BeanInfo class.)
0157: */
0158: private String onkeypressExpr;
0159:
0160: /**
0161: * Instance variable mapped to "onkeyup" tag attribute. (Mapping set in
0162: * associated BeanInfo class.)
0163: */
0164: private String onkeyupExpr;
0165:
0166: /**
0167: * Instance variable mapped to "onmousedown" tag attribute. (Mapping set
0168: * in associated BeanInfo class.)
0169: */
0170: private String onmousedownExpr;
0171:
0172: /**
0173: * Instance variable mapped to "onmousemove" tag attribute. (Mapping set
0174: * in associated BeanInfo class.)
0175: */
0176: private String onmousemoveExpr;
0177:
0178: /**
0179: * Instance variable mapped to "onmouseout" tag attribute. (Mapping set in
0180: * associated BeanInfo class.)
0181: */
0182: private String onmouseoutExpr;
0183:
0184: /**
0185: * Instance variable mapped to "onmouseover" tag attribute. (Mapping set
0186: * in associated BeanInfo class.)
0187: */
0188: private String onmouseoverExpr;
0189:
0190: /**
0191: * Instance variable mapped to "onmouseup" tag attribute. (Mapping set in
0192: * associated BeanInfo class.)
0193: */
0194: private String onmouseupExpr;
0195:
0196: /**
0197: * Instance variable mapped to "property" tag attribute. (Mapping set in
0198: * associated BeanInfo class.)
0199: */
0200: private String propertyExpr;
0201:
0202: /**
0203: * Instance variable mapped to "size" tag attribute. (Mapping set in
0204: * associated BeanInfo class.)
0205: */
0206: private String sizeExpr;
0207:
0208: /**
0209: * Instance variable mapped to "style" tag attribute. (Mapping set in
0210: * associated BeanInfo class.)
0211: */
0212: private String styleExpr;
0213:
0214: /**
0215: * Instance variable mapped to "styleClass" tag attribute. (Mapping set in
0216: * associated BeanInfo class.)
0217: */
0218: private String styleClassExpr;
0219:
0220: /**
0221: * Instance variable mapped to "styleId" tag attribute. (Mapping set in
0222: * associated BeanInfo class.)
0223: */
0224: private String styleIdExpr;
0225:
0226: /**
0227: * Instance variable mapped to "tabindex" tag attribute. (Mapping set in
0228: * associated BeanInfo class.)
0229: */
0230: private String tabindexExpr;
0231:
0232: /**
0233: * Instance variable mapped to "title" tag attribute. (Mapping set in
0234: * associated BeanInfo class.)
0235: */
0236: private String titleExpr;
0237:
0238: /**
0239: * Instance variable mapped to "titleKey" tag attribute. (Mapping set in
0240: * associated BeanInfo class.)
0241: */
0242: private String titleKeyExpr;
0243:
0244: /**
0245: * Instance variable mapped to "value" tag attribute. (Mapping set in
0246: * associated BeanInfo class.)
0247: */
0248: private String valueExpr;
0249:
0250: /**
0251: * Getter method for "alt" tag attribute. (Mapping set in associated
0252: * BeanInfo class.)
0253: */
0254: public String getAltExpr() {
0255: return (altExpr);
0256: }
0257:
0258: /**
0259: * Getter method for "altKey" tag attribute. (Mapping set in associated
0260: * BeanInfo class.)
0261: */
0262: public String getAltKeyExpr() {
0263: return (altKeyExpr);
0264: }
0265:
0266: /**
0267: * Getter method for "bundle" tag attribute. (Mapping set in associated
0268: * BeanInfo class.)
0269: */
0270: public String getBundleExpr() {
0271: return (bundleExpr);
0272: }
0273:
0274: /**
0275: * Getter method for "dir" tag attribute. (Mapping set in associated
0276: * BeanInfo class.)
0277: */
0278: public String getDirExpr() {
0279: return (dirExpr);
0280: }
0281:
0282: /**
0283: * Getter method for "disabled" tag attribute. (Mapping set in associated
0284: * BeanInfo class.)
0285: */
0286: public String getDisabledExpr() {
0287: return (disabledExpr);
0288: }
0289:
0290: /**
0291: * Getter method for "errorKey" tag attribute. (Mapping set in associated
0292: * BeanInfo class.)
0293: */
0294: public String getErrorKeyExpr() {
0295: return (errorKeyExpr);
0296: }
0297:
0298: /**
0299: * Getter method for "errorStyle" tag attribute. (Mapping set in
0300: * associated BeanInfo class.)
0301: */
0302: public String getErrorStyleExpr() {
0303: return (errorStyleExpr);
0304: }
0305:
0306: /**
0307: * Getter method for "errorStyleClass" tag attribute. (Mapping set in
0308: * associated BeanInfo class.)
0309: */
0310: public String getErrorStyleClassExpr() {
0311: return (errorStyleClassExpr);
0312: }
0313:
0314: /**
0315: * Getter method for "errorStyleId" tag attribute. (Mapping set in
0316: * associated BeanInfo class.)
0317: */
0318: public String getErrorStyleIdExpr() {
0319: return (errorStyleIdExpr);
0320: }
0321:
0322: /**
0323: * Getter method for "indexed" tag attribute. (Mapping set in associated
0324: * BeanInfo class.)
0325: */
0326: public String getIndexedExpr() {
0327: return (indexedExpr);
0328: }
0329:
0330: /**
0331: * Getter method for "lang" tag attribute. (Mapping set in associated
0332: * BeanInfo class.)
0333: */
0334: public String getLangExpr() {
0335: return (langExpr);
0336: }
0337:
0338: /**
0339: * Getter method for "multiple" tag attribute. (Mapping set in associated
0340: * BeanInfo class.)
0341: */
0342: public String getMultipleExpr() {
0343: return (multipleExpr);
0344: }
0345:
0346: /**
0347: * Getter method for "name" tag attribute. (Mapping set in associated
0348: * BeanInfo class.)
0349: */
0350: public String getNameExpr() {
0351: return (nameExpr);
0352: }
0353:
0354: /**
0355: * Getter method for "onblur" tag attribute. (Mapping set in associated
0356: * BeanInfo class.)
0357: */
0358: public String getOnblurExpr() {
0359: return (onblurExpr);
0360: }
0361:
0362: /**
0363: * Getter method for "onchange" tag attribute. (Mapping set in associated
0364: * BeanInfo class.)
0365: */
0366: public String getOnchangeExpr() {
0367: return (onchangeExpr);
0368: }
0369:
0370: /**
0371: * Getter method for "onclick" tag attribute. (Mapping set in associated
0372: * BeanInfo class.)
0373: */
0374: public String getOnclickExpr() {
0375: return (onclickExpr);
0376: }
0377:
0378: /**
0379: * Getter method for "ondblclick" tag attribute. (Mapping set in
0380: * associated BeanInfo class.)
0381: */
0382: public String getOndblclickExpr() {
0383: return (ondblclickExpr);
0384: }
0385:
0386: /**
0387: * Getter method for "onfocus" tag attribute. (Mapping set in associated
0388: * BeanInfo class.)
0389: */
0390: public String getOnfocusExpr() {
0391: return (onfocusExpr);
0392: }
0393:
0394: /**
0395: * Getter method for "onkeydown" tag attribute. (Mapping set in associated
0396: * BeanInfo class.)
0397: */
0398: public String getOnkeydownExpr() {
0399: return (onkeydownExpr);
0400: }
0401:
0402: /**
0403: * Getter method for "onkeypress" tag attribute. (Mapping set in
0404: * associated BeanInfo class.)
0405: */
0406: public String getOnkeypressExpr() {
0407: return (onkeypressExpr);
0408: }
0409:
0410: /**
0411: * Getter method for "onkeyup" tag attribute. (Mapping set in associated
0412: * BeanInfo class.)
0413: */
0414: public String getOnkeyupExpr() {
0415: return (onkeyupExpr);
0416: }
0417:
0418: /**
0419: * Getter method for "onmousedown" tag attribute. (Mapping set in
0420: * associated BeanInfo class.)
0421: */
0422: public String getOnmousedownExpr() {
0423: return (onmousedownExpr);
0424: }
0425:
0426: /**
0427: * Getter method for "onmousemove" tag attribute. (Mapping set in
0428: * associated BeanInfo class.)
0429: */
0430: public String getOnmousemoveExpr() {
0431: return (onmousemoveExpr);
0432: }
0433:
0434: /**
0435: * Getter method for "onmouseout" tag attribute. (Mapping set in
0436: * associated BeanInfo class.)
0437: */
0438: public String getOnmouseoutExpr() {
0439: return (onmouseoutExpr);
0440: }
0441:
0442: /**
0443: * Getter method for "onmouseover" tag attribute. (Mapping set in
0444: * associated BeanInfo class.)
0445: */
0446: public String getOnmouseoverExpr() {
0447: return (onmouseoverExpr);
0448: }
0449:
0450: /**
0451: * Getter method for "onmouseup" tag attribute. (Mapping set in associated
0452: * BeanInfo class.)
0453: */
0454: public String getOnmouseupExpr() {
0455: return (onmouseupExpr);
0456: }
0457:
0458: /**
0459: * Getter method for "property" tag attribute. (Mapping set in associated
0460: * BeanInfo class.)
0461: */
0462: public String getPropertyExpr() {
0463: return (propertyExpr);
0464: }
0465:
0466: /**
0467: * Getter method for "size" tag attribute. (Mapping set in associated
0468: * BeanInfo class.)
0469: */
0470: public String getSizeExpr() {
0471: return (sizeExpr);
0472: }
0473:
0474: /**
0475: * Getter method for "style" tag attribute. (Mapping set in associated
0476: * BeanInfo class.)
0477: */
0478: public String getStyleExpr() {
0479: return (styleExpr);
0480: }
0481:
0482: /**
0483: * Getter method for "styleClass" tag attribute. (Mapping set in
0484: * associated BeanInfo class.)
0485: */
0486: public String getStyleClassExpr() {
0487: return (styleClassExpr);
0488: }
0489:
0490: /**
0491: * Getter method for "styleId" tag attribute. (Mapping set in associated
0492: * BeanInfo class.)
0493: */
0494: public String getStyleIdExpr() {
0495: return (styleIdExpr);
0496: }
0497:
0498: /**
0499: * Getter method for "tabindex" tag attribute. (Mapping set in associated
0500: * BeanInfo class.)
0501: */
0502: public String getTabindexExpr() {
0503: return (tabindexExpr);
0504: }
0505:
0506: /**
0507: * Getter method for "title" tag attribute. (Mapping set in associated
0508: * BeanInfo class.)
0509: */
0510: public String getTitleExpr() {
0511: return (titleExpr);
0512: }
0513:
0514: /**
0515: * Getter method for "titleKey" tag attribute. (Mapping set in associated
0516: * BeanInfo class.)
0517: */
0518: public String getTitleKeyExpr() {
0519: return (titleKeyExpr);
0520: }
0521:
0522: /**
0523: * Getter method for "value" tag attribute. (Mapping set in associated
0524: * BeanInfo class.)
0525: */
0526: public String getValueExpr() {
0527: return (valueExpr);
0528: }
0529:
0530: /**
0531: * Setter method for "alt" tag attribute. (Mapping set in associated
0532: * BeanInfo class.)
0533: */
0534: public void setAltExpr(String altExpr) {
0535: this .altExpr = altExpr;
0536: }
0537:
0538: /**
0539: * Setter method for "altKey" tag attribute. (Mapping set in associated
0540: * BeanInfo class.)
0541: */
0542: public void setAltKeyExpr(String altKeyExpr) {
0543: this .altKeyExpr = altKeyExpr;
0544: }
0545:
0546: /**
0547: * Setter method for "bundle" tag attribute. (Mapping set in associated
0548: * BeanInfo class.)
0549: */
0550: public void setBundleExpr(String bundleExpr) {
0551: this .bundleExpr = bundleExpr;
0552: }
0553:
0554: /**
0555: * Setter method for "dir" tag attribute. (Mapping set in associated
0556: * BeanInfo class.)
0557: */
0558: public void setDirExpr(String dirExpr) {
0559: this .dirExpr = dirExpr;
0560: }
0561:
0562: /**
0563: * Setter method for "disabled" tag attribute. (Mapping set in associated
0564: * BeanInfo class.)
0565: */
0566: public void setDisabledExpr(String disabledExpr) {
0567: this .disabledExpr = disabledExpr;
0568: }
0569:
0570: /**
0571: * Setter method for "errorKey" tag attribute. (Mapping set in associated
0572: * BeanInfo class.)
0573: */
0574: public void setErrorKeyExpr(String errorKeyExpr) {
0575: this .errorKeyExpr = errorKeyExpr;
0576: }
0577:
0578: /**
0579: * Setter method for "errorStyle" tag attribute. (Mapping set in
0580: * associated BeanInfo class.)
0581: */
0582: public void setErrorStyleExpr(String errorStyleExpr) {
0583: this .errorStyleExpr = errorStyleExpr;
0584: }
0585:
0586: /**
0587: * Setter method for "errorStyleClass" tag attribute. (Mapping set in
0588: * associated BeanInfo class.)
0589: */
0590: public void setErrorStyleClassExpr(String errorStyleClassExpr) {
0591: this .errorStyleClassExpr = errorStyleClassExpr;
0592: }
0593:
0594: /**
0595: * Setter method for "errorStyleId" tag attribute. (Mapping set in
0596: * associated BeanInfo class.)
0597: */
0598: public void setErrorStyleIdExpr(String errorStyleIdExpr) {
0599: this .errorStyleIdExpr = errorStyleIdExpr;
0600: }
0601:
0602: /**
0603: * Setter method for "indexed" tag attribute. (Mapping set in associated
0604: * BeanInfo class.)
0605: */
0606: public void setIndexedExpr(String indexedExpr) {
0607: this .indexedExpr = indexedExpr;
0608: }
0609:
0610: /**
0611: * Setter method for "lang" tag attribute. (Mapping set in associated
0612: * BeanInfo class.)
0613: */
0614: public void setLangExpr(String langExpr) {
0615: this .langExpr = langExpr;
0616: }
0617:
0618: /**
0619: * Setter method for "multiple" tag attribute. (Mapping set in associated
0620: * BeanInfo class.)
0621: */
0622: public void setMultipleExpr(String multipleExpr) {
0623: this .multipleExpr = multipleExpr;
0624: }
0625:
0626: /**
0627: * Setter method for "name" tag attribute. (Mapping set in associated
0628: * BeanInfo class.)
0629: */
0630: public void setNameExpr(String nameExpr) {
0631: this .nameExpr = nameExpr;
0632: }
0633:
0634: /**
0635: * Setter method for "onblur" tag attribute. (Mapping set in associated
0636: * BeanInfo class.)
0637: */
0638: public void setOnblurExpr(String onblurExpr) {
0639: this .onblurExpr = onblurExpr;
0640: }
0641:
0642: /**
0643: * Setter method for "onchange" tag attribute. (Mapping set in associated
0644: * BeanInfo class.)
0645: */
0646: public void setOnchangeExpr(String onchangeExpr) {
0647: this .onchangeExpr = onchangeExpr;
0648: }
0649:
0650: /**
0651: * Setter method for "onclick" tag attribute. (Mapping set in associated
0652: * BeanInfo class.)
0653: */
0654: public void setOnclickExpr(String onclickExpr) {
0655: this .onclickExpr = onclickExpr;
0656: }
0657:
0658: /**
0659: * Setter method for "ondblclick" tag attribute. (Mapping set in
0660: * associated BeanInfo class.)
0661: */
0662: public void setOndblclickExpr(String ondblclickExpr) {
0663: this .ondblclickExpr = ondblclickExpr;
0664: }
0665:
0666: /**
0667: * Setter method for "onfocus" tag attribute. (Mapping set in associated
0668: * BeanInfo class.)
0669: */
0670: public void setOnfocusExpr(String onfocusExpr) {
0671: this .onfocusExpr = onfocusExpr;
0672: }
0673:
0674: /**
0675: * Setter method for "onkeydown" tag attribute. (Mapping set in associated
0676: * BeanInfo class.)
0677: */
0678: public void setOnkeydownExpr(String onkeydownExpr) {
0679: this .onkeydownExpr = onkeydownExpr;
0680: }
0681:
0682: /**
0683: * Setter method for "onkeypress" tag attribute. (Mapping set in
0684: * associated BeanInfo class.)
0685: */
0686: public void setOnkeypressExpr(String onkeypressExpr) {
0687: this .onkeypressExpr = onkeypressExpr;
0688: }
0689:
0690: /**
0691: * Setter method for "onkeyup" tag attribute. (Mapping set in associated
0692: * BeanInfo class.)
0693: */
0694: public void setOnkeyupExpr(String onkeyupExpr) {
0695: this .onkeyupExpr = onkeyupExpr;
0696: }
0697:
0698: /**
0699: * Setter method for "onmousedown" tag attribute. (Mapping set in
0700: * associated BeanInfo class.)
0701: */
0702: public void setOnmousedownExpr(String onmousedownExpr) {
0703: this .onmousedownExpr = onmousedownExpr;
0704: }
0705:
0706: /**
0707: * Setter method for "onmousemove" tag attribute. (Mapping set in
0708: * associated BeanInfo class.)
0709: */
0710: public void setOnmousemoveExpr(String onmousemoveExpr) {
0711: this .onmousemoveExpr = onmousemoveExpr;
0712: }
0713:
0714: /**
0715: * Setter method for "onmouseout" tag attribute. (Mapping set in
0716: * associated BeanInfo class.)
0717: */
0718: public void setOnmouseoutExpr(String onmouseoutExpr) {
0719: this .onmouseoutExpr = onmouseoutExpr;
0720: }
0721:
0722: /**
0723: * Setter method for "onmouseover" tag attribute. (Mapping set in
0724: * associated BeanInfo class.)
0725: */
0726: public void setOnmouseoverExpr(String onmouseoverExpr) {
0727: this .onmouseoverExpr = onmouseoverExpr;
0728: }
0729:
0730: /**
0731: * Setter method for "onmouseup" tag attribute. (Mapping set in associated
0732: * BeanInfo class.)
0733: */
0734: public void setOnmouseupExpr(String onmouseupExpr) {
0735: this .onmouseupExpr = onmouseupExpr;
0736: }
0737:
0738: /**
0739: * Setter method for "property" tag attribute. (Mapping set in associated
0740: * BeanInfo class.)
0741: */
0742: public void setPropertyExpr(String propertyExpr) {
0743: this .propertyExpr = propertyExpr;
0744: }
0745:
0746: /**
0747: * Setter method for "size" tag attribute. (Mapping set in associated
0748: * BeanInfo class.)
0749: */
0750: public void setSizeExpr(String sizeExpr) {
0751: this .sizeExpr = sizeExpr;
0752: }
0753:
0754: /**
0755: * Setter method for "style" tag attribute. (Mapping set in associated
0756: * BeanInfo class.)
0757: */
0758: public void setStyleExpr(String styleExpr) {
0759: this .styleExpr = styleExpr;
0760: }
0761:
0762: /**
0763: * Setter method for "styleClass" tag attribute. (Mapping set in
0764: * associated BeanInfo class.)
0765: */
0766: public void setStyleClassExpr(String styleClassExpr) {
0767: this .styleClassExpr = styleClassExpr;
0768: }
0769:
0770: /**
0771: * Setter method for "styleId" tag attribute. (Mapping set in associated
0772: * BeanInfo class.)
0773: */
0774: public void setStyleIdExpr(String styleIdExpr) {
0775: this .styleIdExpr = styleIdExpr;
0776: }
0777:
0778: /**
0779: * Setter method for "tabindex" tag attribute. (Mapping set in associated
0780: * BeanInfo class.)
0781: */
0782: public void setTabindexExpr(String tabindexExpr) {
0783: this .tabindexExpr = tabindexExpr;
0784: }
0785:
0786: /**
0787: * Setter method for "title" tag attribute. (Mapping set in associated
0788: * BeanInfo class.)
0789: */
0790: public void setTitleExpr(String titleExpr) {
0791: this .titleExpr = titleExpr;
0792: }
0793:
0794: /**
0795: * Setter method for "titleKey" tag attribute. (Mapping set in associated
0796: * BeanInfo class.)
0797: */
0798: public void setTitleKeyExpr(String titleKeyExpr) {
0799: this .titleKeyExpr = titleKeyExpr;
0800: }
0801:
0802: /**
0803: * Setter method for "value" tag attribute. (Mapping set in associated
0804: * BeanInfo class.)
0805: */
0806: public void setValueExpr(String valueExpr) {
0807: this .valueExpr = valueExpr;
0808: }
0809:
0810: /**
0811: * Resets attribute values for tag reuse.
0812: */
0813: public void release() {
0814: super .release();
0815: setAltExpr(null);
0816: setAltKeyExpr(null);
0817: setBundleExpr(null);
0818: setDirExpr(null);
0819: setDisabledExpr(null);
0820: setErrorKeyExpr(null);
0821: setErrorStyleExpr(null);
0822: setErrorStyleClassExpr(null);
0823: setErrorStyleIdExpr(null);
0824: setIndexedExpr(null);
0825: setLangExpr(null);
0826: setMultipleExpr(null);
0827: setNameExpr(null);
0828: setOnblurExpr(null);
0829: setOnchangeExpr(null);
0830: setOnclickExpr(null);
0831: setOndblclickExpr(null);
0832: setOnfocusExpr(null);
0833: setOnkeydownExpr(null);
0834: setOnkeypressExpr(null);
0835: setOnkeyupExpr(null);
0836: setOnmousedownExpr(null);
0837: setOnmousemoveExpr(null);
0838: setOnmouseoutExpr(null);
0839: setOnmouseoverExpr(null);
0840: setOnmouseupExpr(null);
0841: setPropertyExpr(null);
0842: setSizeExpr(null);
0843: setStyleExpr(null);
0844: setStyleClassExpr(null);
0845: setStyleIdExpr(null);
0846: setTabindexExpr(null);
0847: setTitleExpr(null);
0848: setTitleKeyExpr(null);
0849: setValueExpr(null);
0850: }
0851:
0852: /**
0853: * Process the start tag.
0854: *
0855: * @throws JspException if a JSP exception has occurred
0856: */
0857: public int doStartTag() throws JspException {
0858: evaluateExpressions();
0859:
0860: return (super .doStartTag());
0861: }
0862:
0863: /**
0864: * Processes all attribute values which use the JSTL expression evaluation
0865: * engine to determine their values.
0866: *
0867: * @throws JspException if a JSP exception has occurred
0868: */
0869: private void evaluateExpressions() throws JspException {
0870: String string = null;
0871: Boolean bool = null;
0872:
0873: if ((string = EvalHelper.evalString("alt", getAltExpr(), this ,
0874: pageContext)) != null) {
0875: setAlt(string);
0876: }
0877:
0878: if ((string = EvalHelper.evalString("altKey", getAltKeyExpr(),
0879: this , pageContext)) != null) {
0880: setAltKey(string);
0881: }
0882:
0883: if ((string = EvalHelper.evalString("bundle", getBundleExpr(),
0884: this , pageContext)) != null) {
0885: setBundle(string);
0886: }
0887:
0888: if ((string = EvalHelper.evalString("dir", getDirExpr(), this ,
0889: pageContext)) != null) {
0890: setDir(string);
0891: }
0892:
0893: if ((bool = EvalHelper.evalBoolean("disabled",
0894: getDisabledExpr(), this , pageContext)) != null) {
0895: setDisabled(bool.booleanValue());
0896: }
0897:
0898: if ((string = EvalHelper.evalString("errorKey",
0899: getErrorKeyExpr(), this , pageContext)) != null) {
0900: setErrorKey(string);
0901: }
0902:
0903: if ((string = EvalHelper.evalString("errorStyle",
0904: getErrorStyleExpr(), this , pageContext)) != null) {
0905: setErrorStyle(string);
0906: }
0907:
0908: if ((string = EvalHelper.evalString("errorStyleClass",
0909: getErrorStyleClassExpr(), this , pageContext)) != null) {
0910: setErrorStyleClass(string);
0911: }
0912:
0913: if ((string = EvalHelper.evalString("errorStyleId",
0914: getErrorStyleIdExpr(), this , pageContext)) != null) {
0915: setErrorStyleId(string);
0916: }
0917:
0918: if ((bool = EvalHelper.evalBoolean("indexed", getIndexedExpr(),
0919: this , pageContext)) != null) {
0920: setIndexed(bool.booleanValue());
0921: }
0922:
0923: if ((string = EvalHelper.evalString("lang", getLangExpr(),
0924: this , pageContext)) != null) {
0925: setLang(string);
0926: }
0927:
0928: if ((string = EvalHelper.evalString("multiple",
0929: getMultipleExpr(), this , pageContext)) != null) {
0930: setMultiple(string);
0931: }
0932:
0933: if ((string = EvalHelper.evalString("name", getNameExpr(),
0934: this , pageContext)) != null) {
0935: setName(string);
0936: }
0937:
0938: if ((string = EvalHelper.evalString("onblur", getOnblurExpr(),
0939: this , pageContext)) != null) {
0940: setOnblur(string);
0941: }
0942:
0943: if ((string = EvalHelper.evalString("onchange",
0944: getOnchangeExpr(), this , pageContext)) != null) {
0945: setOnchange(string);
0946: }
0947:
0948: if ((string = EvalHelper.evalString("onclick",
0949: getOnclickExpr(), this , pageContext)) != null) {
0950: setOnclick(string);
0951: }
0952:
0953: if ((string = EvalHelper.evalString("ondblclick",
0954: getOndblclickExpr(), this , pageContext)) != null) {
0955: setOndblclick(string);
0956: }
0957:
0958: if ((string = EvalHelper.evalString("onfocus",
0959: getOnfocusExpr(), this , pageContext)) != null) {
0960: setOnfocus(string);
0961: }
0962:
0963: if ((string = EvalHelper.evalString("onkeydown",
0964: getOnkeydownExpr(), this , pageContext)) != null) {
0965: setOnkeydown(string);
0966: }
0967:
0968: if ((string = EvalHelper.evalString("onkeypress",
0969: getOnkeypressExpr(), this , pageContext)) != null) {
0970: setOnkeypress(string);
0971: }
0972:
0973: if ((string = EvalHelper.evalString("onkeyup",
0974: getOnkeyupExpr(), this , pageContext)) != null) {
0975: setOnkeyup(string);
0976: }
0977:
0978: if ((string = EvalHelper.evalString("onmousedown",
0979: getOnmousedownExpr(), this , pageContext)) != null) {
0980: setOnmousedown(string);
0981: }
0982:
0983: if ((string = EvalHelper.evalString("onmousemove",
0984: getOnmousemoveExpr(), this , pageContext)) != null) {
0985: setOnmousemove(string);
0986: }
0987:
0988: if ((string = EvalHelper.evalString("onmouseout",
0989: getOnmouseoutExpr(), this , pageContext)) != null) {
0990: setOnmouseout(string);
0991: }
0992:
0993: if ((string = EvalHelper.evalString("onmouseover",
0994: getOnmouseoverExpr(), this , pageContext)) != null) {
0995: setOnmouseover(string);
0996: }
0997:
0998: if ((string = EvalHelper.evalString("onmouseup",
0999: getOnmouseupExpr(), this , pageContext)) != null) {
1000: setOnmouseup(string);
1001: }
1002:
1003: if ((string = EvalHelper.evalString("property",
1004: getPropertyExpr(), this , pageContext)) != null) {
1005: setProperty(string);
1006: }
1007:
1008: if ((string = EvalHelper.evalString("size", getSizeExpr(),
1009: this , pageContext)) != null) {
1010: setSize(string);
1011: }
1012:
1013: if ((string = EvalHelper.evalString("style", getStyleExpr(),
1014: this , pageContext)) != null) {
1015: setStyle(string);
1016: }
1017:
1018: if ((string = EvalHelper.evalString("styleClass",
1019: getStyleClassExpr(), this , pageContext)) != null) {
1020: setStyleClass(string);
1021: }
1022:
1023: if ((string = EvalHelper.evalString("styleId",
1024: getStyleIdExpr(), this , pageContext)) != null) {
1025: setStyleId(string);
1026: }
1027:
1028: if ((string = EvalHelper.evalString("tabindex",
1029: getTabindexExpr(), this , pageContext)) != null) {
1030: setTabindex(string);
1031: }
1032:
1033: if ((string = EvalHelper.evalString("title", getTitleExpr(),
1034: this , pageContext)) != null) {
1035: setTitle(string);
1036: }
1037:
1038: if ((string = EvalHelper.evalString("titleKey",
1039: getTitleKeyExpr(), this , pageContext)) != null) {
1040: setTitleKey(string);
1041: }
1042:
1043: if ((string = EvalHelper.evalString("value", getValueExpr(),
1044: this, pageContext)) != null) {
1045: setValue(string);
1046: }
1047: }
1048: }
|