Actually, I've done that already, but the table didn't works fine.
Now, the problem is the cellspacing that didn't appears.
Follow my code :
<f:verbatim><table width="760" bgcolor="#cccccc" cellspacing="1"
cellpadding="0"><tr></f:verbatim>
<x:dataList var="field"
value="#{remessaBean.fieldsEmbque}"
layout="simple"
rowCountVar="rowCount"
rowIndexVar="rowIndex">
<f:verbatim><td align="center"></f:verbatim>
<x:outputText value="*" rendered="#{field.required}"
styleClass="forms"/>
<x:outputText value="#{field.nomeCampoTela}" styleClass="forms"/>
<f:verbatim></td></f:verbatim>
</x:dataList>
<f:verbatim><td></f:verbatim>
<x:outputText value="Excluir" styleClass="forms"/>
<f:verbatim></td><td> </td></tr></table></f:verbatim>
The source code builted :
<table width="760" bgcolor="#cccccc" cellspacing="1" cellpadding="0"><tr>
<td align="center"><span class="forms">*</span><span
class="forms">Embarcador</span></td>
<td align="center"><span class="forms">*</span><span
class="forms">Nº Embarque</span></td>
<td align="center"><span class="forms">Dt. Prevista</span></td>
<td align="center"><span class="forms">Pedido</span></td>
<td align="center"><span class="forms">Cliente</span></td>
<td align="center"><span class="forms">Local Embarque</span></td>
<td align="center"><span class="forms">Lote</span></td>
<td><span class="forms">Excluir</span></td><td> </td></tr></table>
Any ideas?
Guedes
PS.: Thanks for the patience.
On 10/17/05, Randahl Fink Isaksen <[EMAIL PROTECTED]> wrote:
> If the table gets no border, all you have to do is to set the
> styleClass attribute, so the output table gets a CSS style class. Then you
> can add a stylesheet to your document which states that the table should
> indeed have a border.
>
> Change the JSF tag to something like
> <t:someTag styleClass="Guedes">
>
> and then you will get an output like
> <table class="Guedes">
>
> and then all you have to add is a stylesheet containing something like
> table.Guedes {
> border: 1px solid black;
> }
>
>
> Randahl
>
>
>
> PATRICIA GUEDES wrote:
>
> I've tried both solutions. The first one (Tomahawk newspaperTable
> component) didn't work, because the table was bad-formed (without
> border). Maybe I did something wrong....
> The other solution (output the HTML tags) is a workaround and the
> table appears a little ugly. Is that any other way????
>
> Thanks.
> Guedes
>
> On 10/17/05, Randahl Fink Isaksen <[EMAIL PROTECTED]> wrote:
>
>
> No, but you can add your own. Simply output a <table> tag before
> the
> list and surround each element with <td>[your content]</td>. Then complete
> your list with </table>.
>
> Randahl
>
> PATRICIA GUEDES wrote:
>
> Thanks for your reply!!!
>
> The problem is that with dataList the columns format (border, etc) don't
> appear.
>
> Thanks.
> Guedes
>
> On 10/17/05, Randahl Fink Isaksen <[EMAIL PROTECTED]> wrote:
>
>
> You can use the Tomahawk dataList component - it can render columns if
> you use the "simple" setting.
>
> Randahl
>
> PATRICIA GUEDES wrote:
>
>
>
> Hi, I´m from Brazil (sorry my bad English) and I an trying use the tag
> dataTable.
>
> How can I do to make a dataTable that receive a field's Array show the
> table by columns instead lines?
>
> Ex:
>
> field1 field2 field3 field4 field5 field6
>
> Thanks.
> Guedes
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>