1 18 19 package org.apache.strutsel.taglib.html; 20 21 import java.beans.PropertyDescriptor ; 22 import java.beans.IntrospectionException ; 23 import java.util.ArrayList ; 24 import java.beans.SimpleBeanInfo ; 25 26 39 public class ELHtmlTagBeanInfo extends SimpleBeanInfo 40 { 41 public PropertyDescriptor [] getPropertyDescriptors() 42 { 43 ArrayList proplist = new ArrayList (); 44 45 try { 46 proplist.add(new PropertyDescriptor ("xhtml", ELHtmlTag.class, 47 null, "setXhtmlExpr")); 48 } catch (IntrospectionException ex) {} 49 try { 50 proplist.add(new PropertyDescriptor ("lang", ELHtmlTag.class, 51 null, "setLangExpr")); 52 } catch (IntrospectionException ex) {} 53 try { 54 proplist.add(new PropertyDescriptor ("locale", ELHtmlTag.class, 55 null, "setLocaleExpr")); 56 } catch (IntrospectionException ex) {} 57 58 PropertyDescriptor [] result = 59 new PropertyDescriptor [proplist.size()]; 60 return ((PropertyDescriptor []) proplist.toArray(result)); 61 } 62 } 63 | Popular Tags |