Someone else want to review this? My take on this is "Invalid -- JSF doesn't let you build composite components in the constructor"
http://issues.apache.org/jira/browse/MYFACES-1364?page=comments#action_12420657 ]
> ArrayIndexOutOfBounds exception when restoring state on a custom component > --------------------------------------------------------------------------
> If I have a custom component (e.g. extends HtmlPanelGrid) and I attach to this another component (e.g. a HtmlCommandLink) in the constructor, I get an ArrayIndexOutOfBounds exception in the restore state phase. > What happens is that in the save state phase it will save one child, but in the restore state phase it will try to restore two: a new child (that gets added when the component is recreated) AND the old child. > Therefore, I cannot define a (usable) custom composite component (I can, actually, but with some nasty workarounds).
