Re: FilterForm and Ajax

2017-04-18 Thread Maxim Solodovnik
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, Илья Нарыжный  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 <
> reier...@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, Илья Нарыжный  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


Wicket7 - How to replace the getWicketEventHandler()

2017-04-18 Thread durairaj t
How to replace the below code in wicket7?


*Below code from wicket 1.5:*

protected CharSequence getWicketEventHandler()
{
return generateCallbackScript(new
AppendingStringBuffer("wicketAjaxPost('").append(
getCallbackUrl()).append(
"', wicketSerialize(Wicket.$('" + getComponent().getMarkupId() + "'))"));
}


Re: FilterForm and Ajax

2017-04-18 Thread Илья Нарыжный
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 <
reier...@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, Илья Нарыжный  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: How to have a RenderedDynamicImageResource with transparent background?

2017-04-18 Thread Joseph Fan
Hi Reinhard,

I have met the same problem with you in your post in 2009 , I want to
know how you solved this problems. 
I use the following statements to make the image looks transparent. but
unfortunately, the background is solid black, and hide the other background
image. 

add(new Image("dynamic", new RenderedDynamicImageResource(100, 100) {
@Override
protected boolean render(Graphics2D graphics, 
Attributes attrs) {
// TODO Auto-generated method stub
//setType(BufferedImage.TYPE_4BYTE_ABGR);

graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR,
0.0f));
Rectangle2D.Double rect = new 
Rectangle2D.Double(0, 0, 100, 100);
graphics.fill(rect);
graphics.setColor(Color.RED);
graphics.drawString("测试", 10, 10);
return true;
}
}));

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-have-a-RenderedDynamicImageResource-with-transparent-background-tp1843737p4677720.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: FilterForm and Ajax

2017-04-18 Thread Ernesto Reinaldo Barreiro
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, Илья Нарыжный  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