tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-938) Expose ability to render a portion of a page (a Block, Component, etc.) without using internal services
Date Fri, 10 Jan 2014 10:54:55 GMT

    [ https://issues.apache.org/jira/browse/TAP5-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867696#comment-13867696
] 

Thiago H. de Paula Figueiredo commented on TAP5-938:
----------------------------------------------------

Hi, Lance!

The Javadoc of the new methods explicitly say that importing and inclusing of CSS and JS will
be ignored. Otherwise, it's something beyond the scope of this issue IMHO, as the return type
of the methods couldn't be String or Document because they would need to have the markup plus
imported CSS and JavaScript files plus JavaScript snippets generated by JavaScriptSupport.addScript()
(which is deprecated already) or JavaScriptSupport.require(). Of course, in another issue,
we can add methods to PartialTemplateRenderer that deal with that.

I haven't tested yet, but I can't see why @Environmental wouldn't work. It's backed by Environment,
a per-thread-service.

> Expose ability to render a portion of a page (a Block, Component, etc.) without using
internal services
> -------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-938
>                 URL: https://issues.apache.org/jira/browse/TAP5-938
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.2
>            Reporter: Howard M. Lewis Ship
>            Assignee: Thiago H. de Paula Figueiredo
>            Priority: Minor
>              Labels: month-of-tapestry
>             Fix For: 5.4
>
>
> Currently you have to create an instance of PageRenderQueyeImpl and obtain an appropriate
MarkupWriter.  This could be combined into a facade service to do all the necessary work.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message