Skip to content

Instantly share code, notes, and snippets.

@werpu
Created July 7, 2011 09:20
Show Gist options
  • Select an option

  • Save werpu/1069163 to your computer and use it in GitHub Desktop.

Select an option

Save werpu/1069163 to your computer and use it in GitHub Desktop.
List retVal = new LinkedList();
def component = new Component() {
basepackage = "org.apache.myfaces.dojo.custom.form.textarea";
tagname = "dijitTextarea";
componentclass = "TextArea";
tagclass = "TextAreaTag";
renderclass = "TextAreaRenderer" ;
renderbaseclass = "org.apache.myfaces.dojo.custom.base.DijitInputRenderer";
tagbaseclass = "org.apache.myfaces.dojo.custom.base.DijitInputTag";
componentbaseclass = "org.apache.myfaces.dojo.custom.base.DijitInput";
rendertype = "org.apache.myfaces.dojo.TextAreaRenderer";
componenttype = "org.apache.myfaces.dojo.TextArea";
};
/*now to the component attributes map*/
component.attributes.add(new Attribute() {
name = "rows"; attrclass = "Integer"; description = "Rows of the component";
});
retVal.add(component);
return retVal;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment