The Modal Window contains a Panel. The picture shows how the window looks
like when I try to search some thing the results are populated in the List
as shown. All the rows which are selected will be added to another list on
the main page when the apply button is pressed.

http://www.nabble.com/file/p18766249/modalwindow.jpeg 

Now if I want to try to perform another search the Modal window still shows
the previous list. 

/// Java code for onSubmit() for the apply button (AjaxFallBackButton)  is
shown below

applyButton = new AjaxFallbackButton("applyButton", form) {


                        @Override
                        protected void onSubmit(AjaxRequestTarget target, Form 
fom) {
                                for(int i = 0; i<accountLimitList.size(); i++){
                                        ClearingAccountLimit accLimit =
(ClearingAccountLimit)accountLimitList.get(i);
                                        if(accLimit.isActive()){
                                                
selectedInstruments.add(accLimit);
                                                
                                        }
                                        
                                }
                                onCancel(target);
                        }

                };
                form.add(applyButton);

Let me know if you need some more info.

Thanks in advance
vishy


Matej Knopp-2 wrote:
> 
> You need to show some code.
> 
> -Matej
> 
> On Fri, Aug 1, 2008 at 1:33 AM, vishy_sb <[EMAIL PROTECTED]>
> wrote:
>>
>> Is there anyone who has any clue about how this has to be done???????????
>>
>>
>>
>>
>> vishy_sb wrote:
>>>
>>> Hi all,
>>>
>>> I have Modal Window which contains a panel. Inside the panel I am trying
>>> to perform a search and the results of the search are populating inside
>>> a
>>> ListView. There is an apply button which applies the list on the main
>>> page
>>> and closes the modal window. However when I want to do another search
>>> and
>>> bring up the Modal window the previous List is still present in it. I
>>> think that when the Modal window is closed it just becomes invisible and
>>> is not closing actually and thats why this is happening. But I was just
>>> wondering if there is a way so as to refresh the (search)form or the
>>> panel
>>> whenever it is loaded inside the Modal window.
>>>
>>> Any kind of help will be appreciated.
>>>
>>> Thanks,
>>> vishy
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Refreshing-a-form-inside-a-Modal-Window-tp18745307p18765669.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Refreshing-a-form-inside-a-Modal-Window-tp18745307p18766249.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to