David D. gives some good advice, but the standard JSF way of doing this, without having to drag Tomahawk into the mix is to use <h:panelGrid>. btw, you don't need empty bodies in your JSF HTML tags.
david 2006/11/13, david.delbecq <[EMAIL PROTECTED]>:
Hi Jonathan, Don't mix JSF component and html tags in your JSP. The whole JSF form tree is rendered at the position of the <h:form> and the html tags are rendered after the form tag. If you want to include html tags inside your jsf tree, use the <f:verbatim> component around html sections or use the t:tag of tomahawk. The later one is cleaner in terms of hierarchy in the jsp, but might be difficult to read if you go too deep. In your case (rendering a table) there is already a grid component in tomahawk that does it :) btw, attachements are stripped away from mailing list. If you want to provide screenshots use something like imageshak. Jonathan Smith a écrit : > ok using this code > > <%@ page language="java" contentType="text/html; charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > > <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> > <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> > <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%> > > > > <t:div styleClass="portletheader"> > <h:outputText value="Add Contact"></h:outputText> > </t:div> > > <h:form> > <table> > <tr> > <td width="50%"><h:outputText value="First Name: " > /></td> > <td width="50%"><h:inputText id="fName" value="" /></td> > </tr> > <tr> > <td><h:outputText value=" Last Name: " /></td> > <td><h:inputText id="lName" value="" /></td> > </tr> > <tr> > <td><h:outputText value=" Office: " /></td> > <td><h:inputText id="office" value="" /></td> > </tr> > <tr> > <td><h:outputText value=" Extension: " /></td> > <td><h:inputText id="extension" value="" /></td> > </tr> > <tr> > <td><h:outputText value=" Email: " /></td> > <td><h:inputText id="email" value="" /></td> > </tr> > <tr> > <td><h:outputText value=" IM Username: " /></td> > <td><h:inputText id="imUsername" value="" /></td> > </tr> > <tr> > <td><h:outputText value=" IM Service:" /></td> > <td><h:inputText id="imService" value="" /></td> > </tr> > </table> > <h:commandButton styleClass="managerboxbutton" > style="margin-top:5%;" > value="Add Contact" action="addcontact"></h:commandButton> > </h:form> > > the form gets rendered wrong. please see attachment for a picture. > > _________________________________________________________________ > Stay in touch with old friends and meet new ones with Windows Live > Spaces > http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us >