what problem?
Please take a look at my sample project and try it out yourself. I'll cite
myself:
- the image on the first page is not found,
- clicking the About link shows the about page, but does not render the
links correctly (About is still a link).
BTW, I'm using /foo as Application context (configured in IDEA: Tomcat's
run/debug configuration, Deployment tab), so that my application is
available at http://localhost:8080/foo .
Thanks in advance,
Tom
Johan Compagner schrieb:
what problem?
it works fine if you have all youre resources in the classes dir
in a html file you can do this:
<html>
<head>
<script wicket:id="test" src="../../../../test.js"></script>
</head>
and in the page you add that component to youre page:
page()
{
add(new JavaScriptReference("test", getClass(), "./../../../test.js"));
}
On 2/28/06, *Thomas Singer* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
wrote:
OK, but what do you say about the reported problem with the relative
resource paths and links?
--
Best regards,
Thomas Singer
Johan Compagner schrieb:
> i have to say that i don't find that the prefered (wicket) way.
> Ofcourse it is possible, but the best thing would be to package all
> resources in the classes dir or jar.
> (jar is a requirement ofcourse if you make a component that you
want to
> reuse)
>
> johan
>
>
>
> On 2/28/06, *Thomas Singer* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>>
> wrote:
>
> > Therefore , if I open PersonPanel.html with DreamWeaver or
HTML
> editor , it will report resource not found error.
> > How to solve it ?
>
> Seems to be related to my problem sent immediately before your
> posting. To
> load markups from a different location, please take a look at my
> code sample.
>
> --
> Best regards,
> Thomas Singer
>
>
> smallufo schrieb:
> > Hi , I am new to Wicket.
> > I learn Wicket from the three tutorials in JavaLobby .
> > In the third tutorial : Let Components Contribute to the
Header
> Section
> > ( http://www.javalobby.org/java/forums/t61002.html )
> > The author added to PersonPanel.html
> >
> > **<script language="JavaScript"
src="scripts/sorttable.js"></script>
> >
> > ****
> > **
> >
> > the src="..." seems should be relative to the context root
, not
> > relative to the HTML file.
> >
> > Therefore , if I open PersonPanel.html with DreamWeaver or
HTML
> editor ,
> > it will report resource not found error.
> > How to solve it ?
> >
> > I think this problem will also occur in <IMG> tag...
> >
> > I remember when I used Tapestry (long ago , about 2 years)
, it can
> > "deliver" resources from within WEB-INF/classes/....
> > That is , I can easily put JavaScripts, Images , and HTML
files
> in to
> > src/classes folder , writing relative resources and correct
> intepreted
> > by HTML editor , and tapestry can handle it... just like
this :
> >
> > WEB-INF/src[classes]/com/xxx/wicket/Person.html
> > WEB-INF/src[classes]/com/xxx/wicket/sorttable.js
> > WEB-INF/src[classes]/com/xxx/wicket/Person.jpg
> >
> > Will Wicket allow this ?
> >
> > PS : I know this may be resolved by moving src outside
WEB-INF
> (up one
> > directory) , but I just get used to put src into
WEB-INF... (because
> > outside WEB-INF is accessable by web server... , not secure)
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking
scripting
> language
> that extends applications into web and mobile media. Attend
the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
>
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
<mailto:[email protected]>
> <mailto:[email protected]
<mailto:[email protected]>>
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
_______________________________________________
Wicket-user mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wicket-user
<https://lists.sourceforge.net/lists/listinfo/wicket-user>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user