Barracuda: setVisible
Kirk Daries <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <D09B591872D1D611AF2B0010B5A1AAD0263205@WCSMAIL> |
Hi,
I've noticed some strange behaviour... or at least... what I assume to be
strange with the BComponent setVisible method.
Here's a extract from my html.
<table class="Dir::Get_Data.BrowsePage.p_mastertable">
<tr>
<td class="Dir::Iterate_Start.MasterBrowseHeading
Dir::Iterate_Next.MasterBrowseHeading Dir::Discard">[DISCARD]</td>
......
#Other Directives follow here.
</tr>
</table>
Pretty Simple.
I'd like to hide or display a table. Notice the 'p_mastertable' key on the
table node.
My understanding is that 'setVisible(false)' will hide the table.
And I think it does in fact do this.
To the extent that the table isn't rendered.
The 'problem' I have however.. is that the 'child nodes'... in this case
from the model 'MasterBrowseHeading' is still being processed.
Is this normal?
I solved this by 'returning null' in my BTemplate instead of a BComponent
with 'setVisible(false)'.
Hmmmm....?
Regards
KD