Johnathan, You've stumbled across what most people find is the single biggest annoyance with JSF (at least in version 1.1). Please read this very important article by Hans Bergsten[1]. You may want to consider using Clay or Facelets or JSF 1.2.
Sean [1] http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html On 11/2/06, Jonathan Smith <[EMAIL PROTECTED]> wrote:
ok i using this code the <h3> tage get rendered at the bottom of the <t:div> instead of at the top where it belongs if i put the <f:verbaitum> wrapping the whole div i get the h3 outside and below the div. what can i do to get the h3 to render before the datatable? <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <t:div styleClass="portletbox"> <f:verbatim> <t:div> <h3> Debug </h3> </t:div> <h:dataTable value="#{mvportal.contacts}" var="contact" rowClasses="odd,even" cellspacing="0"> <h:column> <f:facet name="header"> <h:outputText value="Name" /> </f:facet> <h:outputText id="displayName" value="#{contact.displayName}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Office" /> </f:facet> <h:outputText id="OfficeName" value="#{contact.office.name}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="EXT" /> </f:facet> <h:outputText id="extension" value="#{contact.extension}" /> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Email" /> </f:facet> <h:outputLink value="mailto:#{contact.email}"> <h:outputText id="email" value="#{contact.email}" /> </h:outputLink> </h:column> <h:column> <f:facet name="header"> <h:outputText value="IM" /> </f:facet> <h:outputText id="im" value="#{contact.imUsername}" /> </h:column> </h:dataTable> </f:verbatim> </t:div> _________________________________________________________________ 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
