RE: Barracuda: IterativeModel and Veto_If_Null

"Thuong Nguyen" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <19B60770BB7B984FA76B9D653AF2371EA816E7@platmail01.corp.theplatform.com>
Sorry, the last <li> tag should have the Iterative_End directive, not
Iterative_Next.  This is simplified version code of my template.
 
hm ... if your recollection is correct, then there must be something
wrong with my model.  From debugging my code, I noticed that the
Veto_If_Null.MyModel.showTotal was being processed even when the list to
iterate over has size equals to zero.  I'll double check.
 
thanks!
-tn
 
 

	-----Original Message-----
	From: Christian Cryder [mailto:[email protected]] 
	Sent: Thursday, January 02, 2003 10:18 PM
	To: [email protected]
	Subject: RE: Barracuda: IterativeModel and Veto_If_Null
	
	
	Hi Thuong,
	 
	From myu recollection, I don't think Veto_If_Null should be
getting processed if the first Iterate_Next doesn't come back as having
values. What should happen is that it should jumpt to the Iterate_End
and continue processing from there. But I don't see that end directive
in your markup...is it there somewhere?
	 
	Christian
	 
	 

		-----Original Message-----
		From: [email protected]
[mailto:[email protected]]On Behalf Of Thuong Nguyen
		Sent: Thursday, January 02, 2003 5:24 PM
		To: [email protected]
		Subject: Barracuda: IterativeModel and Veto_If_Null
		
		
		Q. if I have an iterative model that is not rendering
any items (i.e. iterating over an empty list), would every directives
within the "boundary" of the iterative_start and iterative_end be
skipped?
		 
		for example:
		 
		<ul>
		    <li class="Dir::Iterative_Start.MyModel
Dir::Iterative_Next.MyModel">
		        <span
class="Dir::Get_Data.MyModel.SomeData">..</span>
		    </li>
		    <li
class="Dir::Veto_If_Null.MyModel.showTotal">Total</li>
		    <li class="Dir::Iterative_Next.MyModel
Dir::Discrd">...</li>
		</ul>
		 
		would the "Veto_If_Null" directive gets executed even if
the iteration never takes place (because of zero-sized list)?  From what
i'm seeing, it seems like it does.  I just don't know if this is
expected or bugs in my code.
		 
		 
		thanks!
		-tn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.