You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "SoulSpirit (JIRA)" <ji...@apache.org> on 2009/03/02 15:21:56 UTC

[jira] Created: (WICKET-2135) PackagedTextTemplate uses default ResourceStreamLocator first

PackagedTextTemplate uses default ResourceStreamLocator first
-------------------------------------------------------------

                 Key: WICKET-2135
                 URL: https://issues.apache.org/jira/browse/WICKET-2135
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-RC2
            Reporter: SoulSpirit
            Priority: Trivial


PackagedTextTemplate:155

When loading a resource, ResourceStreamLocator should give priority to the application specific locator first, and not using it as a fallback solution if the default ResourceStreamLocator fails to find the resource.

Imagine an environment where a custom resource locator has been set up to get all the resources from the project source folder (very useful during development to modify markups, css' and js' on the fly through the IDE).
With the current behavior I have to modify the deployed-version of my resource to make wicket apply the changes on the fly.

Here's my usual Application.init() method:

if( Application.DEVELOPMENT.equals( getConfigurationType() ) ){
  getResourceSettings().setResourceStreamLocator(
    new ResourceStreamLocator(
      new Path(
        new Folder(
          getServletContext().getRealPath( "/" ).replaceFirst( "web/", "src/" )
        )
      )
    )
  )
}

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


[jira] Resolved: (WICKET-2135) PackagedTextTemplate uses default ResourceStreamLocator first

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

Juergen Donnerstag resolved WICKET-2135.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-RC3
         Assignee: Juergen Donnerstag

Thanks

> PackagedTextTemplate uses default ResourceStreamLocator first
> -------------------------------------------------------------
>
>                 Key: WICKET-2135
>                 URL: https://issues.apache.org/jira/browse/WICKET-2135
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2
>            Reporter: SoulSpirit
>            Assignee: Juergen Donnerstag
>            Priority: Trivial
>             Fix For: 1.4-RC3
>
>
> PackagedTextTemplate:155
> When loading a resource, ResourceStreamLocator should give priority to the application specific locator first, and not using it as a fallback solution if the default ResourceStreamLocator fails to find the resource.
> Imagine an environment where a custom resource locator has been set up to get all the resources from the project source folder (very useful during development to modify markups, css' and js' on the fly through the IDE).
> With the current behavior I have to modify the deployed-version of my resource to make wicket apply the changes on the fly.
> Here's my usual Application.init() method:
> if( Application.DEVELOPMENT.equals( getConfigurationType() ) ){
>   getResourceSettings().setResourceStreamLocator(
>     new ResourceStreamLocator(
>       new Path(
>         new Folder(
>           getServletContext().getRealPath( "/" ).replaceFirst( "web/", "src/" )
>         )
>       )
>     )
>   )
> }

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