« Return to Thread: Links to images and .css

Re: Links to images and .css

by igor.vaynberg :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

call it /wicket-resources instead of /resources or some such

-Igor


On 4/27/06, cowwoc <cowwoc@...> wrote:

        What does it mean to namespace it in the context of Wicket?

Gili

Igor Vaynberg wrote:

> there is already a plan to namespace that directory for v2, or so i thought.
>
> -Igor
>
>
> On 4/27/06, *cowwoc* < cowwoc@...
> <mailto:cowwoc@...>> wrote:
>
>
>             Personally, I dislike how Wicket prevents the use of
>     "reserved paths"

>     such as /resources. There should be a better way, somehow.
>
>             Why not let users bind whatever resources they want to
>     /resources and
>     if Wicket (or another user-call) tries binding to that same path you
>     throw an exception? It would be up to the user to ensure he doesn't
>     produce conflicts (which I think are extremely rare in the first place).
>
>             Anyway, just food for thought.
>
>     Gili
>
>     Eelco Hillenius wrote:
>     > I'm afraid /resources/ is a reserved path with Wicket. I guess it's
>     > not the best name we choose, as it's kind of an obvious path to use
>     > for people. Maybe we should use another path, like
>     > '/wicket-shared-resources/'  or something.
>     >
>     > Eelco
>     >
>     >
>     > On 4/27/06, Rui Pacheco < rui.pacheco@...
>     <mailto:rui.pacheco@...>> wrote:
>     >> My problem is, the images and css files can't be found by the
>     html pages.
>     >> I am calling them as if I was using a static page:
>     >> <link href="universal.css" rel="stylesheet" type="text/css">
>     >>
>     >> Images follow a similar pattern.
>     >>
>     >>
>     >> On 4/27/06, Igor Vaynberg <igor.vaynberg@...
>     <mailto: igor.vaynberg@...>> wrote:
>     >>> how are you referring to those files inside your css?
>     >>>
>     >>> -Igor
>     >>>

>     >>>
>     >>>
>     >>>
>     >>> On 4/27/06, Rui Pacheco <rui.pacheco@...
>     <mailto: rui.pacheco@...> > wrote:
>     >>>> Hi all.
>     >>>>
>     >>>> My application, as with all applications, uses stylesheets and
>     images.
>     >> Those files are stored under
>     >> $TOMCAT_HOME/webapps/my_app/resources, but when I launch my
>     >> wicket application I see an error on my logs saying that the file
>     can't be
>     >> found, even though I can see it on the filesystem.
>     >>>> How can I make my files appear on the application?
>     >>>>
>     >>>> --
>     >>>> Cumprimentos,
>     >>>>
>     >>>> Rui Pacheco
>     >>>
>     >>
>     >>
>     >> --
>     >> Cumprimentos,
>     >> Rui Pacheco
>     >
>     >
>     > -------------------------------------------------------
>     > Using Tomcat but need to do more? Need to support web services,
>     security?
>     > Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     >
>     http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
>     < http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642>
>     > _______________________________________________
>     > Wicket-user mailing list
>     > Wicket-user@...
>     <mailto:Wicket-user@...>
>     > https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
>




 « Return to Thread: Links to images and .css