Re: Re: Bug in BTable

"Diez B. Roggisch" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi,
>How complex have you all pushed the component model?  I noticed an emailfrom 

Pretty complex - I can't give you an example out of my head, but so far I 
didn't encounter anything that caused major problems. 

> So far I have been able to manually bind any template model to a view and
> it works great, __but__ if I try to return any BTemplate from a
> TemplateModel it blows chunks.  I have seen tidbits of emails on "Nested
> Directives."  Can anyone point me to any examples/pointers?  It seems that
> you cannot return a BTemplate from a TemplateModel.

You're right, you can't. But usually you don't need to do it - why don't you 
add the models you want to have rendered to the top-level BTemplate? That 
works. 

And then there are "nested" or parent/child iterative models. 
The basic idea is that for every level of your tree of data you need one 
iterative model. The upper levels communicate with the lower ones, telling 
them t adjust their list of child nodes whenever they make an iteratin step 
themselves. 

Look into the mail-archives, you should find plenty of information about that.


Regards,

Diez
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.