File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes h:panelgrid help to control width, alignment of TD etc in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "h:panelgrid help to control width, alignment of TD etc in JSF" Watch "h:panelgrid help to control width, alignment of TD etc in JSF" New topic
Author

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

Vetrivel Loganathan
Greenhorn

Joined: Aug 10, 2004
Posts: 1
Hi

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

<TABLE BORDER="2" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD WIDTH="226" HEIGHT="1" CLASS="lbgcolor">
<IMG SRC="null.gif" WIDTH="226" HEIGHT="1"></TD>
</TR>
<TR>
<TD ALIGN="CENTER" WIDTH="226" HEIGHT="87" CLASS="lbgcolor">
<A HREF="http://url.com" TABINDEX=-2><IMG SRC="nnnn.gif" BORDER="0"></A>
</TD>
</TR>
</TABLE>

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,

Regards,
Vetri.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:panelgrid help to control width, alignment of TD etc in JSF