Hello Groovie,
a column should only contain one child.
Please try it with a surrounding panel.
<tc:column id="..." align="top">
<tc:panel>
<f:facet name="layout">
<tc:gridLayout rows="*;*"/>
</f:facet>
<tc:panel width="400px" rendered="#{itm.type == 'View1'}">
<f:facet name="layout">
<tc:gridLayout columns="50%;50%"/>
</f:facet>
<tc:.... />
<tc:.... />
</tc:panel>
<tc:panel rendered="#{itm.type == 'View2'}">
</tc:panel>
</tc:panel>
</tc:column>
The sheet issued a warning about "More or less than 1 child in column! "
I think we should extend this warning in the case of more than one child
in column.
See https://issues.apache.org/jira/browse/TOBAGO-728
Regards
Bernd
Groovie schrieb:
> Hy there,
>
> the workaround for this issue is to assign a
> with-value to the column or the first
> panel element.
>
>
> <tc:sheet .... columns="25px;1*" >
>
> <tc:column id="..." align="top">
> <tc:selectBooleanCheckbox id="..." value=".." />
> </tc:column>
>
> <tc:column id="..." align="top">
> <tc:panel width="400px" rendered="#{itm.type == 'View1'}">
> <f:facet name="layout">
> <tc:gridLayout columns="50%;50%"/>
> </f:facet>
>
> <tc:.... />
>
> <tc:.... />
> </tc:panel>
>
> It looks like, that the tc:column does not have any useful
> information concerning its dimension. Maybe its is also
> a kind of sequence problem. Perhaps, the <tc:sheet> is
> not completly rendered, when the panel starts asking
> the column tag, how fat he is ;-)
>
> Maybe a Tobago Developer has an explanation for this ?!?!
>
>
> Groovie
>
>
>