Skip to content
Discussion options

You must be logged in to vote

There you go.. If you visit /test , you get the error.

TestRequestScopeQute.zip

Incidentally. in TestResource, I am doing the below. So, the render() method must block until the page is fully rendered, and so the Requestcontext must still exist at this point.

    @GET
@Produces(MediaType.TEXT_HTML)
public Response get() {
	TemplateInstance testpagein = testpage.instance();
	String responseHTML = testpagein.render();
	

	return Response.ok(responseHTML).build();
}

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
8 replies
@mkouba
Comment options

mkouba Apr 5, 2023
Collaborator

@TonyWeston
Comment options

@TonyWeston
Comment options

@mkouba
Comment options

mkouba Apr 5, 2023
Collaborator

@mkouba
Comment options

mkouba Apr 5, 2023
Collaborator

Comment options

You must be logged in to vote
7 replies
@mkouba
Comment options

mkouba Apr 5, 2023
Collaborator

@mkouba
Comment options

mkouba Apr 5, 2023
Collaborator

@manovotn
Comment options

manovotn Apr 5, 2023
Collaborator

@TonyWeston
Comment options

@manovotn
Comment options

manovotn Apr 5, 2023
Collaborator

Answer selected by TonyWeston
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/qute The template engine
3 participants