Ok, I got the working solution
add(new AbstractAjaxTimerBehavior(Duration.seconds(1)) {
@Override
protected void onTimer(AjaxRequestTarget target) {
System.out.println("---------------> ajax");
stop();
}
});
On Sat, Nov 26, 2011 at 11:50 AM, Paul Szulc <[email protected]> wrote:
> This is going to be a lame question :) but I need help with this one.
>
> I have DialogWindow (from visural-wicket library) that can be opened using
> AjaxRequestTarget, below example that opens that dialog when ajax link is
> clicked
>
> add(new IndicatingAjaxLink("addCostUp") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> addCostDialog.open(target);
> }
> });
>
> Is there a way to open that dialog when page is opened? You know, someone
> is entering a page and dialog pops out? To open that dialog I need
> AjaxRequestTarget. Is there a way to make page request ajax call just right
> after the page was loaded?
>
> Paul Szulc
>
--
Best regards,
Paul Szulc
http://www.paulszulc.com