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

ResponseWriter Question  RSS feed

 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write a UIComponent. I am extending the UIComponentBase class and want to add some HTML content to the ResponseWriter to write out. The problem is I will not know before hand what the content is and will therefore need to ask it.

For example, a method in some class Foo, foo.getHTMLContent();

I want to be able to do,
repsonseWriter.write(foo.getHTMLContent());

Is there anyway this can easily be accomplished, I see that there are ways to do a startElement(), is there an easy way to directly inject the code?

Thanks
 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I found this with responseWriter.write(text).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!