Re: CssBehaviour can't find css files

2014-01-16 Thread Anna Simbirtsev
Thank you for your help, I found a solution to the problem. response.render(CssHeaderItem.forUrl("info/css/styles.css")); this looks into root directory and response.render( CssReferenceHeaderItem.forReference(new CssResourceReference(getClass(), "info/css/tooltip.css"))); th

Re: CssBehaviour can't find css files

2014-01-15 Thread Martin Grigorov
Yes. It doesn't (build): mvn clean [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project sampleApp:sampleApp:1.1 (/home/martin/tmp/debug/sampleApp/pom.xml) has 11 errors [ERROR] 'dependencies.dependency.version' for org.apache.wick

Re: CssBehaviour can't find css files

2014-01-15 Thread Anna Simbirtsev
http://www.freeuploadsite.com/do.php?id=31499 Here is a link to sample application. I t may not run. On Wed, Jan 15, 2014 at 10:23 AM, Martin Grigorov wrote: > Please create a quickstart application showing the problem. > > Martin Grigorov > Wicket Training and Consulting > > > On Wed, Jan 15,

Re: CssBehaviour can't find css files

2014-01-15 Thread Martin Grigorov
Please create a quickstart application showing the problem. Martin Grigorov Wicket Training and Consulting On Wed, Jan 15, 2014 at 5:13 PM, Anna Simbirtsev wrote: > Error 404 > NOT_FOUNDHTTP ERROR 404Problem > accessing > /wat-application/wicket/resource/CSSLinksInjector/info/css/styles-ver-138

Re: CssBehaviour can't find css files

2014-01-15 Thread Anna Simbirtsev
Error 404 NOT_FOUNDHTTP ERROR 404Problem accessing /wat-application/wicket/resource/CSSLinksInjector/info/css/styles-ver-1389797413000.css. Reason:NOT_FOUNDPowered by Jetty://

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
Once I moved the file in src/main/java/ without any package, it does not show errors that it cant find it, so it is found, it just does not show any css. On Tue, Jan 14, 2014 at 10:31 AM, Martin Grigorov wrote: > The reason is that you use info.afilias.WAT.UI.CSSLinksInjector as a scope > and th

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
The reason is that you use info.afilias.WAT.UI.CSSLinksInjector as a scope and the resources are looked up relative to it in the package structure. In 1.4 it worked because you use '/info/...' - the leading slash resolved to the root package. This has been changed because of security problems and t

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
The file structure is myApplication/src/main/java myApplication/src/main/resources/info/css/ that has all css files myApplication/src/main/resources/info/images has all the images On Tue, Jan 14, 2014 at 10:04 AM, Martin Grigorov wrote: > What is the file structure ? > What packages and files

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
What is the file structure ? What packages and files you have in UI package ? Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 4:56 PM, Anna Simbirtsev wrote: > Do you have any other suggestions why it may not be able to find the css > file? > > > On Tue, Jan 14, 2014 at 9

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
Do you have any other suggestions why it may not be able to find the css file? On Tue, Jan 14, 2014 at 9:49 AM, Anna Simbirtsev wrote: > this is a dynamic parameter, is changes based on settings, it should work > either way > > > On Tue, Jan 14, 2014 at 9:45 AM, Martin Grigorov wrote: > >> The o

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
this is a dynamic parameter, is changes based on settings, it should work either way On Tue, Jan 14, 2014 at 9:45 AM, Martin Grigorov wrote: > The only difference is that the resolved theme is 'info' instead of 'root' > > Martin Grigorov > Wicket Training and Consulting > > > On Tue, Jan 14, 201

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
The only difference is that the resolved theme is 'info' instead of 'root' Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 4:43 PM, Anna Simbirtsev wrote: > The name of the file is different and it cant find it > > > On Tue, Jan 14, 2014 at 9:41 AM, Martin Grigorov >wrot

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
The name of the file is different and it cant find it On Tue, Jan 14, 2014 at 9:41 AM, Martin Grigorov wrote: > It looks perfect! > > Martin Grigorov > Wicket Training and Consulting > > > On Tue, Jan 14, 2014 at 4:39 PM, Anna Simbirtsev >wrote: > > > if I get rid of the CryptoMapper > > new li

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
It looks perfect! Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 4:39 PM, Anna Simbirtsev wrote: > if I get rid of the CryptoMapper > new link looks like > > > href="./wicket/resource/info.afilias.WAT.UI.CSSLinksInjector/info/css/tooltip-ver-1389710287000.css > http://

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
if I get rid of the CryptoMapper new link looks like http://localhost:8080/wat-application/wicket/resource/info.afilias.WAT.UI.CSSLinksInjector/info/css/tooltip-ver-1389710287000.css>" /> On Tue, Jan 14, 2014 at 9:35 AM, Martin Grigorov wrote: > Because you use CryptoMapper in your app. > > Ma

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
Because you use CryptoMapper in your app. Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 4:32 PM, Anna Simbirtsev wrote: > NEW: href="../X5EA-RpmG5- > > t7GSByiSpogTj4bvW9MKMW4vn832-xprwEXT2RkaeV8fX_4jkKsv1CB554pAX0u87jm6UPI3w_ihTiZY3tftZ8jJqrrURxUxvKsFXCdT_2G6JYzRb5crh/

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
NEW: href="../X5EA-RpmG5- t7GSByiSpogTj4bvW9MKMW4vn832-xprwEXT2RkaeV8fX_4jkKsv1CB554pAX0u87jm6UPI3w_ihTiZY3tftZ8jJqrrURxUxvKsFXCdT_2G6JYzRb5crh/X5E87/URx2a/zRb59/sFXb4/URx2a/zRb59" /> why is the new link looks like this? On Tue, Jan 14, 2014 at 9:29 AM, Martin Grigorov wrote: > I am not sure wh

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
I am not sure what you mean. Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 4:24 PM, Anna Simbirtsev wrote: > I changed these. But why is new link encoded? > > > On Tue, Jan 14, 2014 at 9:22 AM, Martin Grigorov >wrote: > > > On Tue, Jan 14, 2014 at 4:19 PM, Anna Simbirt

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
I changed these. But why is new link encoded? On Tue, Jan 14, 2014 at 9:22 AM, Martin Grigorov wrote: > On Tue, Jan 14, 2014 at 4:19 PM, Anna Simbirtsev >wrote: > > > OLD: > > href="resources/info.stuff.WAT.UI.CSSLinksInjector/root/css/tooltip.css" > > > > info.afilias.WAT.UI.CSSLinksInjector;

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
On Tue, Jan 14, 2014 at 4:19 PM, Anna Simbirtsev wrote: > OLD: > href="resources/info.stuff.WAT.UI.CSSLinksInjector/root/css/tooltip.css" > info.afilias.WAT.UI.CSSLinksInjector; name: info/css/tooltip.css 1. afilias vs. stuff 2. info vs. root > NEW: > > href="../X5EA-RpmG5-t7GSByiSpogTj4bvW9M

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
OLD: href="resources/info.stuff.WAT.UI.CSSLinksInjector/root/css/tooltip.css" NEW: href="../X5EA-RpmG5-t7GSByiSpogTj4bvW9MKMW4vn832-xprwEXT2RkaeV8fX_4jkKsv1CB554pAX0u87jm6UPI3w_ihTiZY3tftZ8jJqrrURxUxvKsFXCdT_2G6JYzRb5crh/X5E87/URx2a/zRb59/sFXb4/URx2a/zRb59" /> On Tue, Jan 14, 2014 at 9:16 AM, Ma

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
On Tue, Jan 14, 2014 at 4:13 PM, Anna Simbirtsev wrote: > Ho would I know the produced url? I sent the error > Check the produced HTML of a page that uses this code in your running application with 1.4. > > > On Tue, Jan 14, 2014 at 9:10 AM, Martin Grigorov >wrote: > > > What is the produced u

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
Ho would I know the produced url? I sent the error On Tue, Jan 14, 2014 at 9:10 AM, Martin Grigorov wrote: > What is the produced url for login.css Wicket 1.4 and what is the new error > ? > > Martin Grigorov > Wicket Training and Consulting > > > On Tue, Jan 14, 2014 at 4:06 PM, Anna Simbirtsev

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
The error changed to: WARN org.apache.wicket.request.resource.ResourceReferenceRegistry - A ResourceReference wont be created for a resource with key [scope: info.afilias.WAT.UI.CSSLinksInjector; name: info/css/tooltip.css; locale: null; style: null; variation: null] because it cannot be located.

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
What is the produced url for login.css Wicket 1.4 and what is the new error ? Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 4:06 PM, Anna Simbirtsev wrote: > I changed it but still get the error > > response.render(CssReferenceHeaderItem.forReference(new > CssResourceRe

Re: CssBehaviour can't find css files

2014-01-14 Thread Anna Simbirtsev
I changed it but still get the error response.render(CssReferenceHeaderItem.forReference(new CssResourceReference(CSSLinksInjector.class, root + "/css/login.css"))); On Tue, Jan 14, 2014 at 8:51 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Why not just use CS

Re: CssBehaviour can't find css files

2014-01-14 Thread Ernesto Reinaldo Barreiro
Why not just use CSSLinksInjector.class instead of getClass()? On Tue, Jan 14, 2014 at 2:46 PM, Anna Simbirtsev wrote: > Hi, > > I am upgrading wicket from 1.4 to 6.7. > > Before my css files were added this way: > > public class CSSLinksInjector implements IComponentInstantiationListener, > Ser

Re: CssBehaviour can't find css files

2014-01-14 Thread Martin Grigorov
Hi, Before the class was CSSLinksInjector.class, now it is CSSLinksInjector$CssBehaviour Martin Grigorov Wicket Training and Consulting On Tue, Jan 14, 2014 at 3:46 PM, Anna Simbirtsev wrote: > Hi, > > I am upgrading wicket from 1.4 to 6.7. > > Before my css files were added this way: > > publ