You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Heath Borders <he...@gmail.com> on 2005/01/18 15:31:19 UTC

HtmlTableRenderer enhancement

I would like to refactor the HtmlTableRenderer to have a protected
method for starting and finishing a row.

This shouldn't change any functionality in the code, its mainly so
that I can reuse the renderer for a datatable-like component.

I'll commit the enhancement later today, but I just wanted to get
people's feelings on the matter.

-- 
-Heath Borders-Wing
hborders@mail.win.org

Re: HtmlTableRenderer enhancement

Posted by Heath Borders <he...@gmail.com>.
Done.  I also javadoc-ed the file.  Check everything over for me to
make sure my comments are correct.


On Tue, 18 Jan 2005 18:50:54 +0100, Manfred Geiler <ma...@apache.org> wrote:
> +1
> 
> BTW, I switched this thread to dev list.
> 
> Martin Marinschek schrieb:
> > You are right, the hook-methods are not there...
> >
> > my +1 for adding them.
> >
> > regards,
> >
> > Martin
> >
> >
> > On Tue, 18 Jan 2005 09:23:30 -0600, Heath Borders
> > <he...@gmail.com> wrote:
> >
> >>Yeah, I checked the cvs, and the latest version does not have
> >>abstractions for starting and ending the row.
> >>
> >>I'm creating a custom table that will allow built-in selection of
> >>rows, with highlighting of the selected row.  However, in order to do
> >>this, I need to mark each row with an id, which I currently cannot do
> >>underneath the myfaces codebase.
> >>
> >>On Tue, 18 Jan 2005 08:56:25 -0600, Heath Borders
> >><he...@gmail.com> wrote:
> >>
> >>>I haven't pulled down the latest code for a while (maybe 2 weeks), so
> >>>I don't know what's been added.
> >>>
> >>>Howvever, in the code I'm looking at, there are places in the renderer
> >>>for placing code before and after the row, however, the actual code
> >>>for starting and ending the row is still only in the renderer, and it
> >>>would be best to be able to override that.
> >>>
> >>>
> >>>On Tue, 18 Jan 2005 15:34:31 +0100, Martin Marinschek
> >>><ma...@gmail.com> wrote:
> >>>
> >>>>There should already be such methods for many of the components... we
> >>>>should have them in each component, with that writing a custom
> >>>>renderer can be much easier!
> >>>>
> >>>>regards,
> >>>>
> >>>>Martin
> >>>>
> >>>>On Tue, 18 Jan 2005 08:31:19 -0600, Heath Borders
> >>>><he...@gmail.com> wrote:
> >>>>
> >>>>>I would like to refactor the HtmlTableRenderer to have a protected
> >>>>>method for starting and finishing a row.
> >>>>>
> >>>>>This shouldn't change any functionality in the code, its mainly so
> >>>>>that I can reuse the renderer for a datatable-like component.
> >>>>>
> >>>>>I'll commit the enhancement later today, but I just wanted to get
> >>>>>people's feelings on the matter.
> >>>>>
> >>>>>--
> >>>>>-Heath Borders-Wing
> >>>>>hborders@mail.win.org
> >>>>>
> >>>>
> >>>
> >>>--
> >>>-Heath Borders-Wing
> >>>hborders@mail.win.org
> >>>
> >>
> >>
> >>--
> >>-Heath Borders-Wing
> >>hborders@mail.win.org
> >>
> >
> >
> >
> 


-- 
-Heath Borders-Wing
hborders@mail.win.org

Re: HtmlTableRenderer enhancement

Posted by Manfred Geiler <ma...@apache.org>.
+1

BTW, I switched this thread to dev list.

Martin Marinschek schrieb:
> You are right, the hook-methods are not there...
> 
> my +1 for adding them.
> 
> regards,
> 
> Martin
> 
> 
> On Tue, 18 Jan 2005 09:23:30 -0600, Heath Borders
> <he...@gmail.com> wrote:
> 
>>Yeah, I checked the cvs, and the latest version does not have
>>abstractions for starting and ending the row.
>>
>>I'm creating a custom table that will allow built-in selection of
>>rows, with highlighting of the selected row.  However, in order to do
>>this, I need to mark each row with an id, which I currently cannot do
>>underneath the myfaces codebase.
>>
>>On Tue, 18 Jan 2005 08:56:25 -0600, Heath Borders
>><he...@gmail.com> wrote:
>>
>>>I haven't pulled down the latest code for a while (maybe 2 weeks), so
>>>I don't know what's been added.
>>>
>>>Howvever, in the code I'm looking at, there are places in the renderer
>>>for placing code before and after the row, however, the actual code
>>>for starting and ending the row is still only in the renderer, and it
>>>would be best to be able to override that.
>>>
>>>
>>>On Tue, 18 Jan 2005 15:34:31 +0100, Martin Marinschek
>>><ma...@gmail.com> wrote:
>>>
>>>>There should already be such methods for many of the components... we
>>>>should have them in each component, with that writing a custom
>>>>renderer can be much easier!
>>>>
>>>>regards,
>>>>
>>>>Martin
>>>>
>>>>On Tue, 18 Jan 2005 08:31:19 -0600, Heath Borders
>>>><he...@gmail.com> wrote:
>>>>
>>>>>I would like to refactor the HtmlTableRenderer to have a protected
>>>>>method for starting and finishing a row.
>>>>>
>>>>>This shouldn't change any functionality in the code, its mainly so
>>>>>that I can reuse the renderer for a datatable-like component.
>>>>>
>>>>>I'll commit the enhancement later today, but I just wanted to get
>>>>>people's feelings on the matter.
>>>>>
>>>>>--
>>>>>-Heath Borders-Wing
>>>>>hborders@mail.win.org
>>>>>
>>>>
>>>
>>>--
>>>-Heath Borders-Wing
>>>hborders@mail.win.org
>>>
>>
>>
>>--
>>-Heath Borders-Wing
>>hborders@mail.win.org
>>
> 
> 
> 

Re: HtmlTableRenderer enhancement

Posted by Martin Marinschek <ma...@gmail.com>.
You are right, the hook-methods are not there...

my +1 for adding them.

regards,

Martin


On Tue, 18 Jan 2005 09:23:30 -0600, Heath Borders
<he...@gmail.com> wrote:
> Yeah, I checked the cvs, and the latest version does not have
> abstractions for starting and ending the row.
> 
> I'm creating a custom table that will allow built-in selection of
> rows, with highlighting of the selected row.  However, in order to do
> this, I need to mark each row with an id, which I currently cannot do
> underneath the myfaces codebase.
> 
> On Tue, 18 Jan 2005 08:56:25 -0600, Heath Borders
> <he...@gmail.com> wrote:
> > I haven't pulled down the latest code for a while (maybe 2 weeks), so
> > I don't know what's been added.
> >
> > Howvever, in the code I'm looking at, there are places in the renderer
> > for placing code before and after the row, however, the actual code
> > for starting and ending the row is still only in the renderer, and it
> > would be best to be able to override that.
> >
> >
> > On Tue, 18 Jan 2005 15:34:31 +0100, Martin Marinschek
> > <ma...@gmail.com> wrote:
> > > There should already be such methods for many of the components... we
> > > should have them in each component, with that writing a custom
> > > renderer can be much easier!
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On Tue, 18 Jan 2005 08:31:19 -0600, Heath Borders
> > > <he...@gmail.com> wrote:
> > > > I would like to refactor the HtmlTableRenderer to have a protected
> > > > method for starting and finishing a row.
> > > >
> > > > This shouldn't change any functionality in the code, its mainly so
> > > > that I can reuse the renderer for a datatable-like component.
> > > >
> > > > I'll commit the enhancement later today, but I just wanted to get
> > > > people's feelings on the matter.
> > > >
> > > > --
> > > > -Heath Borders-Wing
> > > > hborders@mail.win.org
> > > >
> > >
> >
> >
> > --
> > -Heath Borders-Wing
> > hborders@mail.win.org
> >
> 
> 
> --
> -Heath Borders-Wing
> hborders@mail.win.org
>

Re: HtmlTableRenderer enhancement

Posted by Heath Borders <he...@gmail.com>.
Yeah, I checked the cvs, and the latest version does not have
abstractions for starting and ending the row.

I'm creating a custom table that will allow built-in selection of
rows, with highlighting of the selected row.  However, in order to do
this, I need to mark each row with an id, which I currently cannot do
underneath the myfaces codebase.


On Tue, 18 Jan 2005 08:56:25 -0600, Heath Borders
<he...@gmail.com> wrote:
> I haven't pulled down the latest code for a while (maybe 2 weeks), so
> I don't know what's been added.
> 
> Howvever, in the code I'm looking at, there are places in the renderer
> for placing code before and after the row, however, the actual code
> for starting and ending the row is still only in the renderer, and it
> would be best to be able to override that.
> 
> 
> On Tue, 18 Jan 2005 15:34:31 +0100, Martin Marinschek
> <ma...@gmail.com> wrote:
> > There should already be such methods for many of the components... we
> > should have them in each component, with that writing a custom
> > renderer can be much easier!
> >
> > regards,
> >
> > Martin
> >
> > On Tue, 18 Jan 2005 08:31:19 -0600, Heath Borders
> > <he...@gmail.com> wrote:
> > > I would like to refactor the HtmlTableRenderer to have a protected
> > > method for starting and finishing a row.
> > >
> > > This shouldn't change any functionality in the code, its mainly so
> > > that I can reuse the renderer for a datatable-like component.
> > >
> > > I'll commit the enhancement later today, but I just wanted to get
> > > people's feelings on the matter.
> > >
> > > --
> > > -Heath Borders-Wing
> > > hborders@mail.win.org
> > >
> >
> 
> 
> --
> -Heath Borders-Wing
> hborders@mail.win.org
> 


-- 
-Heath Borders-Wing
hborders@mail.win.org

Re: HtmlTableRenderer enhancement

Posted by Heath Borders <he...@gmail.com>.
I haven't pulled down the latest code for a while (maybe 2 weeks), so
I don't know what's been added.

Howvever, in the code I'm looking at, there are places in the renderer
for placing code before and after the row, however, the actual code
for starting and ending the row is still only in the renderer, and it
would be best to be able to override that.


On Tue, 18 Jan 2005 15:34:31 +0100, Martin Marinschek
<ma...@gmail.com> wrote:
> There should already be such methods for many of the components... we
> should have them in each component, with that writing a custom
> renderer can be much easier!
> 
> regards,
> 
> Martin
> 
> On Tue, 18 Jan 2005 08:31:19 -0600, Heath Borders
> <he...@gmail.com> wrote:
> > I would like to refactor the HtmlTableRenderer to have a protected
> > method for starting and finishing a row.
> >
> > This shouldn't change any functionality in the code, its mainly so
> > that I can reuse the renderer for a datatable-like component.
> >
> > I'll commit the enhancement later today, but I just wanted to get
> > people's feelings on the matter.
> >
> > --
> > -Heath Borders-Wing
> > hborders@mail.win.org
> >
> 


-- 
-Heath Borders-Wing
hborders@mail.win.org

Re: HtmlTableRenderer enhancement

Posted by Martin Marinschek <ma...@gmail.com>.
There should already be such methods for many of the components... we
should have them in each component, with that writing a custom
renderer can be much easier!

regards,

Martin


On Tue, 18 Jan 2005 08:31:19 -0600, Heath Borders
<he...@gmail.com> wrote:
> I would like to refactor the HtmlTableRenderer to have a protected
> method for starting and finishing a row.
> 
> This shouldn't change any functionality in the code, its mainly so
> that I can reuse the renderer for a datatable-like component.
> 
> I'll commit the enhancement later today, but I just wanted to get
> people's feelings on the matter.
> 
> --
> -Heath Borders-Wing
> hborders@mail.win.org
>