You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "vincent Demay (JIRA)" <ji...@apache.org> on 2007/03/04 18:02:51 UTC

[jira] Created: (WICKET-354) Add a URIResource

Add a URIResource
-----------------

                 Key: WICKET-354
                 URL: https://issues.apache.org/jira/browse/WICKET-354
             Project: Wicket
          Issue Type: New Feature
          Components: wicket
    Affects Versions: 1.3, 2.0
            Reporter: vincent Demay


Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-354) Add a URIResource

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477853 ] 

Jean-Baptiste Quenot commented on WICKET-354:
---------------------------------------------

You could also extend WebResource to allow to set the cache headers if requested by the user.

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: vincent Demay
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-354) Add a URIResource

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Quenot resolved WICKET-354.
-----------------------------------------

    Resolution: Won't Fix

We already have UrlResourceStream in Wicket, see org.apache.wicket.util.resource.UrlResourceStream

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: Vincent Demay
>         Assigned To: Jean-Baptiste Quenot
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-354) Add a URIResource

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477854 ] 

Jean-Baptiste Quenot commented on WICKET-354:
---------------------------------------------

Dumb question: why aren't you using Image(String, String)?  Do you really need to proxy the remote image through the server?

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: vincent Demay
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-354) Add a URIResource

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477847 ] 

Jean-Baptiste Quenot commented on WICKET-354:
---------------------------------------------

A few comments:

* Seems to deal with URL, so what about naming it URLResource?
* Be careful at LogFactory.getLog(Localizer.class) wrong class name
* What about adding a constructor like URLResource(URL url)

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: vincent Demay
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-354) Add a URIResource

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Quenot resolved WICKET-354.
-----------------------------------------

    Resolution: Won't Fix
      Assignee: Jean-Baptiste Quenot

See WICKET-390, where the idea is to introduce ContextImage, a class to make it trivial to link to context relative images.

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: Vincent Demay
>         Assigned To: Jean-Baptiste Quenot
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WICKET-354) Add a URIResource

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Quenot reopened WICKET-354:
-----------------------------------------


Sorry the last comment was not relevant to this particular issue.

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: Vincent Demay
>         Assigned To: Jean-Baptiste Quenot
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-354) Add a URIResource

Posted by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478360 ] 

Jean-Baptiste Quenot commented on WICKET-354:
---------------------------------------------

I think if WICKET-359 is fixed, we don't need this one anymore.  Proxying an image through the server is a very specific usecase, and this may not work with eg HTTPS certificates that are often installed on the client rather than on the server.

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: vincent Demay
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-354) Add a URIResource

Posted by "vincent Demay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

vincent Demay updated WICKET-354:
---------------------------------

    Attachment: URIResource.java

URIResource.java

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: vincent Demay
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-354) Add a URIResource

Posted by "vincent Demay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478072 ] 

vincent Demay commented on WICKET-354:
--------------------------------------

Image(String, String) does not work properly because it generate an src  tag such package/http://.... because it used PackageResourceReference to try to find resource in the package. I Add an other bug about that : WICKET-359

> Add a URIResource
> -----------------
>
>                 Key: WICKET-354
>                 URL: https://issues.apache.org/jira/browse/WICKET-354
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: vincent Demay
>         Attachments: URIResource.java
>
>
> Add an URIResource too resolve distant resources such as http for exemple. It can be used in image constructor for exemple when url is knew on server side (comes from the model or whatever)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.