Re: [Wicket-user] GridView cannot find components
Igor Vaynberg wrote: you are not doing anything wrong, its the gridview. we are still working out how to make it work within 2.0. the problem is that gridview needs to be able to switch parents of its items - something that we are still unsure how to best implement in 2.0 OK that's cool. Sorry, I forgot I was using a dev version. I should have posted this to the dev list. Will see you over there (not that I understand enough to be able to fix this for you yet). Ross - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] GridView cannot find components
i looked into it yesterday, and it seems like quete a bit of reshuffling in the entire hierearchy will be needed to make this work unfortunately. some concepts like itemreusestrategies no longer map as elegantly as they used to due to the constructor refactor so i foresee a lot of work going into the repeaters again. unfortunately i wont have the time in the near future so im not sure what to tell you :( -IgorOn 9/6/06, Ross Gardler [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: you are not doing anything wrong, its the gridview. we are still working out how to make it work within 2.0. the problem is that gridview needs to be able to switch parents of its items - something that we are still unsure how to best implement in 2.0OK that's cool. Sorry, I forgot I was using a dev version. I should haveposted this to the dev list. Will see you over there (not that Iunderstand enough to be able to fix this for you yet). Ross-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] GridView cannot find components
I'm trying to switch from a DataView component to a GridView component as per the GridView example at [1]. Everything worked fine with the DataView but with the GridView (after adding a div wicket:id=cols element) I get: WicketMessage: Couldn't find the markup of the component 'name' in parent productList:2 (possibly off topic, what is the :2 part in this message?) It's very late here, I may be making a very stupid mistake but I just can't see it. Here's the relevant code snippets: ProductList.html div wicket:id=productList div class=product1 div wicket:id=cols p class=product_name span wicket:id=name class=label[Name]/span /p img wicket:id=image class=product_picture / p class=product_details a wicket:id=view href=ProductView.html[Details]/a /p p class=product_price span wicket:id=price[Price]/span /p img src=images/buy_button.gif class=buy_button / /div /div /div ProductList.java GridView dataView = new ProductDataView(this, this, productList, new ProductDataProvider()); dataView.setColumns(ITEM_COLUMNS); dataView.setRows(ITEM_ROWS); ProductDataView.java (extends GridView.java) protected void populateItem(final Item item) { Product product = (Product) item.getModelObject(); ProductDescription desc = ProductDescriptionService.getDescription( product.getId(), ProductDescriptionService.LANG_ID_DEFAULT); if (desc == null) desc = new ProductDescription(); new Label(item, name, desc.getName()); new Label(item, price, product.getPrice().toString()); new Image(item, image, ImageUtil .getThumbnailImageResource(product)); ProductView.link(item, view, product.getId()); item.add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() { @Override public String getObject() { return (item.getIndex() % 2 == 1) ? right_products : left_products; } })); } What on earth am I doing wrong? Ross [1] http://www.wicket-library.com/wicket-examples/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.GridViewPage - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] GridView cannot find components
you are not doing anything wrong, its the gridview. we are still working out how to make it work within 2.0. the problem is that gridview needs to be able to switch parents of its items - something that we are still unsure how to best implement in 2.0-IgorOn 9/5/06, Ross Gardler [EMAIL PROTECTED] wrote: I'm trying to switch from a DataView component to a GridView componentas per the GridView example at [1]. Everything worked fine with theDataView but with the GridView (after adding a div wicket:id=cols element) I get:WicketMessage: Couldn't find the markup of the component 'name' inparent productList:2(possibly off topic, what is the :2 part in this message?)It's very late here, I may be making a very stupid mistake but I just can't see it. Here's the relevant code snippets:ProductList.htmldiv wicket:id=productList div class=product1 div wicket:id=cols p class=product_name span wicket:id=name class=label[Name]/span /p img wicket:id=image class=product_picture / p class=product_details a wicket:id=view href=""> /p p class=product_price span wicket:id=price[Price]/span /p img src="" class=buy_button / /div /div /divProductList.javaGridView dataView = new ProductDataView(this, this, productList, new ProductDataProvider());dataView.setColumns(ITEM_COLUMNS);dataView.setRows (ITEM_ROWS);ProductDataView.java (extends GridView.java)protected void populateItem(final Item item) { Product product = (Product) item.getModelObject(); ProductDescription desc = ProductDescriptionService.getDescription(product.getId(), ProductDescriptionService.LANG_ID_DEFAULT); if (desc == null) desc = new ProductDescription(); new Label(item, name, desc.getName()); new Label(item, price, product.getPrice().toString()); new Image(item, image, ImageUtil.getThumbnailImageResource(product)); ProductView.link(item, view, product.getId()); item.add(new AttributeModifier(class, true, new AbstractReadOnlyModelString() {@Overridepublic String getObject() { return (item.getIndex() % 2 == 1) ? right_products :left_products;}}));}What on earth am I doing wrong? Ross[1]http://www.wicket-library.com/wicket-examples/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.GridViewPage -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user