Is that label in a form? On 8/23/05, Eric Rodriguez <[EMAIL PROTECTED]> wrote: > First of all, I apologize for the beginner question. I am fairly new to > Java and Wicket. > > I have download the Wicket Kickstart 1.0.1 today and I am having some > trouble. > The default Kickstart app worked fine, however when I decided to add a > Label to > the page I got the following error: > > ========================================================== > wicket.markup.MarkupException: Unable to find component with id 'foo' in > [Page class = wicket.quickstart.Index, id = 19] > [markup = > file:/C:/Documents%20and%20Settings/errodr/workspace/foo/target/classes/ > wicket/quickstart/Index.html, index = 1, current = '<span > wicket:id="foo">' (line 8, column 12)] > ========================================================== > > Here is the salient part of the index.html file: > ========================================================== > <p><span wicket:id="foo">Hello, Wicket...</span></p> > ========================================================== > > Here is the salient part of the index.java file: > ========================================================== > package wicket.quickstart; > > import wicket.PageParameters; > import wicket.markup.html.basic.*; > . > . > . > . > public Index(final PageParameters parameters) > { > // TODO Add your page's components here > add(new Label("foo","Why am I getting an error???")); > } > ========================================================== > > Can someone please tell me what I have screwed up? It looks correct... > > Thanks... > > > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user >
------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user