Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems rendering custom component  RSS feed

Henrique Sousa
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm building a custom component (my very first), but I seem to have some problem with it. There is a parent component and nested children. The parent seems fine, it is supposed to output some HTML for itself in encodeBegin(). Then it should render code for its children in encodeEnd(). The children encodeBegin() and encodeEnd() methods are called, but no HTML is rendered for them. Here is what the code looks like (just the UIComponents):

I've not qutoed the implementation of other methods, I am guessing they are not relevant. Now, all these are called but only the parent code is rendered correctly. Since I am a newbie at custom components, I am sure to be doing something very wrong; I just don't know what. Any hints?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!