I've just added the possibility to set the rendered attribute for the
htmlTag/div component. But, after doing this, I have a doubt of how
the rendering might affect what the component renders...
Let's illustrate this:

<x:htmlTag value="b" rendered="true">Bold text</x:htmlTag>

The tag is renderer, so the 'Bold text' is showed in bold, but what
should happen in this case?

<x:htmlTag value="b" rendered="false">Normal text</x:htmlTag>

Text should be not bold, as the <b> tags are not rendered, right?

But then, knowing that x:div is just an extension of x:htmlTag, what
should happen with:

<x:div rendered="false">Whatever here<x:div>

Like things are now, the text inside the <x:div> will be rendered, but
not the <div> tags. But this might seem counter-intuitive to me, as I
would expect that the whole div and its children should not be
rendered. So we should take a decision here. Should we expect the same
behaviour for the rendered attribute in htmlTag and in div? any ideas?

Bruno

Reply via email to