Hi

You have messed (i.e mixed) things up. Try this:

<%@ 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">

        <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>

-----Original Message-----
From: Jonathan Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 02, 2006 10:46 PM
To: user@shale.apache.org
Subject: Re: Question about prerenderer?



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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Reply via email to