You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcelo Epstein <ma...@epstein.com.br> on 2005/04/05 16:23:12 UTC

Tag inside a cell.

Hi,

When the attribute of an object is null, I always lost the border of the 
table.What is a good way to avoid it?
ex:
<table>
<tr>
<td><bean:write name"x" property="y"/></td> (when y = null, border seems 
strange!)
</tr>
</table>


Thanks in advance.
Marcelo

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


Re: Tag inside a cell.

Posted by Brandon Mercer <br...@eutonian.com>.
Marcelo Epstein wrote:

> Thanks Jeff,
>
> But it is not working. I inserted :
>
> table { empty-cells: show; }
> inside my css file.
>
> But the cells when the attribute of the bean is null still appears no
> border. :-(
>
> Any sugestion? Or sample code?
>
You'll have to make sure that the table you're working in uses that
stylesheet.  From the sounds of it you aren't very familiar with CSS. 
To make it easy for you just put an  &nbsp; after the tag.
Brandon

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


Re: Tag inside a cell.

Posted by Marcelo Epstein <ma...@epstein.com.br>.
Thanks Jeff,

But it is not working. I inserted :

table { empty-cells: show; }
inside my css file.

But the cells when the attribute of the bean is null still appears no border. :-(

Any sugestion? Or sample code?

Thanks in advance
Marcelo








Jeff Beal wrote:

>In CSS:
>
>table { empty-cells: show; }
>
>Another alternative is to include &nbsp; in empty table cells
>
>See http://www.w3.org/TR/REC-CSS2/tables.html#empty-cells
>
>-- Jeff
>
>On Apr 5, 2005 10:23 AM, Marcelo Epstein <ma...@epstein.com.br> wrote:
>  
>
>>Hi,
>>
>>When the attribute of an object is null, I always lost the border of the
>>table.What is a good way to avoid it?
>>ex:
>><table>
>><tr>
>><td><bean:write name"x" property="y"/></td> (when y = null, border seems
>>strange!)
>></tr>
>></table>
>>
>>Thanks in advance.
>>Marcelo
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>    
>>
>
>
>  
>

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


Re: Tag inside a cell.

Posted by Jeff Beal <jb...@gmail.com>.
In CSS:

table { empty-cells: show; }

Another alternative is to include &nbsp; in empty table cells

See http://www.w3.org/TR/REC-CSS2/tables.html#empty-cells

-- Jeff

On Apr 5, 2005 10:23 AM, Marcelo Epstein <ma...@epstein.com.br> wrote:
> Hi,
> 
> When the attribute of an object is null, I always lost the border of the
> table.What is a good way to avoid it?
> ex:
> <table>
> <tr>
> <td><bean:write name"x" property="y"/></td> (when y = null, border seems
> strange!)
> </tr>
> </table>
> 
> Thanks in advance.
> Marcelo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

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