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 <asimbirt...@gmail.com>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 <mgrigo...@apache.org>wrote: > >> 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 <asimbirt...@gmail.com >> >wrote: >> >> > The name of the file is different and it cant find it >> > >> > >> > On Tue, Jan 14, 2014 at 9:41 AM, Martin Grigorov <mgrigo...@apache.org >> > >wrote: >> > >> > > It looks perfect! >> > > >> > > Martin Grigorov >> > > Wicket Training and Consulting >> > > >> > > >> > > On Tue, Jan 14, 2014 at 4:39 PM, Anna Simbirtsev < >> asimbirt...@gmail.com >> > > >wrote: >> > > >> > > > if I get rid of the CryptoMapper >> > > > new link looks like >> > > > >> > > > <link rel="stylesheet" type="text/css" >> > > > >> > > > >> > > >> > >> href="./wicket/resource/info.afilias.WAT.UI.CSSLinksInjector/info/css/tooltip-ver-1389710287000.css >> > > > <view-source: >> > > > >> > > >> > >> 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 < >> mgrigo...@apache.org >> > > > >wrote: >> > > > >> > > > > Because you use CryptoMapper in your app. >> > > > > >> > > > > Martin Grigorov >> > > > > Wicket Training and Consulting >> > > > > >> > > > > >> > > > > On Tue, Jan 14, 2014 at 4:32 PM, Anna Simbirtsev < >> > > asimbirt...@gmail.com >> > > > > >wrote: >> > > > > >> > > > > > 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 < >> > > mgrigo...@apache.org >> > > > > > >wrote: >> > > > > > >> > > > > > > I am not sure what you mean. >> > > > > > > >> > > > > > > Martin Grigorov >> > > > > > > Wicket Training and Consulting >> > > > > > > >> > > > > > > >> > > > > > > On Tue, Jan 14, 2014 at 4:24 PM, Anna Simbirtsev < >> > > > > asimbirt...@gmail.com >> > > > > > > >wrote: >> > > > > > > >> > > > > > > > I changed these. But why is new link encoded? >> > > > > > > > >> > > > > > > > >> > > > > > > > On Tue, Jan 14, 2014 at 9:22 AM, Martin Grigorov < >> > > > > mgrigo...@apache.org >> > > > > > > > >wrote: >> > > > > > > > >> > > > > > > > > On Tue, Jan 14, 2014 at 4:19 PM, Anna Simbirtsev < >> > > > > > > asimbirt...@gmail.com >> > > > > > > > > >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-t7GSByiSpogTj4bvW9MKMW4vn832-xprwEXT2RkaeV8fX_4jkKsv1CB554pAX0u87jm6UPI3w_ihTiZY3tftZ8jJqrrURxUxvKsFXCdT_2G6JYzRb5crh/X5E87/URx2a/zRb59/sFXb4/URx2a/zRb59" >> > > > > > > > > > /> >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > On Tue, Jan 14, 2014 at 9:16 AM, Martin Grigorov < >> > > > > > > mgrigo...@apache.org >> > > > > > > > > > >wrote: >> > > > > > > > > > >> > > > > > > > > > > On Tue, Jan 14, 2014 at 4:13 PM, Anna Simbirtsev < >> > > > > > > > > asimbirt...@gmail.com >> > > > > > > > > > > >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 < >> > > > > > > > > mgrigo...@apache.org >> > > > > > > > > > > > >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 < >> > > > > > > > > > > asimbirt...@gmail.com >> > > > > > > > > > > > > >wrote: >> > > > > > > > > > > > > >> > > > > > > > > > > > > > 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 CSSLinksInjector.class >> instead >> > of >> > > > > > > > getClass()? >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > On Tue, Jan 14, 2014 at 2:46 PM, Anna >> Simbirtsev >> > < >> > > > > > > > > > > > > asimbirt...@gmail.com >> > > > > > > > > > > > > > > >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, >> > > > > > > > > > > > > > > > Serializable >> > > > > > > > > > > > > > > > { >> > > > > > > > > > > > > > > > private static final long >> serialVersionUID >> > = >> > > > > > > > > > > > > 7463279042460663915L; >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > //private final List<HeaderContributor> >> > > > > > cssResources >> > > > > > > = >> > > > > > > > > new >> > > > > > > > > > > > > > > > ArrayList<HeaderContributor>(); >> > > > > > > > > > > > > > > > private String theme; >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > public CSSLinksInjector(String theme) >> > > > > > > > > > > > > > > > { >> > > > > > > > > > > > > > > > this.theme = theme; >> > > > > > > > > > > > > > > > String root = (theme == null || >> > > > > > theme.isEmpty()) >> > > > > > > ? >> > > > > > > > > "" : >> > > > > > > > > > > > "/" + >> > > > > > > > > > > > > > > > theme; >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > /* >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > >> > > > >> cssResources.add(CSSPackageResource.getHeaderContribution(getClass(), >> > > > > > > > > > > > > > > > root + "/css/login.css")); >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > >> > > > >> cssResources.add(CSSPackageResource.getHeaderContribution(getClass(), >> > > > > > > > > > > > > > > > root + >> "/css/tooltip.css"));*/ >> > > > > > > > > > > > > > > > } >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > Now, I am adding them like this: >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > public void onInstantiation(Component >> > component) >> > > > > > > > > > > > > > > > { >> > > > > > > > > > > > > > > > if (component instanceof WebPage) >> > > > > > > > > > > > > > > > { >> > > > > > > > > > > > > > > > component.add(new >> > > CssBehaviour(theme)); >> > > > > > > > > > > > > > > > } >> > > > > > > > > > > > > > > > } >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > private class CssBehaviour extends >> > Behavior { >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > private static final long >> > > serialVersionUID >> > > > = >> > > > > > > > > > > > > > > -1540416397347502364L; >> > > > > > > > > > > > > > > > private String theme; >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > public CssBehaviour(String theme) { >> > > > > > > > > > > > > > > > this.theme = theme; >> > > > > > > > > > > > > > > > } >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > @Override >> > > > > > > > > > > > > > > > public void renderHead(Component >> > > component, >> > > > > > > > > > > IHeaderResponse >> > > > > > > > > > > > > > > > response) { >> > > > > > > > > > > > > > > > String root = (theme == null || >> > > > > > > > theme.isEmpty()) >> > > > > > > > > ? >> > > > > > > > > > > "" : >> > > > > > > > > > > > > > "/" + >> > > > > > > > > > > > > > > > theme; >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >> > > > > > > > > > > >> response.render(CssReferenceHeaderItem.forReference(new >> > > > > > > > > > > > > > > > CssResourceReference(getClass(), >> > > > > > > > > > > > > > > > root + >> "/css/login.css"))); >> > > > > > > > > > > > > > > > >> > > > > > > > > > > >> response.render(CssReferenceHeaderItem.forReference(new >> > > > > > > > > > > > > > > > CssResourceReference(getClass(), >> > > > > > > > > > > > > > > > root + >> > "/css/tooltip.css"))); >> > > > > > > > > > > > > > > > } >> > > > > > > > > > > > > > > > } >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > When I run, I get an error: >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > 2014-01-14 13:36:53,950 >> > [838889794@qtp-4816459-2 >> > > ] >> > > > > WARN >> > > > > > > > > > > > > > > > >> > > > > > > > org.apache.wicket.request.resource.ResourceReferenceRegistry >> > > > > > > > > - >> > > > > > > > > > A >> > > > > > > > > > > > > > > > ResourceReference wont be created for a >> > resource >> > > > with >> > > > > > key >> > > > > > > > > > [scope: >> > > > > > > > > > > > > > > > >> > > info.afilias.WAT.UI.CSSLinksInjector$CssBehaviour; >> > > > > > name: >> > > > > > > > > > > > > > > > info/css/login.css; locale: null; style: >> null; >> > > > > > variation: >> > > > > > > > > null] >> > > > > > > > > > > > > because >> > > > > > > > > > > > > > > it >> > > > > > > > > > > > > > > > cannot be located. >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > > Before it was fine. >> > > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > > -- >> > > > > > > > > > > > > > > Regards - Ernesto Reinaldo Barreiro >> > > > > > > > > > > > > > > >> > > > > > > > > > > > > > >> > > > > > > > > > > > > >> > > > > > > > > > > > >> > > > > > > > > > > >> > > > > > > > > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > >> > >