Re: [Wicket-user] HTML template missing
On 07/08/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote: > Surely enabling debug for wicket.util.resource.Resource would help. I > put a property file in the classpath with the following line : > > log4j.logger.wicket.util.resource=DEBUG > > but it doesn't change anything. > > Does any one has an idea of what markup element is missing or how to get > log4j to work ? Wicket uses commons-logging internally, so it should just be a matter of a log4j.properties, but you might want to try also having a commons-logging.properties with a "org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger" inside too. (Personally, I'm now tending to go with clogging redirected to Simple Logging (https://simple-log.dev.java.net/) just to be sure I don't get issues with 'rogue' log4j configs being found where I don't expect them.) /Gwyn -- Download Wicket 1.2.1 now! - http://wicketframework.org - 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
Re: [Wicket-user] HTML template missing
Thanks a lot, Juergen. I had copied the html and java code, bypassing the class inhéritence since the parent class was empty. But the parent template was not ! Pierre-Yves Juergen Donnerstag a écrit : > Obviously AjaxTest has inherited markup. Markup inheritance works kind > of like java class inheritence. Hence you need the parents markup as > well. Look at AjaxTest.java and what classes it is derived from and > copy the *.java and *.html as well. E.g. PageablesPage is derived from > BasePage and BasePage.html. > > Juergen > > On 8/7/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I am trynig to run the PageablesPage example after having copied the >> bare minimum to my project. Obviously, something is missing but I can't >> figure what. I get the followinig error message : >> >> Markup of type 'html' for component 'com.volgadev.aloha.web.AjaxTest' >> not found. Enable debug messages for wicket.util.resource to get a list >> of all filenames tried. >> >> Obviously, it is not AjaxTest.html which is missing. The root cause is : >> >> wicket.markup.MarkupNotFoundException: Parent markup of inherited markup >> not found. Component class: com.volgadev.aloha.web.AjaxTest >> >> Surely enabling debug for wicket.util.resource.Resource would help. I >> put a property file in the classpath with the following line : >> >> log4j.logger.wicket.util.resource=DEBUG >> >> but it doesn't change anything. >> >> Does any one has an idea of what markup element is missing or how to get >> log4j to work ? >> >> thanks, >> >> Pierre-Yves >> >> >> - >> 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 >> > > - > 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 > > > - 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
Re: [Wicket-user] HTML template missing
Obviously AjaxTest has inherited markup. Markup inheritance works kind of like java class inheritence. Hence you need the parents markup as well. Look at AjaxTest.java and what classes it is derived from and copy the *.java and *.html as well. E.g. PageablesPage is derived from BasePage and BasePage.html. Juergen On 8/7/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote: > Hello, > > I am trynig to run the PageablesPage example after having copied the > bare minimum to my project. Obviously, something is missing but I can't > figure what. I get the followinig error message : > > Markup of type 'html' for component 'com.volgadev.aloha.web.AjaxTest' > not found. Enable debug messages for wicket.util.resource to get a list > of all filenames tried. > > Obviously, it is not AjaxTest.html which is missing. The root cause is : > > wicket.markup.MarkupNotFoundException: Parent markup of inherited markup > not found. Component class: com.volgadev.aloha.web.AjaxTest > > Surely enabling debug for wicket.util.resource.Resource would help. I > put a property file in the classpath with the following line : > > log4j.logger.wicket.util.resource=DEBUG > > but it doesn't change anything. > > Does any one has an idea of what markup element is missing or how to get > log4j to work ? > > thanks, > > Pierre-Yves > > > - > 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 > - 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
[Wicket-user] HTML template missing
Hello, I am trynig to run the PageablesPage example after having copied the bare minimum to my project. Obviously, something is missing but I can't figure what. I get the followinig error message : Markup of type 'html' for component 'com.volgadev.aloha.web.AjaxTest' not found. Enable debug messages for wicket.util.resource to get a list of all filenames tried. Obviously, it is not AjaxTest.html which is missing. The root cause is : wicket.markup.MarkupNotFoundException: Parent markup of inherited markup not found. Component class: com.volgadev.aloha.web.AjaxTest Surely enabling debug for wicket.util.resource.Resource would help. I put a property file in the classpath with the following line : log4j.logger.wicket.util.resource=DEBUG but it doesn't change anything. Does any one has an idea of what markup element is missing or how to get log4j to work ? thanks, Pierre-Yves - 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