Hi,

Do you use a TableDecorator that overrides the addRowClass() method ?

Maybe you are overriding the default css class generation.

Cheers,
Narcis

On Thu, May 7, 2009 at 3:15 PM, Santosh Ramachandrula <rsantosh...@gmail.com
> wrote:

> Hi, Was I clear with the explanation yesterday?
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 1. When I initially display the results alternate row color(s) works.
> 2. When I make the column sortable = "true" and click on the column
> header it does an in page sorting and sorting works.
> 3.  After the column sort, Rows in the table still have background
> color but the problem is now two(or more) rows with same color are
> next to each other.
>
> Before colum sorting            After Sotring
>    RED                                RED
>    BLUE                               RED
>    RED                                BLUE
>    BLUE                               BLUE
>    RED                        RED
>
>
>
> 4. So is there a setting that I could do which would keep the rows
> colored with alternate colors after in-page sorting.
>
> 5. I did inspect the elements with Firebug, issue is that the style
> sheets on the rows are also getting moved.
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Thanks,
>
> On Wed, May 6, 2009 at 11:33 AM, Santosh Ramachandrula
> <rsantosh...@gmail.com> wrote:
> > Hi,
> >
> > 1. When I initially display the results alternate row color(s) works.
> > 2. When I make the column sortable = "true" and click on the column
> > header it does an in page sorting and sorting works.
> > 3.  After the column sort, Rows in the table still have background
> > color but the problem is now two(or more) rows with same color are
> > next to each other.
> >
> > Before colum sorting            After Sotring
> >     RED                                RED
> >     BLUE                               RED
> >     RED                                BLUE
> >     BLUE                               BLUE
> >     RED                        RED
> >
> >
> >
> > 4. So is there a setting that I could do which would keep the rows
> > colored with alternate colors after in-page sorting.
> >
> > 5. I did inspect the elements with Firebug, issue is that the style
> > sheets on the rows are also getting moved.
> >
> >
> > Hope this helps.
> >
> > Thanks,
> > Santosh
> >
> >
> > On Wed, May 6, 2009 at 8:43 AM, Mike McNally <emmecin...@gmail.com>
> wrote:
> >> That's my point.  If they're not colored, then clearly that mechanism
> >> is not working.  Why?  Is the .css file not being loaded? Are the
> >> even/odd class attributes not being applied?  Something must be
> >> different about the page after re-sorting.  If you knew what was
> >> different, it might help figure out what's wrong.
> >>
> >> The sort mechanism works by creating anchor tags in the header cells.
> >> My guess would be that something is wrong with those.
> >>
> >>
> >> 2009/5/6 Paslaru Narcis <paslaru.nar...@gmail.com>:
> >>> Hello,
> >>>
> >>> I don't understand your question. Aren't the row colored alternately by
> >>> default, by using css ?
> >>>
> >>> Sorry,
> >>> Narcis Paslaru
> >>>
> >>> On Wed, May 6, 2009 at 3:48 PM, Santosh Ramachandrula
> >>> <rsantosh...@gmail.com> wrote:
> >>>>
> >>>> Hi, Any leads on the question below?
> >>>>
> >>>> Thanks,
> >>>>
> >>>> On Tue, May 5, 2009 at 12:24 PM, Santosh Ramachandrula
> >>>> <rsantosh...@gmail.com> wrote:
> >>>> > Hi,
> >>>> >
> >>>> > 1. I am using Display tag library for displaying in jsp
> >>>> > 2. I am using alternate row colors and in page column sorting.
> >>>> > 3. When I click on the column header it sorts the data but I loose
> the
> >>>> > alternate row coloring.
> >>>> >
> >>>> > I want the data to be displayed with alternate row colors after in
> >>>> > page sorting, how do I achieve this using display tag?
> >>>> >
> >>>> > Thanks,
> >>>> >
> >>>>
> >>>>
> >>>>
> ------------------------------------------------------------------------------
> >>>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances!
> Your
> >>>> production scanning environment may not be a perfect world - but
> thanks to
> >>>> Kodak, there's a perfect scanner to get the job done! With the NEW
> KODAK
> >>>> i700
> >>>> Series Scanner you'll get full speed at 300 dpi even with all image
> >>>> processing features enabled. http://p.sf.net/sfu/kodak-com
> >>>> _______________________________________________
> >>>> displaytag-user mailing list
> >>>> displaytag-user@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >>>
> >>>
> >>>
> ------------------------------------------------------------------------------
> >>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances!
> Your
> >>> production scanning environment may not be a perfect world - but thanks
> to
> >>> Kodak, there's a perfect scanner to get the job done! With the NEW
> KODAK
> >>> i700
> >>> Series Scanner you'll get full speed at 300 dpi even with all image
> >>> processing features enabled. http://p.sf.net/sfu/kodak-com
> >>> _______________________________________________
> >>> displaytag-user mailing list
> >>> displaytag-user@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Turtle, turtle, on the ground,
> >> Pink and shiny, turn around.
> >>
> >>
> ------------------------------------------------------------------------------
> >> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> >> production scanning environment may not be a perfect world - but thanks
> to
> >> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> >> Series Scanner you'll get full speed at 300 dpi even with all image
> >> processing features enabled. http://p.sf.net/sfu/kodak-com
> >> _______________________________________________
> >> displaytag-user mailing list
> >> displaytag-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> >>
> >
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to