[ 
https://issues.apache.org/jira/browse/TAP5-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Wyraz updated TAP5-1206:
--------------------------------

    Affects Version/s: 5.1.0.5

> @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.

Reply via email to