Hi,

   I have a table like below

<table width="100%" cellpadding="2" cellspacing="0">
<tr class="linkboxbold" style="background-color: ${alternateColour}">
${imageExistence}
</tr>
</table>


java file:

public String getImageExistence() {
String imageTag = null;
String image = newsItems.get(currIndex).getImgUrl();
if(null != image) {
imageTag = "<td style=\"vertical-align:top;\"><p class=\"image\"><img
alt=\&quot;false\&quot; src=\&quot;&quot; + image + &quot;\&quot;
/></p></td>";
} else {
        imageTag = null;
        }
        return imageTag;
        }

The value rendered in the run time and in the UI instead of displaying the
image, it displays the tag itself

<td style="vertical-align:top;"><p class="image">
http://10.0.1.17:8080/services/img/news/100/logo.jpg </p></td>

What am missing in the code?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Html-tag-not-get-layout-properly-tp5505092p5505092.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to