Jason,

thanks for your fast reply!


>Just as a quick answer: it can be done. :-) Unfortunately, I can't list my
>code, but I've attached a screenshot showing my TreeList implementation.

Quite impressive!


>Yes, you are correct in that your *component* hierarchies are statically
>defined in the spec.

Hm, that means that Tapestry is in no way as flexible as e.g. AWT/Swing 
where I can modify a Container on the fly as I which. I could e.g. add 
Components (including Containers) to it, remove them, reorder them etc. 
What is it that makes Tapestry so limited? The static component description 
files?

I'd also like to have Tapestry an equivalent of a LayoutManager. In 
AWT/Swing I can attach a LayoutManager to a Container which controls 
the layout of the components. In Tapestry I am limited to a static layout.


>However, there are several features of Tapestry
>(namely the Foreach, Block, and InsertBlock components) that allow you to
>dynamically insert code into your page. The key is to define the hierarchy
>in a Java model object, then create the proper components to render it.
>Breaking it down, each element of a hierarchy is simply a 1-many
>relationship, which can be easily modelled with a Foreach.

I think I understand how you did it. The problem is that you don't 
have a 1:1 mapping between model and view, like in Swing (again). 
The latter offers you e.g. a JTree component class to *view* a tree 
and a TreeModel interface for the *model*. In Tapestry I have to 
fiddle around quite a lot instead.

If I am wrong (and I'd love to be wrong), please correct me! My 
insight into Tapestry is still quite limited.


>I'm particularly busy now, but feel free to e-mail me if you'd like some
>more details, and I'll get back to you as soon as I can.

I am grateful that you spent some time on my question at all.


Best regards
Rainer Klute

                           Rainer Klute IT-Consulting GmbH
  Dipl.-Inform.
  Rainer Klute             E-Mail:  [EMAIL PROTECTED]
  K�rner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to