Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:panelgrid help to control width, alignment of TD etc in JSF

Vetrivel Loganathan
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to JSF. Just started to crawl in the technology. I have html table like this,

<TD WIDTH="226" HEIGHT="1" CLASS="lbgcolor">
<IMG SRC="null.gif" WIDTH="226" HEIGHT="1"></TD>
<TD ALIGN="CENTER" WIDTH="226" HEIGHT="87" CLASS="lbgcolor">
<A HREF="" TABINDEX=-2><IMG SRC="nnnn.gif" BORDER="0"></A>

I like to implement the same using core JSF tags and it looks like,

<h anelGrid border="0" cellspacing="0" cellpadding="0" columns="1"
columnClasses="lbgcolor" >
<h:graphicImage value="null.gif" width="226" height="1"></h:graphicImage>
<h anelGroup >
<h:graphicImage value="nnnn.gif" > </h:graphicImage>
</h anelGroup>
</h anelGrid>

1. Is this the way to do ?
2. I am not able to set width, alignment, height to TD using JSF core tags. Can anyone suggest how to do this ?
3. How to provide hyperlink on the image ?

Advance Thanks,

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic