handling multiple component presentations in Dreamweaver Template Building block in SDL Tridion 2011

I am working on Dreamweaver TBB in SDL Tridion  SP1. In the TBB I am using the data from different component presentations.

            My Template Building Block looks like this.
			

Main Component:
			 
			        <div>@@Component.Schema.Title@@</div>	
					<!-- TemplateBeginRepeat name="Fields.link" -->
					
						@@RenderComponentPresentation(Field, "tcm:1-8142-32")@@
					
			         <!-- TemplateEndRepeat -->
					 

Component Template: tcm:1-8142-32
			  
Its DWT TBB looks like this.
				       
					     <!-- TemplateBeginIf cond="Component.Fields.text" --> 
							<div>@@RenderComponentField("text",0)@@</div>
						<!-- TemplateEndIf -->
			
When I previed the Component I got the output and all component presentations executed as expected.

Output: 
     
               SchemaName
				data1
				data2
   
   
   
Then I created the Page with the page TBB.

            <html>
				<head>
				</head>
					<body>
					<!-- TemplateBeginRepeat name="Components" -->
											@@RenderComponentPresentation(Component.ID, ComponentTemplate.ID)@@
					 <!-- TemplateEndRepeat -->
					</body>
			</html>
			
			
The outut is not as expected. The Component Template "tcm:1-8142-32" is not executed. 

output:

           SchemaName


I came to know that we need add "isQueryBased", property must be set to true. 

If yes, Can any one help the command to set it true.

I don't know where the problem lies. 

Can any one help me out to modify the code.

Thank you.

handling multiple component presentations in Dreamweaver Template Building block in SDL Tridion 2011
===


I am working on Dreamweaver TBB in SDL Tridion  SP1. In the TBB I am using the data from different component presentations.

            My Template Building Block looks like this.
			

Main Component:
			 
			        <div>@@Component.Schema.Title@@</div>	
					<!-- TemplateBeginRepeat name="Fields.link" -->
					
						@@RenderComponentPresentation(Field, "tcm:1-8142-32")@@
					
			         <!-- TemplateEndRepeat -->
					 

Component Template: tcm:1-8142-32
			  
Its DWT TBB looks like this.
				       
					     <!-- TemplateBeginIf cond="Component.Fields.text" --> 
							<div>@@RenderComponentField("text",0)@@</div>
						<!-- TemplateEndIf -->
			
When I previed the Component I got the output and all component presentations executed as expected.

Output: 
     
               SchemaName
				data1
				data2
   
   
   
Then I created the Page with the page TBB.

            <html>
				<head>
				</head>
					<body>
					<!-- TemplateBeginRepeat name="Components" -->
											@@RenderComponentPresentation(Component.ID, ComponentTemplate.ID)@@
					 <!-- TemplateEndRepeat -->
					</body>
			</html>
			
			
The outut is not as expected. The Component Template "tcm:1-8142-32" is not executed. 

output:

           SchemaName


I came to know that we need add "isQueryBased", property must be set to true. 

If yes, Can any one help the command to set it true.

I don't know where the problem lies. 

Can any one help me out to modify the code.

Thank you.
