Ok... This has probably been dealt with, but I can't find an answer or must be searching the wrong thing...
I need a component to be dynamically selected at runtime rather than being static in the template and using an <t:if> (or delegate and blocks, etc) to show it. Any pointers to be able to do this? The functionality i am trying to get: I have a page which lists a whole bunch of rows of data. When the user clicks a row I want a section to open underneath which displays an editor for that row. Now the editor displayed will be dependent on the type of data in that row (each editor will have a different class and template, I can make all the "editors" inherit from a base class if needed). My ideal lookup mechanism for what editor would be to load it using the class name which matches data in the row so I can simply add new editors by just adding a new class. Now I've thought about doing this with the block and delegate method, but then I need to edit a master template every time I add a class. Other thoughts were using an iframe and loading it as a page rather than embedding a component, but I like the component idea better coz it gives me more flexibility. Ok Thanks everyone! -- View this message in context: http://www.nabble.com/Dynamically-selecting-a-component-to-render-output-tp24912684p24912684.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org