You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by TG <ta...@hotmail.com> on 2011/08/09 04:14:55 UTC

Zebra Grid in Tapestry 5.2.6

What is the simplest way to do this without writing any codes but maybe just
css3?

Thanks.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Zebra-Grid-in-Tapestry-5-2-6-tp4680461p4680461.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Zebra Grid in Tapestry 5.2.6

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
Tapestry JumpStart shows you how to do exactly that.  Not exactly no code, but its pretty easy.

On Aug 8, 2011, at 10:14 PM, TG wrote:

> What is the simplest way to do this without writing any codes but maybe just
> css3?
> 
> Thanks.
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Zebra-Grid-in-Tapestry-5-2-6-tp4680461p4680461.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Zebra Grid in Tapestry 5.2.6

Posted by Bob Harner <bo...@gmail.com>.
The nth-child approach won't work on IE 6, 7 & 8, I believe.

Bob Harner
On Aug 9, 2011 9:15 AM, "TG" <ta...@hotmail.com> wrote:
> Dmitry, your solution works like a charm :) ! I think it is the simplest
that
> works with Tapestry grid I have seen so far.
>
> Thanks a lot!
>
> --
> View this message in context:
http://tapestry.1045711.n5.nabble.com/Zebra-Grid-in-Tapestry-5-2-6-tp4680461p4681963.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

Re: Zebra Grid in Tapestry 5.2.6

Posted by TG <ta...@hotmail.com>.
Dmitry, your solution works like a charm :) ! I think it is the simplest that
works with Tapestry grid I have seen so far.

Thanks a lot!

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Zebra-Grid-in-Tapestry-5-2-6-tp4680461p4681963.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Zebra Grid in Tapestry 5.2.6

Posted by Dmitry Gusev <dm...@gmail.com>.
Here's one solution:

CSS:

.myRowClass:hover, .myRowClass:nth-child(even):hover {

	background-color: #DCE5FF;
}

.myRowClass:nth-child(even) {
    background-color: #E8E8E8;
}


TML:

<t:grid ...

            rowClass="literal:myRowClass">


On Tue, Aug 9, 2011 at 06:14, TG <ta...@hotmail.com> wrote:

> What is the simplest way to do this without writing any codes but maybe
> just
> css3?
>
> Thanks.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Zebra-Grid-in-Tapestry-5-2-6-tp4680461p4680461.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Re: Zebra Grid in Tapestry 5.2.6

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 08 Aug 2011 23:14:55 -0300, TG <ta...@hotmail.com> wrote:

> What is the simplest way to do this without writing any codes but maybe  
> just css3?

See http://reference.sitepoint.com/css/pseudoclass-nthoftype. No code  
needed, just CSS.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org