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