I did a quick junit test and it all works fine. Juergen
On 2/3/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > It looks ok to me. Would you please create a simplified junit test > case lke in wicket/src/test and I'll into it. > > Juergen > > On 2/3/06, David Leangen <[EMAIL PROTECTED]> wrote: > > > > Hello! > > > > I'm almost done my migration to 1.2. Sorry for all the questions. > > > > A few weeks ago, I was asking about contributing to headers, and we > > ended up updating this wiki page: > > > > http://www.wicket-wiki.org.uk/wiki/index.php/JavaScript > > > > > > For some reason, I'm having problems now in 1.2, and I'm not sure why. > > > > I have a "general" page that extends web page, which is itself extended > > by each of the individual pages. In this "general" page, by following > > the approach on the wiki page, I have: > > > > <wicket:head> > > <title>My title</title> > > <link wicket:id="css" rel="Stylesheet" type="text/css" > > href="main.css"/> > > </wicket:head> > > > > > > and > > > > > > final WebComponent c = new WebComponent( "css" ); > > final IModel model = new Model() > > { > > public Object getObject( Component c ) > > { > > if ( ContentPage.this.isLocaleJapanese() ) > > return "styles/main_ja.css"; > > else > > return "styles/main_en.css"; > > } > > }; > > c.add( new AttributeModifier( "href", model ) ); > > add( c ); > > > > > > However, I keep getting this: > > > > wicket.markup.MarkupException: Unable to find component with id 'css' in > > [MarkupContainer [Component id = _header, page = > > com.company.content.search.IndexPage, path = > > 1:_header:_header.WebMarkupContainer, isVisible = true, isVersioned = > > true]]. This means that you declared wicket:id=css in your markup, but > > that you either did not add the component to your page at all, or that > > the hierarchy does not match. > > > > > > I guess my hierarchy must not be right, but I'm not sure why. Can somebody > > explain this to me? > > > > Thanks so much!! > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
