Srinivas-- Not sure what you mean by "anything". :) ExtensionUtil is just an internal class for creating instances of classes provided by <netui:behavior> via reflection. It doesn't do much of anything for public consumption...
If you're interested in using new style names, you've got a couple of options: 1) use the dataGrid's styleClassPrefix attribute to alter the name of the default prefix -- "dataGrid". This will generate style names like "foo-header" and will let you use CSS names qualified by the HTML element type like "tr.foo", "td.foo", and "table.foo". This should solve the problem you mentioned in a previous e-mail. 2) provide a DataGridConfig implementation that implements a new, custom StyleModel, wire the DataGridConfig object onto the dataGrid using the "dataGridConfig" attribute, and set the "styleClassPolicy" attribute to the name of the new StyleModel. I know this sounds complicated -- it's really not that bad. :) #2 above should work -- at least this was the intention of the design. Other data grid extension points are provided via the <netui:behavior> tag that can be used to wire-in decorators for cells / etc. There is more detail for the behaviors and style related things in the Javadoc for the data grid tags. Hope that helps. Eddie On 4/18/06, Srinivas Surapaneni <[EMAIL PROTECTED]> wrote: > Can we use this for anything related to netui-data:dataGrid including the > netui-data:dataGrid tag? > > Thank You > > -----Original Message----- > From: Eddie O'Neil [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 18, 2006 1:59 PM > To: Beehive Users > Subject: Re: DataGrid ExtensionUtil > > Srinivas-- > > The ExtensionUtil class is an internal data grid class that the data > grid uses to instantiate classes that are wired in a JSP to extend the > data grid. I don't believe that the netui-samples have any examples > of this, but there are some here: > > http://svn.apache.org/repos/asf/beehive/trunk/netui/test/webapps/drt/web/dat > abinding/datagrid/misc/helloHeaderDecorator.jsp > > that do something like this: > > <netui-data:headerCell headerText="Symbol"> > <netui:behavior facet="renderer" > name="extends" > > value="databinding.datagrid.decorator.HelloWorldDecorator"/> > </netui-data:headerCell> > > The data grid would use ExtensionUtil to instantiate the > HelloWorldDecorator class, but in general, your code shouldn't need to > use this class. Is there a specific problem you're trying to solve? > > Eddie > > > On 4/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > How do I use the ExtensionUtil class with the DataGrid > > > > Where are the hooks to use the customized data grid implementation > > > > Thank You > > Srinivas Surapaneni > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.4.3/316 - Release Date: 4/17/2006 > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.4.3/316 - Release Date: 4/17/2006 > > >
