You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Jonathan Smith <sm...@hotmail.com> on 2006/11/01 21:36:42 UTC

Question about prerenderer?

I am having trouble where everytime i put something that is set by the 
prerender inside of a <div> it always renders outside the <div>. How do you 
get something that is set by a prerender such as a timestamp or a datatable 
that uses a prerendered list to render in the <div>?

_________________________________________________________________
Get today's hot entertainment gossip  
http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001


Re: Question about prerenderer?

Posted by Jonathan Smith <sm...@hotmail.com>.
here is the page

<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<div class="portletbox">
						<h3>
							Debug
						</h3>


	<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="extensio" value="#{contact.extension}"/>
		</h:column>
		<h:column>
			<f:facet name="header">
				<h:outputText value="Email" />
			</f:facet>
			<h:outputText id="email" value="#{contact.email}" />
		</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>


</div>


when it is rendered the data table is above the div and the h3 is inside the 
div.






>From: "Craig McClanahan" <cr...@apache.org>
>Reply-To: user@shale.apache.org
>To: user@shale.apache.org
>Subject: Re: Question about prerenderer?
>Date: Wed, 1 Nov 2006 12:48:48 -0800
>
>On 11/1/06, Jonathan Smith <sm...@hotmail.com> wrote:
>>
>>I am having trouble where everytime i put something that is set by the
>>prerender inside of a <div> it always renders outside the <div>. How do
>>you
>>get something that is set by a prerender such as a timestamp or a
>>datatable
>>that uses a prerendered list to render in the <div>?
>
>
>What exactly does your JSP source page look like?  If you're using JSF
>1.1(very likely), then you are probably running into the fact that
>there are
>some interoperability issues trying to mix components and template text.
>Seeing what your page looks like will make it possible to offer some
>specific suggestions.
>
>Craig
>
>
>_________________________________________________________________
>>Get today's hot entertainment gossip
>>http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
>>
>>

_________________________________________________________________
All-in-one security and maintenance for your PC.  Get a free 90-day trial! 
http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail


Re: Question about prerenderer?

Posted by Craig McClanahan <cr...@apache.org>.
On 11/1/06, Jonathan Smith <sm...@hotmail.com> wrote:
>
> I am having trouble where everytime i put something that is set by the
> prerender inside of a <div> it always renders outside the <div>. How do
> you
> get something that is set by a prerender such as a timestamp or a
> datatable
> that uses a prerendered list to render in the <div>?


What exactly does your JSP source page look like?  If you're using JSF
1.1(very likely), then you are probably running into the fact that
there are
some interoperability issues trying to mix components and template text.
Seeing what your page looks like will make it possible to offer some
specific suggestions.

Craig


_________________________________________________________________
> Get today's hot entertainment gossip
> http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
>
>