StyleSheetReference - what does href mean?

View: New views
2 Messages — Rating Filter:   Alert me  

StyleSheetReference - what does href mean?

by puschteblume@gmx.de :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

First of all .. thanks for this wonderful peace of software.

I don't understand what the generate reference in the stylesheet link
mean. The generated output is:

<head>
        <link rel="stylesheet" type="text/css" href="resources/net.form105.web.base.page.login.LoginPage/LoginPage.css" wicket:id="styleSheet"/>
</head>

This works as it should.

In the LoginPage.class I defined following:

add(new StyleSheetReference("styleSheet", new
ResourceReference(LoginPage.class, "LoginPage.css")));

But what means the generated reference?

resources/net.form105.web.base.page.login.LoginPage/LoginPage.css

What is the resources folder? I can't find them?

Sorry for the stupid question. I don't have some html experience ...

Thanks Heiko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: StyleSheetReference - what does href mean?

by igor.vaynberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

it is a virtual mapping. wicket knows how to process it and retrieve
the resource. there is no actual resources folder.

-igor

On Thu, Jul 17, 2008 at 9:45 AM, puschteblume <puschteblume@...> wrote:

> Hello
>
> First of all .. thanks for this wonderful peace of software.
>
> I don't understand what the generate reference in the stylesheet link mean.
> The generated output is:
>
> <head>
>        <link rel="stylesheet" type="text/css"
> href="resources/net.form105.web.base.page.login.LoginPage/LoginPage.css"
> wicket:id="styleSheet"/>
> </head>
>
> This works as it should.
>
> In the LoginPage.class I defined following:
>
> add(new StyleSheetReference("styleSheet", new
> ResourceReference(LoginPage.class, "LoginPage.css")));
>
> But what means the generated reference?
>
> resources/net.form105.web.base.page.login.LoginPage/LoginPage.css
>
> What is the resources folder? I can't find them?
>
> Sorry for the stupid question. I don't have some html experience ...
>
> Thanks Heiko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price