You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Илья Нарыжный <ph...@ydn.ru> on 2017/04/17 18:04:43 UTC
FilterForm and Ajax
Guys,
Is there any good way (approved solution from wicket dev team) how to make
datatable filtering AJAX enabled?
Currently, if you enter filter criterias in FilterForm and click Enter - it
will reload full page instead of refreshing just a table through Ajax.
Thanks,
Ilia
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform
Re: FilterForm and Ajax
Posted by Maxim Solodovnik <so...@gmail.com>.
Hello Ilia,
as I can see from [1] filter form is a simple extention of form
In case you need it to be submitted via Ajax just add ajax submit component
to it (like AjaxButton [2])
works for me :)
[1]
https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/filter/FilterForm.java
[2]
https://github.com/apache/openmeetings/blob/3.2.x/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/PagedEntityListPanel.java#L54
On Wed, Apr 19, 2017 at 4:27 AM, Илья Нарыжный <ph...@ydn.ru> wrote:
> Ernesto,
>
> We do not use AjaxFallbackDefaultDataTable, but similiar inclusion of
> toolbars inside:
>
> AjaxFallbackDefaultDataTable:
> https://github.com/apache/wicket/blob/WICKET-5909-7.x/
> wicket-extensions/src/main/java/org/apache/wicket/
> extensions/ajax/markup/html/repeater/data/table/
> AjaxFallbackDefaultDataTable.java#L72-L76
>
>
> OrienteerDataTable:
> https://github.com/OrienteerBAP/Orienteer/blob/master/orienteer-core/src/
> main/java/org/orienteer/core/component/table/OrienteerDataTable.java#L77-
> L84
>
> And even according to Wicket code: I can't find good place where AJAX
> submition of fitler's data is implemented.
>
> Thanks,
>
> Ilia
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
> On Tue, Apr 18, 2017 at 12:24 AM, Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
> > Hi Ilia,
> >
> > IMHO your question is a bit vague: what components are you using? Do you
> > use AjaxFallbackDefaultDataTable?
> >
> > On Mon, Apr 17, 2017 at 8:04 PM, Илья Нарыжный <ph...@ydn.ru> wrote:
> >
> > > Guys,
> > >
> > > Is there any good way (approved solution from wicket dev team) how to
> > make
> > > datatable filtering AJAX enabled?
> > > Currently, if you enter filter criterias in FilterForm and click Enter
> -
> > it
> > > will reload full page instead of refreshing just a table through Ajax.
> > >
> > > Thanks,
> > >
> > > Ilia
> > > ---------------------------------------------
> > > Orienteer(http://orienteer.org) - open source Business Application
> > > Platform
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
--
WBR
Maxim aka solomax
Re: FilterForm and Ajax
Posted by Илья Нарыжный <ph...@ydn.ru>.
Ernesto,
We do not use AjaxFallbackDefaultDataTable, but similiar inclusion of
toolbars inside:
AjaxFallbackDefaultDataTable:
https://github.com/apache/wicket/blob/WICKET-5909-7.x/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackDefaultDataTable.java#L72-L76
OrienteerDataTable:
https://github.com/OrienteerBAP/Orienteer/blob/master/orienteer-core/src/main/java/org/orienteer/core/component/table/OrienteerDataTable.java#L77-L84
And even according to Wicket code: I can't find good place where AJAX
submition of fitler's data is implemented.
Thanks,
Ilia
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform
On Tue, Apr 18, 2017 at 12:24 AM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:
> Hi Ilia,
>
> IMHO your question is a bit vague: what components are you using? Do you
> use AjaxFallbackDefaultDataTable?
>
> On Mon, Apr 17, 2017 at 8:04 PM, Илья Нарыжный <ph...@ydn.ru> wrote:
>
> > Guys,
> >
> > Is there any good way (approved solution from wicket dev team) how to
> make
> > datatable filtering AJAX enabled?
> > Currently, if you enter filter criterias in FilterForm and click Enter -
> it
> > will reload full page instead of refreshing just a table through Ajax.
> >
> > Thanks,
> >
> > Ilia
> > ---------------------------------------------
> > Orienteer(http://orienteer.org) - open source Business Application
> > Platform
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>
Re: FilterForm and Ajax
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi Ilia,
IMHO your question is a bit vague: what components are you using? Do you
use AjaxFallbackDefaultDataTable?
On Mon, Apr 17, 2017 at 8:04 PM, Илья Нарыжный <ph...@ydn.ru> wrote:
> Guys,
>
> Is there any good way (approved solution from wicket dev team) how to make
> datatable filtering AJAX enabled?
> Currently, if you enter filter criterias in FilterForm and click Enter - it
> will reload full page instead of refreshing just a table through Ajax.
>
> Thanks,
>
> Ilia
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
--
Regards - Ernesto Reinaldo Barreiro