AbstractAjaxTimerBehaviour sets Transient object to null when same page in opened in new tab
Hi I have a Page on which I am have to execute a long running task when a form is submitted. This is what I do 1. I have a transient FutureTask member variable in the page 2. On submit of the form i create a callable and instantiate the FutureTask 3. I start the AbstractAjaxTimerBehaviour which keeps checking if the FutureTask is done before it can update a panel in the page with the result of the execution. - This works fine when I'm on the same page - Now if I submit the form and while the AbstractAjaxTimerBehaviour is still polling I open the same page *in a new tab* *within the same session* then the reference to the FutureTask in the first page (previous tab) becomes null. I couldn't find any solution to this problem. Any help would be greatly appreciated. Thanks -Lina
Open a Modal Window within a Panel from a FileUpload form
Hi Hi I have a page that has a FileUpload form. Once the file is uploaded successfully onSubmit of the form I need to open a panel in ModalWindow. There is no Ajax event to fire which leaves me searching for ways to open the ModalWindow. I need to open the ModalWindow only on successful upload of the file. W hen I say success page, I mean within the onSubmit method on the same page. Something like this Form Form = new Form(FORM_NAME, model) { private static final long serialVersionUID = 1L; @Override protected void onSubmit() { FileUpload upload = uploadField.getFileUpload(); //open ModalWindow } } Thanks -Lina