You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa Gomez" <da...@xsall.nl> on 2003/12/06 17:35:36 UTC

dynamic component, may not appear inside an ignored block?

Following is an error I get based on the two snippets of code shown below.

Could not parse template 
classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html.
location: 
classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html, line 22
 
org.apache.tapestry.parse.TemplateParseException
Tag <span> on line 22 is a dynamic component, and may not appear inside 
an ignored block.
location: 
classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html, line 22


.html:
                <colgroup jwcid="nrOfCols">
*error*=>  <span jwcid="colDefinitions">
                    <col jwcid="columnClassName" />
                  </span>
                </colgroup>

.java
  public int getNrOfCols() {
    return _columnDescriptions.size();
  }

.jwc
  <component id="colDefinitions" type="Foreach">
    <binding name="source" expression="headerColumns"></binding>
    <binding name="value" expression="headerColumn"></binding>
  </component>
 
  <component id="columnClassName" type="Insert">
    <binding name="class" 
expression="getColumnClassName(components.colDefinitions.value)" />
  </component>
 
I guess its normal but I haven't seen this one before and just don't 
know where to look.
Tried to switch lines as well, work with span(s)  but it just does not 
go away (yet).

Any pointer(s) would be appreciated.

TIA
Fermin DCG


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


Re: dynamic component, may not appear inside an ignored block?

Posted by "F. Da Costa Gomez" <da...@xsall.nl>.
Geoff Longman wrote:

>check the "allow-body" attribute of the outer component. If its false,
>Tapestry ignores the markup it wraps.
>  
>
Thx, resolved it and I guess it indeed had to do with the allow-body 
attribute (maybe its a good thing to step away from the old machine for 
one or to days a week).

Fermin

>Geoff
>----- Original Message -----
>From: "F. Da Costa Gomez" <da...@xsall.nl>
>To: "Tapestry users" <ta...@jakarta.apache.org>
>Sent: Saturday, December 06, 2003 11:35 AM
>Subject: dynamic component, may not appear inside an ignored block?
>
>
>  
>
>>Following is an error I get based on the two snippets of code shown below.
>>
>>Could not parse template
>>classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html.
>>location:
>>classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html, line 22
>>
>>org.apache.tapestry.parse.TemplateParseException
>>Tag <span> on line 22 is a dynamic component, and may not appear inside
>>an ignored block.
>>location:
>>classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html, line 22
>>
>>
>>.html:
>>                <colgroup jwcid="nrOfCols">
>>*error*=>  <span jwcid="colDefinitions">
>>                    <col jwcid="columnClassName" />
>>                  </span>
>>                </colgroup>
>>
>>.java
>>  public int getNrOfCols() {
>>    return _columnDescriptions.size();
>>  }
>>
>>.jwc
>>  <component id="colDefinitions" type="Foreach">
>>    <binding name="source" expression="headerColumns"></binding>
>>    <binding name="value" expression="headerColumn"></binding>
>>  </component>
>>
>>  <component id="columnClassName" type="Insert">
>>    <binding name="class"
>>expression="getColumnClassName(components.colDefinitions.value)" />
>>  </component>
>>
>>I guess its normal but I haven't seen this one before and just don't
>>know where to look.
>>Tried to switch lines as well, work with span(s)  but it just does not
>>go away (yet).
>>
>>Any pointer(s) would be appreciated.
>>
>>TIA
>>Fermin DCG
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
>__________ NOD32 1.574 (20031206) Information __________
>
>This message was checked by NOD32 Antivirus System.
>http://www.nod32.com
>
>
>
>  
>


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


Re: dynamic component, may not appear inside an ignored block?

Posted by Geoff Longman <gl...@intelligentworks.com>.
check the "allow-body" attribute of the outer component. If its false,
Tapestry ignores the markup it wraps.

Geoff
----- Original Message -----
From: "F. Da Costa Gomez" <da...@xsall.nl>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Saturday, December 06, 2003 11:35 AM
Subject: dynamic component, may not appear inside an ignored block?


> Following is an error I get based on the two snippets of code shown below.
>
> Could not parse template
> classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html.
> location:
> classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html, line 22
>
> org.apache.tapestry.parse.TemplateParseException
> Tag <span> on line 22 is a dynamic component, and may not appear inside
> an ignored block.
> location:
> classpath:/org/dcg/tests/treetable/TreeTableTestFlexible.html, line 22
>
>
> .html:
>                 <colgroup jwcid="nrOfCols">
> *error*=>  <span jwcid="colDefinitions">
>                     <col jwcid="columnClassName" />
>                   </span>
>                 </colgroup>
>
> .java
>   public int getNrOfCols() {
>     return _columnDescriptions.size();
>   }
>
> .jwc
>   <component id="colDefinitions" type="Foreach">
>     <binding name="source" expression="headerColumns"></binding>
>     <binding name="value" expression="headerColumn"></binding>
>   </component>
>
>   <component id="columnClassName" type="Insert">
>     <binding name="class"
> expression="getColumnClassName(components.colDefinitions.value)" />
>   </component>
>
> I guess its normal but I haven't seen this one before and just don't
> know where to look.
> Tried to switch lines as well, work with span(s)  but it just does not
> go away (yet).
>
> Any pointer(s) would be appreciated.
>
> TIA
> Fermin DCG
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


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