You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Strand <ma...@entcap.se> on 2006/05/04 23:05:55 UTC

Contrib table markup

I just started using the Table component, it's very convenient for an  
administration interface I'm building.
I noticed it outputs some rather weird markup - no thead/tbody, and each  
header cell has an embedded <table> together with an inline <style>.  
Perhaps I'm hoping for too much, but is there a simple way to tweak only  
the markup without rewriting the whole thing?

Martin

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


Re: Contrib table markup

Posted by Pedro Viegas <pv...@gmail.com>.
You can add CSS classes to it so it renders in the apropriate TRs and TDs
and then define your own look and feel in CSS.
As in...

<table class="data" jwcid="table@Contrib:Table" source="ognl:xxx"
columns="xxx"
  columnsClass="data" rowsClass="data" valuesClass="data">

For some real tweaking like removing those unwished HTML code or introducing
the wished thead, tbody you'd have code some rendering code. The
Contrib:Table component suportes it. Don't remember from memory how, but I
have seen it on the list some time before. I'm sure a quick find will find
it.

Regards,

On 5/4/06, Martin Strand <ma...@entcap.se> wrote:
>
> I just started using the Table component, it's very convenient for an
> administration interface I'm building.
> I noticed it outputs some rather weird markup - no thead/tbody, and each
> header cell has an embedded <table> together with an inline <style>.
> Perhaps I'm hoping for too much, but is there a simple way to tweak only
> the markup without rewriting the whole thing?
>
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
Pedro Viegas