[Wicket-user] ajax failed to update a component (wicket-1.2)
I added a list in form with id statusForm as follows: ListView list = new ListView(myList); list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30))); list.setOutputMarkupId(true); add(nodeGroups); This is the corresponding markup: table class=dataTable tr wicket:id=list tdspan wicket:id=namefoo/span/td tdspan wicket:id=statusStarting/span/td /tr /table But Ajax has failed to auto-refresh the page and produced the following error: ERROR: Component with id [[statusForm_list]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. Why is markup update looking for component id statusForm_list and not list? 10x Nili 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] ajax failed to update a component (wicket-1.2)
because that is the complete path to that list (i guess new ListView(myList)) is wrong? it should be just list?but a ListView doesn't have a markup by itself. Only the list items. If you want to update a listview you have to wrap in in a container and attach the ajax behaviiour to that.johanOn 6/25/06, Nili Adoram [EMAIL PROTECTED] wrote:I added a list in form with id statusForm as follows: ListView list = new ListView(myList);list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));list.setOutputMarkupId(true);add(nodeGroups);This is the corresponding markup: table class=dataTabletr wicket:id=listtdspan wicket:id=namefoo/span/tdtdspan wicket:id=statusStarting/span/td /tr/tableBut Ajax has failed to auto-refresh the page and produced the followingerror:ERROR: Component with id [[statusForm_list]] a was not found whiletrying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you aretrying to update.Why is markup update looking for component id statusForm_list and not list?10xNiliUsing Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload 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.nethttps://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
Re: [Wicket-user] ajax failed to update a component (wicket-1.2)
Thanks, I wrapped with a WebMarkupContainer and it worked! Johan Compagner wrote: because that is the complete path to that list (i guess new ListView(myList)) is wrong? it should be just list? but a ListView doesn't have a markup by itself. Only the list items. If you want to update a listview you have to wrap in in a container and attach the ajax behaviiour to that. johan On 6/25/06, *Nili Adoram* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I added a list in form with id statusForm as follows: ListView list = new ListView(myList); list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30))); list.setOutputMarkupId(true); add(nodeGroups); This is the corresponding markup: table class=dataTable tr wicket:id=list tdspan wicket:id=namefoo/span/td tdspan wicket:id=statusStarting/span/td /tr /table But Ajax has failed to auto-refresh the page and produced the following error: ERROR: Component with id [[statusForm_list]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. Why is markup update looking for component id statusForm_list and not list? 10x Nili 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-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 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