Re: AjaxLink not work
No. Wicket should do this for you. Is your link disabled ? Did you add it to a parent component ? Create a quickstart and attach it to Jira. On Mon, Oct 8, 2012 at 6:21 PM, Marco Di Sabatino Di Diodoro wrote: > Martin, > > In the Page Source > Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e:'click'}); > is not present. > > Do I Have to include something? > > M > > > On Oct 8, 2012, at 4:48 PM, Martin Grigorov wrote: > >> Hi, >> >> I have no time to debug the whole app. >> Check for JavaScript errors. >> >> Also check the produced HTML. Find the tag for the link, get its >> 'id' and search for Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e: >> 'click'}); >> Check with Firebug/Dev tools that and Ajax call is fired when you click. >> >> On Mon, Oct 8, 2012 at 5:40 PM, Marco Di Sabatino Di Diodoro >> wrote: >>> >>> On Oct 8, 2012, at 4:31 PM, Martin Grigorov wrote: >>> Hi, The code looks OK. What exactly doesn't work ? >>> >>> When I click on the link does nothing. All Links into the console not work. >>> Here you can find source code from console ( >>> http://svn.apache.org/viewvc/incubator/syncope/trunk/console/ ) >>> On Mon, Oct 8, 2012 at 5:06 PM, Marco Di Sabatino Di Diodoro wrote: > Hi > > I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All > AjaxLinks from the console not work. > > final AjaxLink createLink = new IndicatingAjaxLink("createLink") { > > private static final long serialVersionUID = > -7978723352517770644L; > > @Override > public void onClick(final AjaxRequestTarget target) { > editModalWin.setPageCreator(new ModalWindow.PageCreator() { > > private static final long serialVersionUID = > -7834632442532690940L; > > @Override > public Page createPage() { > return new > EditUserModalPage(Users.this.getPageReference(), editModalWin, new > UserTO()); > } > }); > > editModalWin.show(target); > } > }; > > What am I forgetting? > > Regards > Marco > -- > > Dott. Marco Di Sabatino Di Diodoro > Tel. +39 3939065570 > > Tirasa S.r.l. > Viale D'Annunzio 267 - 65127 Pescara > Tel +39 0859116307 / FAX +39 085973 > http://www.tirasa.net > > Apache Syncope PPMC Member > http://people.apache.org/~mdisabatino > > > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> >>> Dott. Marco Di Sabatino Di Diodoro >>> Tel. +39 3939065570 >>> >>> Tirasa S.r.l. >>> Viale D'Annunzio 267 - 65127 Pescara >>> Tel +39 0859116307 / FAX +39 085973 >>> http://www.tirasa.net >>> >>> Apache Syncope PPMC Member >>> http://people.apache.org/~mdisabatino >>> >>> >>> >>> >> >> >> >> -- >> Martin Grigorov >> jWeekend >> Training, Consulting, Development >> http://jWeekend.com >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > -- > > Dott. Marco Di Sabatino Di Diodoro > Tel. +39 3939065570 > > Tirasa S.r.l. > Viale D'Annunzio 267 - 65127 Pescara > Tel +39 0859116307 / FAX +39 085973 > http://www.tirasa.net > > Apache Syncope PPMC Member > http://people.apache.org/~mdisabatino > > > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxLink not work
Martin, In the Page Source Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e:'click'}); is not present. Do I Have to include something? M On Oct 8, 2012, at 4:48 PM, Martin Grigorov wrote: > Hi, > > I have no time to debug the whole app. > Check for JavaScript errors. > > Also check the produced HTML. Find the tag for the link, get its > 'id' and search for Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e: > 'click'}); > Check with Firebug/Dev tools that and Ajax call is fired when you click. > > On Mon, Oct 8, 2012 at 5:40 PM, Marco Di Sabatino Di Diodoro > wrote: >> >> On Oct 8, 2012, at 4:31 PM, Martin Grigorov wrote: >> >>> Hi, >>> >>> The code looks OK. >>> What exactly doesn't work ? >> >> When I click on the link does nothing. All Links into the console not work. >> Here you can find source code from console ( >> http://svn.apache.org/viewvc/incubator/syncope/trunk/console/ ) >> >>> >>> On Mon, Oct 8, 2012 at 5:06 PM, Marco Di Sabatino Di Diodoro >>> wrote: Hi I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All AjaxLinks from the console not work. final AjaxLink createLink = new IndicatingAjaxLink("createLink") { private static final long serialVersionUID = -7978723352517770644L; @Override public void onClick(final AjaxRequestTarget target) { editModalWin.setPageCreator(new ModalWindow.PageCreator() { private static final long serialVersionUID = -7834632442532690940L; @Override public Page createPage() { return new EditUserModalPage(Users.this.getPageReference(), editModalWin, new UserTO()); } }); editModalWin.show(target); } }; What am I forgetting? Regards Marco -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino >>> >>> >>> >>> -- >>> Martin Grigorov >>> jWeekend >>> Training, Consulting, Development >>> http://jWeekend.com >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> -- >> >> Dott. Marco Di Sabatino Di Diodoro >> Tel. +39 3939065570 >> >> Tirasa S.r.l. >> Viale D'Annunzio 267 - 65127 Pescara >> Tel +39 0859116307 / FAX +39 085973 >> http://www.tirasa.net >> >> Apache Syncope PPMC Member >> http://people.apache.org/~mdisabatino >> >> >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino
Re: AjaxLink not work
Hi, I have no time to debug the whole app. Check for JavaScript errors. Also check the produced HTML. Find the tag for the link, get its 'id' and search for Wicket.Ajax.get({u: 'someUrl', c: 'theLinkId', e: 'click'}); Check with Firebug/Dev tools that and Ajax call is fired when you click. On Mon, Oct 8, 2012 at 5:40 PM, Marco Di Sabatino Di Diodoro wrote: > > On Oct 8, 2012, at 4:31 PM, Martin Grigorov wrote: > >> Hi, >> >> The code looks OK. >> What exactly doesn't work ? > > When I click on the link does nothing. All Links into the console not work. > Here you can find source code from console ( > http://svn.apache.org/viewvc/incubator/syncope/trunk/console/ ) > >> >> On Mon, Oct 8, 2012 at 5:06 PM, Marco Di Sabatino Di Diodoro >> wrote: >>> Hi >>> >>> I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All >>> AjaxLinks from the console not work. >>> >>>final AjaxLink createLink = new IndicatingAjaxLink("createLink") { >>> >>>private static final long serialVersionUID = >>> -7978723352517770644L; >>> >>>@Override >>>public void onClick(final AjaxRequestTarget target) { >>>editModalWin.setPageCreator(new ModalWindow.PageCreator() { >>> >>>private static final long serialVersionUID = >>> -7834632442532690940L; >>> >>>@Override >>>public Page createPage() { >>>return new >>> EditUserModalPage(Users.this.getPageReference(), editModalWin, new >>> UserTO()); >>>} >>>}); >>> >>>editModalWin.show(target); >>>} >>>}; >>> >>> What am I forgetting? >>> >>> Regards >>> Marco >>> -- >>> >>> Dott. Marco Di Sabatino Di Diodoro >>> Tel. +39 3939065570 >>> >>> Tirasa S.r.l. >>> Viale D'Annunzio 267 - 65127 Pescara >>> Tel +39 0859116307 / FAX +39 085973 >>> http://www.tirasa.net >>> >>> Apache Syncope PPMC Member >>> http://people.apache.org/~mdisabatino >>> >>> >>> >>> >> >> >> >> -- >> Martin Grigorov >> jWeekend >> Training, Consulting, Development >> http://jWeekend.com >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > -- > > Dott. Marco Di Sabatino Di Diodoro > Tel. +39 3939065570 > > Tirasa S.r.l. > Viale D'Annunzio 267 - 65127 Pescara > Tel +39 0859116307 / FAX +39 085973 > http://www.tirasa.net > > Apache Syncope PPMC Member > http://people.apache.org/~mdisabatino > > > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxLink not work
On Oct 8, 2012, at 4:31 PM, Martin Grigorov wrote: > Hi, > > The code looks OK. > What exactly doesn't work ? When I click on the link does nothing. All Links into the console not work. Here you can find source code from console ( http://svn.apache.org/viewvc/incubator/syncope/trunk/console/ ) > > On Mon, Oct 8, 2012 at 5:06 PM, Marco Di Sabatino Di Diodoro > wrote: >> Hi >> >> I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All >> AjaxLinks from the console not work. >> >>final AjaxLink createLink = new IndicatingAjaxLink("createLink") { >> >>private static final long serialVersionUID = >> -7978723352517770644L; >> >>@Override >>public void onClick(final AjaxRequestTarget target) { >>editModalWin.setPageCreator(new ModalWindow.PageCreator() { >> >>private static final long serialVersionUID = >> -7834632442532690940L; >> >>@Override >>public Page createPage() { >>return new >> EditUserModalPage(Users.this.getPageReference(), editModalWin, new UserTO()); >>} >>}); >> >>editModalWin.show(target); >>} >>}; >> >> What am I forgetting? >> >> Regards >> Marco >> -- >> >> Dott. Marco Di Sabatino Di Diodoro >> Tel. +39 3939065570 >> >> Tirasa S.r.l. >> Viale D'Annunzio 267 - 65127 Pescara >> Tel +39 0859116307 / FAX +39 085973 >> http://www.tirasa.net >> >> Apache Syncope PPMC Member >> http://people.apache.org/~mdisabatino >> >> >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino
Re: AjaxLink not work
Hi, The code looks OK. What exactly doesn't work ? On Mon, Oct 8, 2012 at 5:06 PM, Marco Di Sabatino Di Diodoro wrote: > Hi > > I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All > AjaxLinks from the console not work. > > final AjaxLink createLink = new IndicatingAjaxLink("createLink") { > > private static final long serialVersionUID = > -7978723352517770644L; > > @Override > public void onClick(final AjaxRequestTarget target) { > editModalWin.setPageCreator(new ModalWindow.PageCreator() { > > private static final long serialVersionUID = > -7834632442532690940L; > > @Override > public Page createPage() { > return new > EditUserModalPage(Users.this.getPageReference(), editModalWin, new UserTO()); > } > }); > > editModalWin.show(target); > } > }; > > What am I forgetting? > > Regards > Marco > -- > > Dott. Marco Di Sabatino Di Diodoro > Tel. +39 3939065570 > > Tirasa S.r.l. > Viale D'Annunzio 267 - 65127 Pescara > Tel +39 0859116307 / FAX +39 085973 > http://www.tirasa.net > > Apache Syncope PPMC Member > http://people.apache.org/~mdisabatino > > > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxLink not work
Hi I'm upgrading Apache Syncope console from Wicket 1.5.8 to wicket 6.x. All AjaxLinks from the console not work. final AjaxLink createLink = new IndicatingAjaxLink("createLink") { private static final long serialVersionUID = -7978723352517770644L; @Override public void onClick(final AjaxRequestTarget target) { editModalWin.setPageCreator(new ModalWindow.PageCreator() { private static final long serialVersionUID = -7834632442532690940L; @Override public Page createPage() { return new EditUserModalPage(Users.this.getPageReference(), editModalWin, new UserTO()); } }); editModalWin.show(target); } }; What am I forgetting? Regards Marco -- Dott. Marco Di Sabatino Di Diodoro Tel. +39 3939065570 Tirasa S.r.l. Viale D'Annunzio 267 - 65127 Pescara Tel +39 0859116307 / FAX +39 085973 http://www.tirasa.net Apache Syncope PPMC Member http://people.apache.org/~mdisabatino