Just renaming doesn't work. ResourceStreamFactory implements Wickets default implementation. I guess you forgot to call super.locate(...) in your factory?
regards Juergen On 1/22/07, Otan <[EMAIL PROTECTED]> wrote: > Let me further explain the trouble that I'm struggling... > > When I was still using ResourceStreamLocator, everything works fine. The I > just renamed ResourceStreamLocator to ResourceStreamFactory because it seems > that that's the only change to do in my part. Just renaming didn't work. I > did a necessary modification on my CustomResourceFactory according to what's > in the wicket examples but still getting the same error (see my original > post). > > I don't know what I'm doing wrong. The following debug message is all I got: > > DEBUG wicket.util.resource.UrlResourceStream - cannot > convert url: > jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html > to file (URI scheme is not "file"), falling back to the inputstream for > polling > > DEBUG wicket.util.resource.UrlResourceStream - cannot > convert url: > jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html > to file (URI scheme is not "file"), falling back to the inputstream for > polling > > DEBUG wicket.util.resource.UrlResourceStream - cannot > convert url: > jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html > to file (URI scheme is not "file"), falling back to the inputstream for > polling > > DEBUG wicket.util.resource.UrlResourceStream - cannot > convert url: > jndi:/localhost/ok/WEB-INF/wicket.html/packedge/homepage.html > to file (URI scheme is not "file"), falling back to the inputstream for > polling > > ERROR wicket.RequestCycle - Markup of type 'html' for component > 'packedge.HomePage' not found. Enable debug messages for > wicket.util.resource to get a list of all filenames tried: ... (trimmed) > > Thanks for any help. > > By the way, I think Jonathan is right that instead of the locate() method, > it's nicer to be named newXXX() > > On 14/01/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > Please see CustomResourceStreamFactory in the custom resource loading > > examples for how it works, or OsgiResourceStreamFactory as another > > example. You simply extend ResourceStreamFactory, subclass the > > appropriate locate() method (you usually must not forget to call > > super.locate()) and register your factory with the resource settings. > > Thats it. > > > > Just out of curiosity, what are you using it for? How and why did you > > change/extend the default behavior? > > > > Juergen > > > > On 1/14/07, Otan <[EMAIL PROTECTED]> wrote: > > > having my code refactored to use ResourceStreamFactory (from using > > > ResourceStreamLocator before), my program no longer works and I now > receive > > > a MarkupNotFoundException. Could someone clarify to me how is the proper > use > > > of ResourceStreamFactory and what new things to understand regarding > custom > > > markup loading. > > > > > > Thanks. > > > > > > > ------------------------------------------------------------------------- > > > 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 > > > [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > 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 > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------------------------- > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
