On 25. Mär 2006 - 15:12:01, [EMAIL PROTECTED] wrote: | BaseComponents can have html templates. | But you can also override their | renderComponent(IMarkupWriter writer, IRequestCycle cycle) and: | - output your own stuff in writer, | - call super.renderComponent(IMarkupWriter writer, IRequestCycle cycle) to have | the html template rendered | - output some more of your stuff.
OK, but is it possible to define where in the template the output is printed? | Now, i'm not sure i understand your last question, but an AbstractComponent | can render the html+components it encloses using | getContainer().renderBody(writer, cycle); Well, I will try to explain again in this case - no problem ;) I have one component ShowPanel (derived from AbstractComponent) which just outputs some kind of "box" around other components. I use it for forms but also for information panels which hold information about records etc. It has to extend AbstractComponent because it uses some parameters (width, color, ...) to calculate dimensions, create css classes, etc. for it's output. As one of these information panels I want an "AdminPanel" which displays information about the current database record displayed on the page. As this information can contain a date for example I needed some way to localize the raw data from the database before it gets outputted on the page. My idea was to implement something similar to the contribTable component where nested Block components can be used to format columns (values in my case). This is why also AdminPanel needs to extend AbstractComponent (at least I think so). The "nested-Block-thing" works, but: The "AdminPanel" also shall be wrapped in a "ShowPanel" component described above to achieve the same look-and-feel and that's the problem: How can I let the AdminPanel wrap itself in a "ShowPanel" component? That means: The html output to be included in the ShowPanel's body is created in the AdminPanel component and this same component has to wrap itself with a ShowPanel box. If this is weird or insane I'm looking forward to your proposols but I don't see how to make things easier here... Sincerly, Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
