Hello jchappelle.
Yes, I'm adding the WebMarkupContainer to the AjaxRequestTarget, but I'm
going to look that method you mentioned, maybe the solution is there.
Thanks.
jchappelle wrote:
>
> The ListView class has a method called removeLink that returns a Link that
> will remove the item from the list. I have never used it but I just
> figured I would point it out to you. Maybe looking at the source code of
> that method could help.
>
> Also, make sure you are adding your WebMarkupContainer to the
> AjaxRequestTarget. Otherwise the Ajax call will not update that section of
> your markup.
>
> Josh
>
>
> alesp wrote:
>>
>> Hello!
>> Ok, this is the problem: I have the following wicket hierarchy:
>>
>> Panel
>> |
>> --> Form
>> |
>> --> WebMarkupContainer (setOutputMarkupId(true))
>> | |
>> | --> ListView (with a
>> LoadableDetachableModel)
>> | |
>> | --> { populateItem {
>> AjaxSubmitLink (to "delete" an element. Updates the WebMarkupContainer) }
>> }
>> --> AutoCompleteTextField
>> |
>> --> AjaxSubmitLink (to "add" an element)
>>
>> The problem is that the "add" link (the AjaxSubmitLink at the bottom of
>> the diagram) is working fine, but the "delete" is not, and the code is
>> pretty the same (calling different methods). When I say it's not working
>> I mean that I click the "delete" link and nothing happens (internally the
>> element is removed properly but the page doesn't refresh the changes).
>> The "add" link works, I press "add" and the list is refreshed with the
>> new element.
>> Trying to find out what's happening I copied the "onSubmit" method of the
>> "delete" AjaxSubmitLink to the "add" link and again the list was properly
>> refreshed, now with a delete action. So, I think that the problem is
>> related to the location of the links in the hierarchy and something that
>> I'm missing there.
>> Any idea?
>>
>
>
--
View this message in context:
http://www.nabble.com/AjaxSubmitLink-refreshing-problem-tp17801832p17802573.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]