Block as well as RenderBlock don't render the tag name as used in the
template, just the body specified within the Block component.
If you want some enclosing element just wrap it up in a div element:
<form jwcid="[EMAIL PROTECTED]" listener="listener:onFormSubmit">
<div id="headerSelect">
<div jwcid="@RenderBlock"
block="ognl:components.autoPagingContent" />
</div>
<div id="galleryContent">
<div jwcid="@RenderBlock"
block="ognl:components.collectionContent" />
</div>
<div id="footerSelect">
<div jwcid="@RenderBlock"
block="ognl:components.autoPagingContent" />
</div>
</form>
Uli
Ken in nashua schrieb:
Well Upon examining the rendered markup... the divs were omitted from the
rendering with the actual markup in the Block declaration.
But even so I thought I should be able to navigate anyway using the id's I provided...
I am unable to even reference the id I specified for the actual Block.
Any one got ideas on how I can reference these Dom nodes... (if they exist?)
<span jwcid="[EMAIL PROTECTED]">
<table width="100%" border=1>
<tr>
<td width="25%" align="left" NOWRAP>
<span jwcid="@Insert" value="Table Size"/>
<select jwcid="tableSizeSelect" onchange="tapestry.form.refresh(this.form)"/>
<span jwcid="@Insert" value="Paging Span"/>
<select jwcid="pagingSpanSelect" onchange="tapestry.form.refresh(this.form)"/>
</td>
<td align="left" NOWRAP>
<a jwcid="@DirectLink" listener="listener:onBegin" style="fontSize:15px;"> <span jwcid="@Insert"
value="<<"/> </a>
<a jwcid="@DirectLink" listener="listener:onPrev"> <span jwcid="@Insert" value="<"/>
</a>
<a jwcid="@DirectLink" listener="listener:onPage" parameters="ognl:1"> <span jwcid="@Insert"
value="ognl:1"/> </a>
<a jwcid="@DirectLink" listener="listener:onPage" parameters="ognl:2"> <span jwcid="@Insert"
value="ognl:2"/> </a>
<a jwcid="@DirectLink" listener="listener:onPage" parameters="ognl:3"> <span jwcid="@Insert"
value="ognl:3"/> </a>
<a jwcid="@DirectLink" listener="listener:onPage" parameters="ognl:4"> <span jwcid="@Insert"
value="ognl:4"/> </a>
<a jwcid="@DirectLink" listener="listener:onPage" parameters="ognl:5"> <span jwcid="@Insert"
value="ognl:5"/> </a>
<a jwcid="@DirectLink" listener="listener:onNext"> <span jwcid="@Insert" value=">"/>
</a>
<a jwcid="@DirectLink" listener="listener:onEnd"> <span jwcid="@Insert" value=">>"/>
</a>
</td>
</tr>
</table>
</span>
<span jwcid="[EMAIL PROTECTED]">
<table width="100%">
<tr>
<span jwcid="[EMAIL PROTECTED]" source="ognl:collection" value="ognl:currentObject"
index="ognl:index">
<span jwcid="@If" condition="ognl:tableSize">
<span jwcid="@If" condition="ognl:(index % tableSize) == 0">
<span jwcid="@Insert" value="</tr><tr>" raw="true"/>
</span>
</span>
<td>
<a jwcid="[EMAIL PROTECTED]" listener="listener:edit"
parameters="ognl:currentObject">
<img jwcid="@Image"
image="ognl:photoAsset"
alt="ognl:currentObject.demographics.city"
title="ognl:currentObject.demographics.city" width="160" height="110"
/>
</a>
</td>
</span>
</tr>
</table>
</span>
Best regards Ken in nashua
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Finding a DOM node in
tapestry-4.1.*Date: Fri, 23 Nov 2007 14:49:20 -0500
Folks,I cannot find my node beyond the form.Please look <form jwcid="[EMAIL PROTECTED]" listener="listener:onFormSubmit"> <div jwcid="[EMAIL PROTECTED]" block="ognl:components.autoPagingContent" /> <div jwcid="[EMAIL PROTECTED]" block="ognl:components.collectionContent" /> <div jwcid="[EMAIL PROTECTED]" block="ognl:components.autoPagingContent" /> </form>I am able to do the following: document.forms[0].galleryFormI cannot do the following: document.forms[0].galleryForm.headerSelectgalleryForm does have 4 children and elements (one hidden)So I can reference... the following: document.forms[0].galleryForm.children[0] document.forms[0].galleryForm.children[1] document.forms[0].galleryForm.children[2] document.forms[0].galleryForm.children[3]Have the div elements gone pooof ! I cannot find them. Since they are Blocks does this render them transient?basically all i want to do
is ass a text node to one of the DIV's above like this... var divBlock =
document.createElement("div");
divBlock.appendChild(document.createTextNode("Loading...")); var container =
document.getElementById("${component.clientId}");
container.addChild(divBlock);Drilling into DOM nodes for tapestry is an arduous process. Has it re-fabricated
the markup and truncated it? What can I do so I can programmatically get a handle on these DOM's that I
cannot find.If someone could shed some light here on what I am missing that would be great.Best regards Ken
in nashua
Connect and share in new ways with Windows Live. Connect now!
_________________________________________________________________
Put your friends on the big screen with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_102007
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]