You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/08/31 18:36:57 UTC
[jira] Closed: (TAP5-1206) @IncludeStylesheet slows down component
rendering
[ https://issues.apache.org/jira/browse/TAP5-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1206.
--------------------------------------
Resolution: Won't Fix
Again, an upgrade to 5.1 (and a swtich to the @Import annotation) will resolve your issue; you also have a workaround.
> @IncludeStylesheet slows down component rendering
> -------------------------------------------------
>
> Key: TAP5-1206
> URL: https://issues.apache.org/jira/browse/TAP5-1206
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Michael Wyraz
>
> We have a component (Button with it's own css) that is rendered multiple times into a table (in some cases >3000 times). The css is included via @IncludeStylesheet. Rendering 3000 of this buttons requires about 6-7 seconds on server side. When I change the button code to:
> @Inject
> private RenderSupport renderSupport;
>
> @Inject
> @Path("ActionButton.css")
> private Asset stylesheet;
>
> @SetupRender
> public void setup()
> {
> renderSupport.addStylesheetLink(stylesheet, null);
> }
> (instead of @IncludeStylesheet) rendering happens in less than 1 second. So I guess that the inserted code is very inefficient and should be replaced by something like the code above.
> (whish) If you touch the code, please add a media attribute to the annotation ;-)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.