I need to make a list of complex items. Each item contains 2 (two) PropertySelections (Master-detail) and some Input fields.
First time I think to make a component for item and reuse it in For cycle. But I did not find a way to specify a List of components - only direct one. Now I have only one idea how to assemble together List of components on one page - implicit component declaration like but I have to transmit to each item component hudge data set: Item, selected Master value, list of detail objects to show in detail PropertySelection (later PS). Also I have to make detection is Master PS value changed to change list of detail objects OUTSIDE the component - in a place where I have information of outer data. All this looks like a NON-object approach to me: elementary incapsulation is broken because we use ItemComponent as a stateless object Can you give me a clue in DESIGN and implementation of such task cause I really like TS for property binding, but now for a simple problem I should begin a great investigation... It should be iniuitive... Even for JSP it's easy to understand how to do my task quickly... Let me repeat: problem is to find a good OO-solution when a component : 1. transmit to outer component only information they should receive, NOT inner state info 2. Inner logic like master-detail operation and selection handling is processed INSIDE a component code. So, outer code that use a component will see only a correct result of component work. PLEASE help, I need a reliable and supportable solution soon and existance of a good solution is a matter of usage of TS in a great project. I really like TS and want to use it, but using NON-OO aproach is a suiside. :) -------------------- m2f -------------------- Sent from www.TapestryForums.com Read this topic online here: <<topic_link>> http://www.tapestryforums.com/viewtopic.php?p=11112#11112 -------------------- m2f --------------------
