Not sure, but have you tried calling render on the component after you
get it instead of just adding it?

Never tried it, just my first thought.

On 3/24/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a component extending AbstractComponent which has
> a (optional) boolean parameter: If the parameter has been
> set another BaseComponent shall be included at some place
> in the first component's output.
>
> The question is: How can I include another component based
> on this condition in Java?
>
> writer.begin("table");
> writer.begin("tr");
> ...
> writer.end();
>
> if (getShowStatus())
>        addComponent(cycle.getPage("ShowRecordStatus")); <-- this adds another 
> row to the table
>
> writer.begin("tr");
> ...
> writer.end();
>
> doesn't work :(
>
> ShowRecordStatus is a component itself (extending BaseComponent) and actually
> just inserting the html code from it's template.
>
> Thanks!
>  Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to