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")));
the package of this class

Somehow with wicket its much easier to find a solution by just looking at
the source code.



On Thu, Jan 16, 2014 at 2:42 AM, Martin Grigorov <mgrigo...@apache.org>wrote:

> 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.wicket:wicket-core:jar must be a valid version but is
> '${wicket.version}'. @ line 15, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.apache.wicket:wicket-extensions:jar must be a valid version but is
> '${wicket.version}'. @ line 19, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.apache.wicket:wicket-datetime:jar must be a valid version but is
> '${wicket.version}'. @ line 23, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.apache.wicket:wicket-devutils:jar must be a valid version but is
> '${wicket.version}'. @ line 27, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.apache.wicket:wicket-jmx:jar must be a valid version but is
> '${wicket.version}'. @ line 31, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.springframework:spring-core:jar must be a valid version but is
> '${spring.version}'. @ line 36, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.springframework:spring-context:jar must be a valid version but is
> '${spring.version}'. @ line 41, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.springframework:spring-web:jar must be a valid version but is
> '${spring.version}'. @ line 46, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.apache.wicket:wicket-spring:jar must be a valid version but is
> '${wicket.version}'. @ line 64, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.mortbay.jetty:jetty:jar must be a valid version but is
> '${jetty.version}'. @ line 130, column 16
> [ERROR]     'dependencies.dependency.version' for
> org.mortbay.jetty:jetty-util:jar must be a valid version but is
> '${jetty.version}'. @ line 136, column 16
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>
>
> You should respect more our time.
> We want to help but you must make an effort yourself!
>
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Wed, Jan 15, 2014 at 8:24 PM, Anna Simbirtsev <asimbirt...@gmail.com
> >wrote:
>
> > 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 <mgrigo...@apache.org
> > >wrote:
> >
> > > 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 <
> asimbirt...@gmail.com
> > > >wrote:
> > >
> > > > <html><head><meta http-equiv="Content-Type" content="text/html;
> > > > charset=ISO-8859-1"/><title>Error 404
> > > > NOT_FOUND</title></head><body><h2>HTTP ERROR 404</h2><p>Problem
> > > > accessing
> > > >
> > >
> >
> /wat-application/wicket/resource/CSSLinksInjector/info/css/styles-ver-1389797413000.css.
> > > > Reason:<pre>    NOT_FOUND</pre></p><hr /><i><small>Powered by
> > > > Jetty://</small></i><br/>
> > > >   <br/>                                                <br/>
> > > >                                      <br/>
> > > >                    <br/>
> > > >  <br/>                                                <br/>
> > > >                                     <br/>
> > > >                   <br/>
> > > > <br/>                                                <br/>
> > > >                                    <br/>
> > > >                  <br/>
> > > > <br/>                                                <br/>
> > > >                                    <br/>
> > > >                  <br/>
> > > > <br/>                                                <br/>
> > > >                                    <br/>
> > > >                  </body></html>
> > > >
> > > > This error is shown inside the css file. I moved file in
> > src/main/java/.
> > > >
> > > >
> > > >
> > > > On Tue, Jan 14, 2014 at 2:05 PM, Anna Simbirtsev <
> > asimbirt...@gmail.com
> > > > >wrote:
> > > >
> > > > > 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 <
> > > mgrigo...@apache.org
> > > > >wrote:
> > > > >
> > > > >> 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 the leading
> > > slash
> > > > >> is
> > > > >> removed.
> > > > >> I think latest 1.4.x also have this fix but I'm not 100% certain.
> > > > >>
> > > > >> If you want to keep the resources there you have to use a class in
> > the
> > > > >> root
> > > > >> package as a scope.
> > > > >> I.e. create a new class in src/main/java/ folder and use it at:
> > > > >> CssReferenceHeaderItem.forReference(new CssResourceReference(HERE,
> > ..
> > > > >>
> > > > >> Martin Grigorov
> > > > >> Wicket Training and Consulting
> > > > >>
> > > > >>
> > > > >> On Tue, Jan 14, 2014 at 5:22 PM, Anna Simbirtsev <
> > > asimbirt...@gmail.com
> > > > >> >wrote:
> > > > >>
> > > > >> > 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 <
> > > > mgrigo...@apache.org
> > > > >> > >wrote:
> > > > >> >
> > > > >> > > 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 <
> > > > >> asimbirt...@gmail.com
> > > > >> > > >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: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
> > > > >> > > > >> > > > > > > > > > > > > > >
> > > > >> > > > >> > > > > > > > > > > > > >
> > > > >> > > > >> > > > > > > > > > > > >
> > > > >> > > > >> > > > > > > > > > > >
> > > > >> > > > >> > > > > > > > > > >
> > > > >> > > > >> > > > > > > > > >
> > > > >> > > > >> > > > > > > > >
> > > > >> > > > >> > > > > > > >
> > > > >> > > > >> > > > > > >
> > > > >> > > > >> > > > > >
> > > > >> > > > >> > > > >
> > > > >> > > > >> > > >
> > > > >> > > > >> > >
> > > > >> > > > >> >
> > > > >> > > > >>
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to