normally (if you don't set a sourcepath in the ApplicationSettings) the html must be beside the class.
So in the package.


But a href to something in a page can contain this: Xxxx.html
That thing could be a normal (no wicket component html file) that is in the webroot
Or it could be a html file that is a wicket component.


Maybe this isn't something that will happen but it can be very confusing for a user
if this happens. And he will not really know what suddenly happens...


If he expects X but suddenly Y happens

johan


Gili wrote:

        Here's a revision that better addresses Eelco and Juergen's
concerns.

1) We unify the resource path. You must place all your files in
/WebApp/ or /WebApp/WEB-INF/classes/ but not both.
2) Contrary to my previous email, you can refer outside the WebApp.
Refering to "/" refers to the root path on the server, *not* the
WebApp. If you wish to refer to the root of your WebApp, you're
supposed to use "/WebApp". I believe JSP works the same way.
3) Extend autolink to work for *any* resource (including images) by
encoding the markup type into the class name. That is,
/WebApp/WEB-INF/classes/MyPage.class becomes
/WebApp/WEB-INF/classes/MyPage$html.class

        The general markup would be <path>/<class name>$<markup
name>.class

        This would allow autolink to automatically map static resources
to Wicket components. If you refer to a resource (say an image file)
and there is no associated component with it, Wicket simply streams its
contents. This will ensure static resources continue to function the
same way they did before migration to Wicket.

        Eelco, Juergen, are there any further concerns?

Gili



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user







------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to