So, the #{component.attributes} provides information about the "page" tag and not about the "text" tag. The original problem I was describing is that when the value attribute is not specified then the variable containing "BAD" value is displayed inside the "text" tag.
It works better with the new composite components and I think I was able to achieve everything I wanted for now. Are there required attributes supposed to work? I don't see any exception if I don't provide a required composite attribute.
It will be good if there is better control over the formatting of the generated code.
Thanks!
[Message sent by forum member 'rostislav' (rostislav)]