go top after ajax

2008-12-11 Thread Kamil Hark
Hi, I use AjaxSubmitLink as a submit link for big and long form. In onError method I add to AjaxRequestTarget whole form and some error messages. I'd like to go top after ajax but I don't know how. I tried to do two folowings but it does not work. 1. protected void

backbutton with AjaxFallbackDefaultDataTable

2008-12-02 Thread Kamil Hark
Hi, I have a problem with browser's backbutton and AjaxFallbackDefaultDataTable, I have button that adds new rows into table (I put new objects into table's model and udate table with ajax). when I click some link to other page and after redirect I click browser's backbutton then my table is

How can I instance home page myself

2008-11-27 Thread Kamil Hark
an Application class (and WebApplication) has method Class getHomePage() Why this method returns class instead of Page object? Now I'm limited to use non-argument constructor, I connot pass any dependiences and so on. Are there any posibilities to instance and return Page object? regards

Re: RES: How can I instance home page myself

2008-11-27 Thread Kamil Hark
Yes I know that I can do it through Application but then it is very dificult to test. If I could inject args into constructur like below then it would be much better new MyPage(Foo foo){...} -- View this message in context: