This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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.
 
jQuery in Action, 2nd edition
 
subject: h:panelgrid help to control width, alignment of TD etc in JSF
 
Similar Threads
Getting search results on same search page
Multiple bundles broke my app(properties file)
Expression Language not supported in compile time attribute items
Getting Values from a window to parent page
jsp:include and c:import combination/nesting