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]> 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="">>
> ****
> **
>
> 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 _javascript_s, 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
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
