Can't deal with wicket atmosphere

2012-06-09 Thread coincoinfou
I migrate my app from 5 to 6 and everything work fine. However i'm unable to try atmosphere due to network 500 server error Here is my configuration : FilterHolder atmosphere = new FilterHolder(AtmosphereFilter.class); atmosphere.setName(AtmosphereApplication);

Back button is troubling session management...

2012-06-09 Thread kshitiz
Hi, After I log in that application, I am not suppose to see login page of the app when I press back button. Though I am not able to go to login url as I am checking user session in login page and redirects him to home page if the session is present. But, when back button is pressed, that logic

Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread kshitiz
Hi, I am trying to refresh ajax container after firing an event. The code is: *final WebMarkupContainer searchContainer = new WebMarkupContainer( searchContainer); searchContainer.setOutputMarkupId(true);* AjaxFallbackButton ajaxSearchButton =

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread Martin Makundi
Did you look at wicket ajax debugin browser? It usually gives quite good clues about what's missing ... 2012/6/9 kshitiz k.agarw...@gmail.com: Hi, I am trying to refresh ajax container after firing an event. The code is: *final WebMarkupContainer searchContainer = new WebMarkupContainer(    

setHeaders not working in 1.5

2012-06-09 Thread kshitiz
Hi, I want to remove login page from browser cache after user logs in. I am using the code : protected void setHeaders(WebResponse response) { *response.setHeader(Pragma, no-cache); response.setHeader(Expires, 0); response.setHeader(Cache-Control,

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread kshitiz
I have never tried out that beforeI have enabled debug mode but I to debug the ajax part? Can you please tell me ?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-refresh-not-working-in-a-case-while-working-in-similar-other-cases-tp4649794p4649797.html Sent

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread Martin Makundi
Ajax debug is a small hover window visible in browser when you have application configuration in development mode. ** Martin 2012/6/9 kshitiz k.agarw...@gmail.com: I have never tried out that beforeI have enabled debug mode but I to debug the ajax part? Can you please tell me ?? --

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread kshitiz
I got the problem atleast...what is happening that it is using the same search object (where results are being stored and then displayed in container) and not creating the new one for new searches. Actually what I want is when user searches anything, the results are refreshed only. I am storing

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread Martin Makundi
Listview has this parameter reuseitems, if you set it to false it will rebuild when its container is refreshed. 2012/6/9 kshitiz k.agarw...@gmail.com: I got the problem atleast...what is happening that it is using the same search object (where results are being stored and then displayed in

Re: Back button is troubling session management...

2012-06-09 Thread Andrea Del Bene
Hi, where did you pu the logic to check if user has already signed in (onInitialize, onBeforeRender, etc...)? Could you show your code? Hi, After I log in that application, I am not suppose to see login page of the app when I press back button. Though I am not able to go to login url as I am

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread kshitiz
Okk...actually when I analysed more, what I found is that when I enter new value in text field, the event takes the old value only. Even I am now refreshing the form too. Then I found that the field sets its value to old one after getting refreshed. My field is of final type. But that should not

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread Martin Makundi
clearinput can be used with forms when submit is not done but model is changed ** Martin 2012/6/9 kshitiz k.agarw...@gmail.com: Okk...actually when I analysed more, what  I found is that when I enter new value in text field, the event takes the old value only. Even I am now refreshing the

Re: Back button is troubling session management...

2012-06-09 Thread kshitiz
Hi, My code to check user session is: if (UserSession.get().checkUserSession()) { // redirecting user to home page setResponsePage(Home.class, new PageParameters()); } * UserSession is* public class

Re: Back button is troubling session management...

2012-06-09 Thread kshitiz
I used the same logic in onBeforeRender and it is working... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Re-Back-button-is-troubling-session-management-tp4649801p4649805.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Ajax refresh not working in a case .... while working in similar other cases!!!

2012-06-09 Thread kshitiz
I am able to solve this field related problem...just container is not getting refreshed... here is the code, I have modified a bit as per requirement: public Search(String id) { searchContainer.add(searchForm); searchContainer.add(new SearchResultPanel(searchResultPanel,

Re: Panel not getting refreshed...

2012-06-09 Thread Sebastien
Hi, It's to late to have searchResultPanel.setOutputMarkupId(true); in onSubmit() You need to set this before the first rendering, because ajax need it in order to know how to re-redner the panel. Regards, Sebastien. On Sat, Jun 9, 2012 at 9:56 PM, kshitiz k.agarw...@gmail.com wrote: Hi, I

Re: Panel not getting refreshed...

2012-06-09 Thread Sebastien
re-redner re-render On Sat, Jun 9, 2012 at 10:01 PM, Sebastien seb...@gmail.com wrote: Hi, It's to late to have searchResultPanel.setOutputMarkupId(true); in onSubmit() You need to set this before the first rendering, because ajax need it in order to know how to re-redner the panel.