Thanks,
I did not
explicitely generalize my question. In my case, I have an even number for the
@columns attribute, and using an odd number of children in this context will
result in the warning.
Furthermore, to prevent the warning, the number of children has
to be a multiple of the @colums attribute (number of children % @columns =
0), regardsless of having an even or an odd number for the @columns
attribute.
Regards,
Matthias
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Craig McClanahan
Gesendet: Freitag, 3. Februar 2006 01:50
An: MyFaces Discussion
Betreff: Re: Using HtmlPanelGrid with an odd amount of children?
On 2/2/06, Matthias Kahlau <[EMAIL PROTECTED]> wrote:Hi!
Is it legal to use HtmlPanelGrid with an odd amount of children?
By "odd amount of children" I presume you mean a number of children that is not evenly divisible by the value you set for the "columns" property?
Yah, MyFaces whines about this (with a warning in the log file :-) where the RI does not, but at least it doesn't blow up. My personal preference would be that there be a way to turn off the warning, but I can see the reasoning for having one to catch inadvertent mistakes.
Craig

