Hi! I'm tring to render component body, inside another component. There is a part of HTML code that replies in few components on my web so I've put it in separate component "BaseComponentRender". The problem is that I don't see HTML code generated by BaseComponentRender component...
BoxPassport.jwc: ------------------------- <component-specification class="com.my.myApp.components.edit.BoxPassport" allow-body="yes"> <component id="BaseComponentRender" type="Insert"/> </component-specification> ------------------------- BoxPassport.class: ------------------------- public abstract class BoxPassport extends AbstractComponent implements IComponent { private IComponent baseComponent; protected void finishLoad() { baseComponent = getComponent("BaseComponentRender"); baseComponent.addBody(baseComponent); } protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { writer.begin("table"); writer.attribute("border", 1); renderInformalParameters(writer, cycle); writer.begin("tr"); writer.begin("td"); baseComponent.render(writer, cycle); addBody(baseComponent); renderBody(writer, cycle); writer.end(); writer.end(); writer.end(); } } ------------------------- BaseComponentRender.jwc: ------------------------- <component-specification class="com.tpsa.ADLog.components.edit.BaseComponentRender" allow-body="yes"> </component-specification> ------------------------- BaseComponentRender.class: ------------------------- public abstract class BaseComponentRender extends AbstractComponent implements IComponent { protected String id; public void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { this.id = "idBoxPassport"; writer.begin("div"); writer.attribute("style", "position: relative; z-index: 1; display: block; float: left"); writer.attribute("id", this.id); renderBody(writer, cycle); writer.end(); } } ---------------------------------- Can You help me? I'm out of idea... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]