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]