You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hugo Palma (JIRA)" <ji...@apache.org> on 2011/04/28 14:27:03 UTC

[jira] [Created] (TAP5-1515) Support for external assets

Support for external assets
---------------------------

                 Key: TAP5-1515
                 URL: https://issues.apache.org/jira/browse/TAP5-1515
             Project: Tapestry 5
          Issue Type: New Feature
          Components: tapestry-core
            Reporter: Hugo Palma


It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.

One resolution suggestion would be to introduce an "uri" prefix, something like:

@Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Toby (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044819#comment-13044819 ] 

Toby commented on TAP5-1515:
----------------------------

The solution should also take care of files delivered by Tapestry.

Example:

Origin Server URL is: www-origin.example.com/js/somefile.js
End-User URL is: www.example.com/js/somefile.js

So Tapestry needs to change the Server URL of the resource, the path needs to stay the same.

The CDN takes care of fetching and delivering the file.

In the case of "fixed" resources such as jquery hosted by Google, the same mechanism/annotation should be used.

The example above should be a simple use-case.

Simple Case:

@Import(cdn = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

Own CDN Case:

@Import(cdn = { "domain:http://cdn.domain.com/" })


> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Chris Mylonas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260696#comment-13260696 ] 

Chris Mylonas commented on TAP5-1515:
-------------------------------------

The topic came up in the list today.

Pretty much it says to override AssetPathConverter.  http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/AssetPathConverter.html

"...This is the hook needed to make use of a Content Delivery Network..."
                
> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Boris Horvat (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253983#comment-13253983 ] 

Boris Horvat commented on TAP5-1515:
------------------------------------

Any ideas about including some sort of file system asset factory for this as well? I am surprise that this is not already part of tapestry since it seems to me that this is quite useful and important feature

                
> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Toby (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044819#comment-13044819 ] 

Toby commented on TAP5-1515:
----------------------------

The solution should also take care of files delivered by Tapestry.

Example:

Origin Server URL is: www-origin.example.com/js/somefile.js
End-User URL is: www.example.com/js/somefile.js

So Tapestry needs to change the Server URL of the resource, the path needs to stay the same.

The CDN takes care of fetching and delivering the file.

In the case of "fixed" resources such as jquery hosted by Google, the same mechanism/annotation should be used.

The example above should be a simple use-case.

Simple Case:

@Import(cdn = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

Own CDN Case:

@Import(cdn = { "domain:http://cdn.domain.com/" })


> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Boris Horvat (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253983#comment-13253983 ] 

Boris Horvat commented on TAP5-1515:
------------------------------------

Any ideas about including some sort of file system asset factory for this as well? I am surprise that this is not already part of tapestry since it seems to me that this is quite useful and important feature

                
> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Dragan Sahpaski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045585#comment-13045585 ] 

Dragan Sahpaski commented on TAP5-1515:
---------------------------------------

This would be a great enhancement. Think of its value while wanting to try a script and just doing it on the fly, without thinking where to put it etc.

> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Dragan Sahpaski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045585#comment-13045585 ] 

Dragan Sahpaski commented on TAP5-1515:
---------------------------------------

This would be a great enhancement. Think of its value while wanting to try a script and just doing it on the fly, without thinking where to put it etc.

> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TAP5-1515) Support for external assets

Posted by "Chris Mylonas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260696#comment-13260696 ] 

Chris Mylonas commented on TAP5-1515:
-------------------------------------

The topic came up in the list today.

Pretty much it says to override AssetPathConverter.  http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/AssetPathConverter.html

"...This is the hook needed to make use of a Content Delivery Network..."
                
> Support for external assets
> ---------------------------
>
>                 Key: TAP5-1515
>                 URL: https://issues.apache.org/jira/browse/TAP5-1515
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>            Reporter: Hugo Palma
>
> It would be great if an external asset (url based) could be referenced from Tapestry. For example, i may want to include a CDN asset in an Import annotation in a component.
> One resolution suggestion would be to introduce an "uri" prefix, something like:
> @Import(library = { "uri:https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" })

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira