Add two utility methods, one that includes a view into the response right away, while another captures the output to a String. One step further and we may give it a prefabricated (newly instantiated/fake) request/response (if possible) #149

Closed
AnghelLeonard opened this Issue Jul 15, 2015 · 4 comments

Projects

None yet

2 participants

@AnghelLeonard

No description provided.

@BalusC
Member
BalusC commented Aug 30, 2015

Not sure if I understand the first part. There's Components#includeFacelet() which allows programmatic inclusion of a Facelet. Can you please clarify?

Second part is sound.

@BalusC
Member
BalusC commented Aug 31, 2015

Hm, I initially understood/guessed something like

UIViewRoot view = Components.build("emailtemplate.xhtml");
String html = Components.encode(view);

Which I think is indeed useful.
The servlet example in the idea as mailed to me doesn't look terribly useful.

@AnghelLeonard

"The servlet example in the idea doesn't look terribly useful."
Bad ideas must go to trash! So, just ignore it.

 On Monday, August 31, 2015 10:11 PM, Bauke Scholtz <notifications@github.com> wrote:

Hm, I initially understood/guessed something like UIViewRoot view = Components.build("emailtemplate.xhtml");
String html = Components.encode(view);
Which I think is indeed useful.
The servlet example in the idea doesn't look terribly useful.—
Reply to this email directly or view it on GitHub.

@BalusC BalusC added a commit that closed this issue Sep 23, 2015
@BalusC BalusC Fix #149: Added Components#buildView() and #encodeHtml()
Refactored RestorableViewHandler to utilize Components#buildView()
bab0e50
@BalusC BalusC closed this in bab0e50 Sep 23, 2015
@BalusC
Member
BalusC commented Sep 23, 2015

New feature is available in today's latest snapshot.

@BalusC BalusC added the question label Oct 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment