Barracuda: IterativeModel and Veto_If_Null

"Thuong Nguyen" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <19B60770BB7B984FA76B9D653AF2371EA816E3@platmail01.corp.theplatform.com>
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.