You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by LLTYK <LL...@mailinator.com> on 2010/09/13 17:43:08 UTC

How to apply a css class to a tapestry component?

I try this:


<tbody t:type="ajaxformloop" t:source="source" t:value="value"
t:encoder="encoder" class="some-class-i-want">

The class attribute disappears. Previously I've simply slapped the class
onto a wrapping div or something and changed the css accordingly, but this
problem pops up over and over and I'd like an easier solution to it.
-- 
View this message in context: http://tapestry-users.832.n2.nabble.com/How-to-apply-a-css-class-to-a-tapestry-component-tp5526814p5526814.html
Sent from the Tapestry Users 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: How to apply a css class to a tapestry component?

Posted by Howard Lewis Ship <hl...@gmail.com>.
Added to the FAQ.

On Mon, Sep 13, 2010 at 9:11 AM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> Short answer: just add it.
> Not-so-short answer: this will only work for components that render informal
> parameters (any attribute that isn't a parameter). They're annotated with
> @SupportsInformalParameters. AjaxFormLoop isn't one of them.
>
> --
> 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
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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


Re: How to apply a css class to a tapestry component?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Short answer: just add it.
Not-so-short answer: this will only work for components that render  
informal parameters (any attribute that isn't a parameter). They're  
annotated with @SupportsInformalParameters. AjaxFormLoop isn't one of them.

-- 
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