You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "bernard (Created) (JIRA)" <ji...@apache.org> on 2011/11/19 06:14:51 UTC
[jira] [Created] (WICKET-4242) Detect new Markup Files in
Development Mode
Detect new Markup Files in Development Mode
-------------------------------------------
Key: WICKET-4242
URL: https://issues.apache.org/jira/browse/WICKET-4242
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.5.3
Reporter: bernard
An extension of http://www.wicketframework.org/faqs.html#how-reload-changed-markup-files
Let Wicket detect new markup files not only modifications to existing ones.
This is useful if a developer fails to add a markup file. That causes an exception. Currently the application has to be re-deployed to fix this condition.
--
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] [Resolved] (WICKET-4242) Detect new Markup Files in
Development Mode
Posted by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4242.
-------------------------------------
Resolution: Won't Fix
This feature will make the application too slow for no big gain.
By not caching the "miss" Wicket will try to locate all combinations of locale/style/variation for the missing resource and this is slow.
Even Java 7 NIO2 doesn't give any guarantees - see http://docs.oracle.com/javase/7/docs/api/java/nio/file/WatchService.html , paragraph "Platform dependencies".
> Detect new Markup Files in Development Mode
> -------------------------------------------
>
> Key: WICKET-4242
> URL: https://issues.apache.org/jira/browse/WICKET-4242
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: bernard
>
> An extension of http://www.wicketframework.org/faqs.html#how-reload-changed-markup-files
> Let Wicket detect new markup files not only modifications to existing ones.
> This is useful if a developer fails to add a markup file. That causes an exception. Currently the application has to be re-deployed to fix this condition.
--
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] [Updated] (WICKET-4242) Detect new Markup Files in
Development Mode
Posted by "Christoph Leiter (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christoph Leiter updated WICKET-4242:
-------------------------------------
Comment: was deleted
(was: If you override MarkupCache#onMarkupNotFound() be sure to use ResourceStreamLocator instead of the default CachingResourceStreamLocator.)
> Detect new Markup Files in Development Mode
> -------------------------------------------
>
> Key: WICKET-4242
> URL: https://issues.apache.org/jira/browse/WICKET-4242
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: bernard
>
> An extension of http://www.wicketframework.org/faqs.html#how-reload-changed-markup-files
> Let Wicket detect new markup files not only modifications to existing ones.
> This is useful if a developer fails to add a markup file. That causes an exception. Currently the application has to be re-deployed to fix this condition.
--
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] (WICKET-4242) Detect new Markup Files in
Development Mode
Posted by "Christoph Leiter (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201256#comment-13201256 ]
Christoph Leiter commented on WICKET-4242:
------------------------------------------
If you override MarkupCache#onMarkupNotFound() be sure to use ResourceStreamLocator instead of the default CachingResourceStreamLocator.
> Detect new Markup Files in Development Mode
> -------------------------------------------
>
> Key: WICKET-4242
> URL: https://issues.apache.org/jira/browse/WICKET-4242
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: bernard
>
> An extension of http://www.wicketframework.org/faqs.html#how-reload-changed-markup-files
> Let Wicket detect new markup files not only modifications to existing ones.
> This is useful if a developer fails to add a markup file. That causes an exception. Currently the application has to be re-deployed to fix this condition.
--
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] [Issue Comment Edited] (WICKET-4242) Detect new Markup Files
in Development Mode
Posted by "Martin Grigorov (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201239#comment-13201239 ]
Martin Grigorov edited comment on WICKET-4242 at 2/6/12 1:03 PM:
-----------------------------------------------------------------
There is a comment at org.apache.wicket.markup.MarkupCache#onMarkupNotFound() that if the user application needs this feature then it has to override this method.
Additionally a non-caching org.apache.wicket.util.resource.locator.IResourceStreamLocator should be used. See org.apache.wicket.settings.IResourceSettings#setResourceStreamLocator.
I guess it was made this way because otherwise it makes the application slower by trying to load the missing resource for each web request.
was (Author: mgrigorov):
There is a comment at org.apache.wicket.markup.MarkupCache#onMarkupNotFound() that if the user application needs this feature then it has to override this method.
I guess it was made this way because otherwise it makes the application slower by trying to load the missing resource for each web request.
> Detect new Markup Files in Development Mode
> -------------------------------------------
>
> Key: WICKET-4242
> URL: https://issues.apache.org/jira/browse/WICKET-4242
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: bernard
>
> An extension of http://www.wicketframework.org/faqs.html#how-reload-changed-markup-files
> Let Wicket detect new markup files not only modifications to existing ones.
> This is useful if a developer fails to add a markup file. That causes an exception. Currently the application has to be re-deployed to fix this condition.
--
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] (WICKET-4242) Detect new Markup Files in
Development Mode
Posted by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201239#comment-13201239 ]
Martin Grigorov commented on WICKET-4242:
-----------------------------------------
There is a comment at org.apache.wicket.markup.MarkupCache#onMarkupNotFound() that if the user application needs this feature then it has to override this method.
I guess it was made this way because otherwise it makes the application slower by trying to load the missing resource for each web request.
> Detect new Markup Files in Development Mode
> -------------------------------------------
>
> Key: WICKET-4242
> URL: https://issues.apache.org/jira/browse/WICKET-4242
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.3
> Reporter: bernard
>
> An extension of http://www.wicketframework.org/faqs.html#how-reload-changed-markup-files
> Let Wicket detect new markup files not only modifications to existing ones.
> This is useful if a developer fails to add a markup file. That causes an exception. Currently the application has to be re-deployed to fix this condition.
--
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