On 3/12/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:
Yes, you may be missing something. You should have written at
least 5 lines of Java code to activate the reloading of your own
classes. Did you extend ReloadingWicketFilter to include your own
packages? You need to specify your own class.
Maybe the Javadoc in ReloadingWicketFilter is not explicit enough,
in that case an updated description would be more than welcome.
Ok, yeah, I misunderstood that. I thought I could just use
ReloadingWicketFilter from my web.xml and it would work withs some defaults
but needing to specify some sane bounds for it to work within makes perfect
sense. It's still not working perfectly for me but I think I'm running into
issues similar to what you described for Spring (i.e. class cast exceptions
on a few things loaded before the filter classloader).
If I were to suggest a few changes to the javadocs, then it might be a good
idea to explicitly say that you need to extend the ReloadingWicketFilter for
your own application. I'm sure this is obvious to you and once I put some
thought into it, it makes perfect sense, but one doesn't need to extend the
normal WicketFilter in order to use it, so that's why I wasn't thinking
about it in the right way. Also, in your static block example where you show
include and exclude patterns, you might want to use packages like
com.yourapp.* instead of wicket packages.I can't speak for everyone but I
think most of us work in the mindset of the wicket classes being static (as
in not changing) during our application development so it isn't immediately
clear why you would need to exclude those. Again, once I thought about it
for a bit, I understood why you had it set up that way.
Then again, I might just be a little slow on the uptake.. :)
...
Well before I finished up this email, I figured out what packages to exclude
to eliminate the classcast exceptions and it's all working perfectly. This
is going to be a huge productivity boost!
Thanks for your help!
Matt
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user