Looking at CDK AbstractComponent, or RendererBase or template.xml, I find lot of code copy/paste again and again. Maybe it could be usefull to have some common methods automatically generated by the CDK. I have some ideas right now, but I guess it will increase with time.
Sometime, I call the method in the "component" var inside the template. Maybe it would not be possible since we can only add methods to the "AbstractComponent". I'm fine with having them there and casting the component at the beginning of the template using <cdk:object>.
Can become :
Same as before but about JSF facets
This one is present in like 9 out of 10 AbstractComponent in the Bootstrap sandbox. I don't know how RF-11668 will be resolved. But if we still need to cast the component, having the method in every component by default would be really nice.
If you have an attribute like :
This will generate a "isClosable()" method of course. But, then, trying to access it in a template like :
Will crash since JSF try to call the "getClosable()" method. The workaround is to write :
But it would be nicer if the "geClosable()" method was generated in the same time of the "isClosable()" method.