[ http://issues.apache.org/jira/browse/BEEHIVE-533?page=all ] Krista Baker closed BEEHIVE-533: --------------------------------
Verfied fixed at svn rev 169884. Thanks for the fix, makes adding html attributes dynamically much easier > TreeHtmlAttributeInfo should have a constructor that takes attribute and value > ------------------------------------------------------------------------------ > > Key: BEEHIVE-533 > URL: http://issues.apache.org/jira/browse/BEEHIVE-533 > Project: Beehive > Type: Wish > Components: NetUI > Versions: V1Beta > Reporter: Krista Baker > Assignee: Krista Baker > Priority: Minor > Fix For: TBD > Attachments: j533.zip > > When creating dynamic trees in the pageFlow and adding html attributes to the > items, a minimum of 5 lines must be written to create a valid rendering > attribute. > example treeHtmlAttribute tag in JSP: > <netui:treeHtmlAttribute attribute="c" value="**C**" onSelectionLink="true" > onDiv="true" onIcon="true" applyToDescendents="true"/> > Current Configuration to create the equivalent of above tag using the > TreeHtmlAttributeInfo class: > TreeHtmlAttributeInfo myAttributes = new TreeHtmlAttributeInfo(); > myAttributes.setAttribute("c"); > myAttributes.setValue("**C**"); > myAttributes.setOnSelectionLink(true); > myAttributes.setOnDiv(true); > myAttributes.setOnIcon(true); > myAttributes.setApplyToDescendents(true); > myTreeItem.addAttribute(myAttributes); > Proposed Constructor for TreeHtmlAttributeInfo to simplify the process and > set the required values: > public HtmlTreeAttributeInfo(String attribute, String value) > { > this(); > _attribute = attribute; > _value = value; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira