Can you point me to an example or explain a little more about this....

Thanks 
Vishy

Martijn Dashorst wrote:
> 
> iirc using a page instead of a panel works better and has less
> bugs/quirks.
> 
> Martijn
> 
> On Fri, Aug 1, 2008 at 10:22 AM, steviezz <[EMAIL PROTECTED]>
> wrote:
>>
>> As you can see from some of my own topics, I'm no Wicket expert.
>>
>> I did have the same problem, and solved it by simply setting the content
>> for
>> the ModalWindow panel inside the onClick of the AjaxLink that triggers
>> it.
>> So, each time you invoke the ModalWindow, it has new content.
>>
>> Something like:
>>
>>        add(new AjaxLink("showModal") {
>>            public void onClick(AjaxRequestTarget target) {
>>
>>                // set or reset modal content here
>>                    modal.setContent(new
>> ModalPanel(modal.getContentId()));
>>
>>                modal.show(target);
>>            }
>>        });
>>
>> Of course, there may be a better way.
>>
>> Steve
>>
>>
>>
>> vishy_sb wrote:
>>>
>>> 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-tp18745307p18770147.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]
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> ---------------------------------------------------------------------
> 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-tp18745307p18786997.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