You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/10/03 14:48:08 UTC

[jira] [Resolved] (WICKET-4778) Add factory methods to JavaScriptHeaderItem to create a deferred JavaScript header item.

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

Martin Grigorov resolved WICKET-4778.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.2.0
         Assignee: Martin Grigorov
    
> Add factory methods to JavaScriptHeaderItem to create a deferred JavaScript header item.
> ----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4778
>                 URL: https://issues.apache.org/jira/browse/WICKET-4778
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Andrea Del Bene
>            Assignee: Martin Grigorov
>            Priority: Trivial
>             Fix For: 6.2.0
>
>         Attachments: WICKET-4778.patch
>
>
> JavaScriptHeaderItem provides different factory method named forReference to create a JavaScript item from a resource reference. However if we want to make this script deferred, we must use additional parameters such as id and page parameters.
> This is not much comfortable if we don't want to handle these parameters and forces us to pass null values for them.
> We could add a couple of versions of method forReference with a minimal number of parameters (see patch). 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira