You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Björn-Peter Tietjens <bj...@web.de> on 2008/12/29 16:15:24 UTC

AjaxFallbackDefaultDataTable problem

Hi there,


I would need some help on the AjaxFallbackDefaultDataTable please.
I am using this AjaxFallbackDefaultDataTable to display entries from a 
database using hibernate and a SortableDataProvider. I inserted a Action 
column to delete entries. My ActionPanel adds a link and overwrites its 
onClick event, deleting the row from the database, BUT now the table on 
my page does not update until i completely reload the whole page. I am 
doing a ajaxFallbackDefaultDataTable.modelChanged();
 but that doesnt do the job either. What do I need to ?

Thank you for your help!
Cheers Björn

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxFallbackDefaultDataTable problem

Posted by Jason Rosenberg <jb...@gmail.com>.
Hello,

I'm having the same issue, and so far haven't figured it out...

I am doing this, within an ajax click handler:

                    mySortableDataProvider.updateDataList(updatedPersons);
                    myAjaxFallbackDefaultDataTable.modelChanged();
                    target.addComponent(myAjaxFallbackDefaultDataTable);

I am updating my data provider with an updated list, but I'm not seeing the
table refresh...

Can you post some code for what is working for you?

Jason




Björn-Peter Tietjens wrote:
> 
> Hi
> thanx for your help.
> I just forgot to update the datasource for the table before calling 
> "modelChanged()"
> Cheers B
> 
> James Carman schrieb:
>> Are you using an AjaxLink to do the delete?  If so, are you adding the
>> table to the ajax request target, so that it gets updated?
>>
>> On Mon, Dec 29, 2008 at 10:15 AM, Björn-Peter Tietjens <bj...@web.de>
>> wrote:
>>   
>>> Hi there,
>>>
>>>
>>> I would need some help on the AjaxFallbackDefaultDataTable please.
>>> I am using this AjaxFallbackDefaultDataTable to display entries from a
>>> database using hibernate and a SortableDataProvider. I inserted a Action
>>> column to delete entries. My ActionPanel adds a link and overwrites its
>>> onClick event, deleting the row from the database, BUT now the table on
>>> my
>>> page does not update until i completely reload the whole page. I am
>>> doing a
>>> ajaxFallbackDefaultDataTable.modelChanged();
>>> but that doesnt do the job either. What do I need to ?
>>>
>>> Thank you for your help!
>>> Cheers Björn
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable-problem-tp21204443p22556499.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxFallbackDefaultDataTable problem

Posted by Björn Tietjens <bj...@web.de>.
Hi
thanx for your help.
I just forgot to update the datasource for the table before calling 
"modelChanged()"
Cheers B

James Carman schrieb:
> Are you using an AjaxLink to do the delete?  If so, are you adding the
> table to the ajax request target, so that it gets updated?
>
> On Mon, Dec 29, 2008 at 10:15 AM, Björn-Peter Tietjens <bj...@web.de> wrote:
>   
>> Hi there,
>>
>>
>> I would need some help on the AjaxFallbackDefaultDataTable please.
>> I am using this AjaxFallbackDefaultDataTable to display entries from a
>> database using hibernate and a SortableDataProvider. I inserted a Action
>> column to delete entries. My ActionPanel adds a link and overwrites its
>> onClick event, deleting the row from the database, BUT now the table on my
>> page does not update until i completely reload the whole page. I am doing a
>> ajaxFallbackDefaultDataTable.modelChanged();
>> but that doesnt do the job either. What do I need to ?
>>
>> Thank you for your help!
>> Cheers Björn
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxFallbackDefaultDataTable problem

Posted by James Carman <jc...@carmanconsulting.com>.
Are you using an AjaxLink to do the delete?  If so, are you adding the
table to the ajax request target, so that it gets updated?

On Mon, Dec 29, 2008 at 10:15 AM, Björn-Peter Tietjens <bj...@web.de> wrote:
> Hi there,
>
>
> I would need some help on the AjaxFallbackDefaultDataTable please.
> I am using this AjaxFallbackDefaultDataTable to display entries from a
> database using hibernate and a SortableDataProvider. I inserted a Action
> column to delete entries. My ActionPanel adds a link and overwrites its
> onClick event, deleting the row from the database, BUT now the table on my
> page does not update until i completely reload the whole page. I am doing a
> ajaxFallbackDefaultDataTable.modelChanged();
> but that doesnt do the job either. What do I need to ?
>
> Thank you for your help!
> Cheers Björn
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org