You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John Coleman <jo...@sopranewellandbudge.com> on 2006/11/29 11:22:31 UTC

span key - dynamic component, and may not appear inside an ignored block

This code:

<span jwcid="@Else">
	<div class="buttonText"><span key="save-button-text">Save the record 
and return</span></div>
	<input  type="submit"

Produces this error: Tag <span> on line 125 is a dynamic component, and may not 
appear inside an ignored block. Is there a simple way around this, I would 
rather like to use <span key=""> wherever I like.

John


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: span key - dynamic component, and may not appear inside an ignored block

Posted by John Coleman <jo...@sopranewellandbudge.com>.
Ron Piterman <rpiterman <at> gmx.net> writes:

> 
> check if all yaour attributes are closed properly.
> Cheers,
> Ron

Thanks Ron, that's exactly what it was, missing " on a attribute close! Didn't 
spot it when I checked the listing.

John


Ron Piterman <rpiterman <at> gmx.net> writes:

> 
> check if all yaour attributes are closed properly.
> Cheers,
> Ron



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: span key - dynamic component, and may not appear inside an ignored block

Posted by Ron Piterman <rp...@gmx.net>.
check if all yaour attributes are closed properly.
Cheers,
Ron


John Coleman wrote:
> This code:
> 
> <span jwcid="@Else">
> 	<div class="buttonText"><span key="save-button-text">Save the record 
> and return</span></div>
> 	<input  type="submit"
> 
> Produces this error: Tag <span> on line 125 is a dynamic component, and may not 
> appear inside an ignored block. Is there a simple way around this, I would 
> rather like to use <span key=""> wherever I like.
> 
> John
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: span key - dynamic component, and may not appear inside an ignored block

Posted by Sam Gendler <sg...@ideasculptor.com>.
The problem isn't your else block (I don't think). I've only seen this
when I've got a component wrapped in a $remove$ block. I've cetainly
used the <span key="..."/> syntax and @Insert components inside an
@Else component with no trouble, even when the else block doesn't
execute.

--sam


On 11/29/06, John Coleman <jo...@sopranewellandbudge.com> wrote:
> This code:
>
> <span jwcid="@Else">
>         <div class="buttonText"><span key="save-button-text">Save the record
> and return</span></div>
>         <input  type="submit"
>
> Produces this error: Tag <span> on line 125 is a dynamic component, and may not
> appear inside an ignored block. Is there a simple way around this, I would
> rather like to use <span key=""> wherever I like.
>
> John
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: span key - dynamic component, and may not appear inside an ignored block

Posted by John Coleman <jo...@sopranewellandbudge.com>.
I can't find a mistake, but I wonder if this @Any code higher up is the real 
issue as it surounds the whole section, but then I used that at top of page and 
no problem?

Is there something I can use in eclipse to help me with the syntax, like 
Spindle?

John

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title><span key="title"> Admin: Product</span></title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-
8859-1"/>
		<link rel ="stylesheet" 
              type="text/css" 
              href="css/header.css"
		/>  
		<link rel ="stylesheet" 
		      type="text/css" 
		      href="css/main.css"
		/>  
		<script src ="js/common.js" 
		        type="text/javascript">
		</script>
		<script src ="js/popCalender.js" 
		        type="text/javascript">
		</script>
	</head>
	<body jwcid="@Body">
		<div class="page">
			<span jwcid="@header" />
			<span jwcid="@BreadCrumb" pageNames="ognl:new 
java.lang.String[] { 'Home', 'ProductAdmin' }">Bread crumb</span>
			<div class="content">
				<span jwcid="@MenuHome" />
				<span jwcid="@ErrorDisplay" />

				<div class="data">
					<div class="dataListContainer">
						<form id = "productMaintForm" 
						      jwcid="productMaintForm">
							<fieldset jwcid="@Any" 
title="message:fieldset1Title">
								<div 
class="titleBar">
									<span 
jwcid="@If" condition="ognl:isMode
(@com.sopragroup.product.core.tapestry.PageModes@MODE_ADD)"><span key="titlebar-
add-text">Add Product</span></span>
									<span 
jwcid="@Else">
									
	<span jwcid="@If" condition="ognl:isMode
(@com.sopragroup.product.core.tapestry.PageModes@MODE_UPDATE)"><span key="title-
bar-edit-text">Edit Product</span></span>
									
	<span jwcid="@Else"><span key="title-bar-delete-text">Delete 
Product</span></span>
									</span>
								</div>
								<span 
jwcid="@If" condition="ognl:isMode
(@com.sopragroup.product.core.tapestry.PageModes@MODE_DELETE)">
									<span 
key="delete-text">Are you sure you want to delete product</span> <span 
jwcid="@Insert" value="ognl:productId" /> ?
								</span>
								<span 
jwcid="@Else">
									<div 
class="formLine">
									
	<span jwcid="@If" condition="ognl:isMode
(@com.sopragroup.product.core.tapestry.PageModes@MODE_ADD)">
										
	<div class="colLabel">
										
		<span jwcid="productIdLabel">Product ID:</span>
										
	</div>
										
	<input id       ="productId"
										
	       name     ="productId"
										
	       jwcid    ="productId" 
										
	       accesskey="s"
										
	       tabindex ="1"
										
	       maxlength="10" 
										
	       size     ="10"
										
	       type     ="text"
										
	       value    =""
										
	/>
									
	</span>
									
	<span jwcid="@If" condition="ognl:isMode
(@com.sopragroup.product.core.tapestry.PageModes@MODE_UPDATE)">
										
	<div class="colLabel">
										
		<span key="productid-label">Product ID:</span>
										
	</div>
										
	<div>
										
		<span jwcid="@Insert" value="ognl:productId"/><br/>
										
	</div>
									
	</span>
									</div>
									<div 
class="formLine">
									
	<div class="colLabel">
										
	<span jwcid="productNameLabel">Name:</span>
									
	</div>
									
	<input id       ="productName"
									
	       name     ="productName"
									
	       jwcid    ="productName"
									
	       accesskey="s"
									
	       tabindex ="2"
									
	       maxlength="50" 
									
	       size     ="50"
									
	       type     ="text"
									
	       value    =""
									
	/>
									</div>
              
									<div 
class="formLine">
									
	<div class="colLabel">
										
	<span jwcid="productDescriptionLabel">Description:</span>
									
	</div>
									
	<textarea id       ="productDescription"
									
	          name     ="productDescription"
									
	          jwcid    ="productDescription"
									
	          tabindex ="3"
									
	          cols     ="60"
									
	          rows     ="3" 
									
	/>
									</div>
									<div 
class="formLine">
									
	<label class="colLabel"><span key="active-label">Active</span></label>
									
	<input type="checkbox" jwcid="active@Checkbox" selected="ognl:active" 
tabindex ="4"/>
									</div>
									<span 
jwcid="@FormValidationErrorDisplay" />
									<br />
				  	  			</span>
				  	  </fieldset>
				  	  
							<fieldset jwcid="@Any" 
title="message:fieldset2Title">
								<div 
class="formLine"><hr /></div>
								<div 
class="formLine"><span key="actions-text" 
class="emphasise">Actions:</span></div>
								<div 
class="formLine">
									<span 
jwcid="@If" condition="ognl:isMode
(@com.sopragroup.product.core.tapestry.PageModes@MODE_DELETE)">
									
	<div class="buttonText"><span key="delete-button-text">Delete the 
record and return</span></div>
									
	<input  type="submit"
									
	        class   ="buttonExtraWide"
									
	        tabindex="5"
									
	        title   ="message:delete-button-title"
									
	        value="Delete"
									
	        jwcid="deleteButton"
									
	        label="message:delete-button-label/>
									</span>
									<span 
jwcid="@Else">
									
	<div class="buttonText"><span key="save-button-text">Save the record 
and return</span></div>
									
	<input  type="submit"
									
	        class   ="buttonExtraWide"
									
	        tabindex="5"
									
	        title   ="message:save-button-title"
									
	        value="Save"
									
	        jwcid="saveButton"
									
	        label="message:save-button-label"/>
									</span>
								</div>
								<div 
class="formLine">
									<div 
class="buttonText"><span key="cancel-button-text">Cancel the record change and 
return</span></div>
									<a 
href="#" jwcid="cancelLink" tabindex="6" class="buttonExtraWide" 
title="message:cancel-link-button-title"><span key="cancel-link-button-
text">Cancel</span></a>
								</div>
							</fieldset>
						</form>
					</div>
				</div>
			</div>
			<br clear="all" />
		</div>
	</body>
</html>




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: span key - dynamic component, and may not appear inside an ignored block

Posted by Nick Westgate <ni...@key-planning.co.jp>.
This is likely to be a typo in code surrounding this block causing parse error.

Cheers,
Nick.


John Coleman wrote:
> This code:
> 
> <span jwcid="@Else">
> 	<div class="buttonText"><span key="save-button-text">Save the record 
> and return</span></div>
> 	<input  type="submit"
> 
> Produces this error: Tag <span> on line 125 is a dynamic component, and may not 
> appear inside an ignored block. Is there a simple way around this, I would 
> rather like to use <span key=""> wherever I like.
> 
> John
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org