thank you for your very detailled answer! this is what I like here... (and no one gets bashed for asking) :clap:
Eelco Hillenius wrote: > >> YOU GUESS WHAT?!! >> I JUST RENAMED THE FILE TO "dialogTable.htm" AND NOW IT IS WORKING!! >> it is the fact of not being able to serve "html"-files! >> is there a way to change this behaviour or is it an absolute necessary >> security feature? > > Yes, this *was* a security feature.The feature can be configured using > IResourceSettings#setPackageResourceGuard. Older versions of Wicket > blocked .html by default, but later we decided that was too much. Now > it only blocks .properties, .class and .java by default. So, like Kent > said, upgrade to a newer Wicket version and your problem is gone. Or > set a custom guard. > > Btw, you can learn a lot from following the trace. Part of the error > trace: > > wicket.markup.html.PackageResource$PackageResourceBlockedException: > package > resource wicket/extensions/markup/html/form/wysiwyg/res/dialogTable.html > may > not be accessed > at > wicket.markup.html.PackageResource.<init>(PackageResource.java:489) > at > wicket.markup.html.CompressedPackageResource.<init>(CompressedPackageResource.java:51) > ... > > if you look in the source of PackageResource, around line 489, you can > see: > > IPackageResourceGuard guard = > Application.get().getResourceSettings() > .getPackageResourceGuard(); > if (!guard.accept(scope, path)) > { > throw new PackageResourceBlockedException("package > resource " + > absolutePath + > " may not be accessed"); > } > > > Don't be afraid of the code, it might save you time and annoyances :-) > > If you are using Maven + Eclipse, you can put this in the <build> > section of your pom: > > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-eclipse-plugin</artifactId> > <configuration> > <downloadSources>true</downloadSources> > </configuration> > </plugin> > > so that mvn eclipse:eclipse will try to download any source jars > (Wicket is typically distributed with them) and make them available to > your projects. Maven plugins for other IDEs might have similar > facilities. > > Regards, > > Eelco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/CompressedResourceReference%3A-cannot-serve-static-%22.html%22-files-but-%22.htm%22-files--SOLVED-but-needs-JAVADOC-comments--tf4403564.html#a12587897 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]