Re: error in heritance
replace wicket:extend with wicket:panel -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
Sorry, did'nt unfold your message. It looks like you forgot to insert wicket:child in parent markup. That tags mark the place where inherited component will be placed. I hope I didnt miss anything now. On 23 November 2010 15:55, alex shubert alex.shub...@gmail.com wrote: replace wicket:extend with wicket:panel -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
Hello Alex, i´m using inheritance. See the cod. html of class extend Panel: ?xml version=1.0 encoding=UTF-8? html xmlns:wicket=http://www.w3.org/1999/XSL/Transform; head /head body wicket:panel div wicket:id=wmcwicket:child AQUI VA EL CHILD/wicket:child/div div wicket:id=detailSearch/div /wicket:panel /body /html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055406.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
That day is too long for me. What about html files names? May be typo or incorrect place? Or maybe you build script does not move html to the same packet as corresponding java classes is? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
Alex, the class Base extend Panel (ThirdByRolMain) and the class Sub extend Base (ThirdByRolPolicy). The two class is in package com.consisint.frontend.pages. And the html in C:\programs\FrontEnd\FrontEnd\WebContent\views . Help me please, error: WicketMessage: Base markup of inherited markup not found. Component class: com.consisint.frontend.pages.ThirdByRolPolicy Enable debug messages for org.apache.wicket.util.resource.Resource to get a list of all filenames tried. Root cause: org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited markup not found. Component class: com.consisint.frontend.pages.ThirdByRolPolicy Enable debug messages for org.apache.wicket.util.resource.Resource to get a list of all filenames tried. at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:98) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:63) ? Thank you Alex! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055467.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
I´m use wicket 1.4.6! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055471.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
Look, you have java classes in path like com\consisint\frontend\pages and corresponding HTML in \FrontEnd\FrontEnd\WebContent\views You have to have HTML files in the same folder where you compilled classes are. Something like $ls com\consisint\frontend\pages ThirdByRolMain.class ThirdByRolMain.html ThirdByRolPolicy.class ThirdByRolPolicy.html Do ot and run you code again. The two class is in package com.consisint.frontend.pages. And the html in C:\programs\FrontEnd\FrontEnd\WebContent\views . - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
take a look In all the Wicket examples, you have to put all files in the same package directory. This means putting the markup files and the java files next to one another. (c) http://wicket.apache.org/learn/examples/markupinheritance.html -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
I done the class to change the location: public class ConfigHtmlPath extends ResourceStreamLocator { /** * Constructor class */ public ConfigHtmlPath() { } /** * Find the html resource in the dir especified * @param clazz class to localize * @param path path where the class is * @return the new resource stream */ public IResourceStream locate(Class? clazz, String path) { String location; String extension = path.substring(path.lastIndexOf('.') + 1); String simpleFileName = Strings.lastPathComponent(clazz.getName(), '.'); location = /views/ + simpleFileName + . + extension; URL url; try { // try to load the resource from the web context url = WebApplication.get().getServletContext().getResource(location); if (url != null) { return new UrlResourceStream(url); } } catch (MalformedURLException e) { throw new WicketRuntimeException(e); } // resource not found; fall back on class loading return super.locate(clazz, path); } } Thank you by reply! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055527.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
It sounds like you're just getting started with Wicket. Why are you rocking the boat already? Just put the markup where it belongs and don't try messing with putting it elsewhere until you truly understand what you're doing. On Tue, Nov 23, 2010 at 9:26 AM, Alis ajcalve...@yahoo.es wrote: I done the class to change the location: public class ConfigHtmlPath extends ResourceStreamLocator { /** * Constructor class */ public ConfigHtmlPath() { } /** * Find the html resource in the dir especified * @param clazz class to localize * @param path path where the class is * @return the new resource stream */ public IResourceStream locate(Class? clazz, String path) { String location; String extension = path.substring(path.lastIndexOf('.') + 1); String simpleFileName = Strings.lastPathComponent(clazz.getName(), '.'); location = /views/ + simpleFileName + . + extension; URL url; try { // try to load the resource from the web context url = WebApplication.get().getServletContext().getResource(location); if (url != null) { return new UrlResourceStream(url); } } catch (MalformedURLException e) { throw new WicketRuntimeException(e); } // resource not found; fall back on class loading return super.locate(clazz, path); } } Thank you by reply! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055527.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
James, please help me. Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055573.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
Create a quickstart and put it somewhere where we can get to it. Then, someone will be able to help you easier. On Tue, Nov 23, 2010 at 9:50 AM, Alis ajcalve...@yahoo.es wrote: James, please help me. Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/error-in-heritance-tp3055355p3055573.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org