It is AjaxFallbackDefaultDataTable from wicket-extensions 1.4-SNAPSHOT.
Table refreshes fully with toolbar inside it, table has id of course.
NavigationToolbar (base for AjaxNavigationToolbar) seems to have
@Override
protected void onBeforeRender()
{
setVisible(table.getPageCount() > 1);
super.onBeforeRender();
}
But I think it will never fire after it becomes invisible.
On Mon, Mar 16, 2009 at 4:36 PM, Linda van der Pal
<[email protected]> wrote:
> Hmm, is the topbar a separate component? If so you'll simply have to add it
> to the target as well.
>
> Anton Veretennikov wrote:
>>
>> Thank you, Linda.
>> I don't hide it. It hides itself. I suppose it must show itself again
>> if rowsCount > rowsPerPage.
>>
>> -- Tony.
>>
>> On Mon, Mar 16, 2009 at 3:51 PM, Linda van der Pal
>> <[email protected]> wrote:
>>
>>>
>>> When you hide the top bar, do you also set setOutputMarkupPlaceholderTag
>>> to
>>> true? (If not, the Ajax-code can't find the component anymore.)
>>>
>>> Linda
>>>
>>> Anton Veretennikov wrote:
>>>
>>>>
>>>> Good day!
>>>>
>>>> My impression about AjaxFallbackDefaultDataTable is - fantastic!
>>>> Thank you, Igor!
>>>>
>>>> I'm implementing small Ajax panel that changes amount of rows shown.
>>>> It looks like standart "20 40 60 80 ..."
>>>> Everything is working but:
>>>> Once top bar with navigation "<< < 1 2 3 4 > >>" hides (when amount of
>>>> rows is less then rowsPerPage) it never shows itself again.
>>>> What I do in a AjaxLink onClick is:
>>>>
>>>> if (dataTable != null) {
>>>> dataTable.setRowsPerPage(getCurrentCount());
>>>> target.addComponent(dataTable);
>>>> }
>>>>
>>>> What I need to do to inform topbar about changes in rows?
>>>>
>>>>
>>>> -- Tony
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database:
>>>> 270.11.15/2003 - Release Date: 03/15/09 14:07:00
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com Version: 8.5.278 / Virus Database:
>> 270.11.15/2003 - Release Date: 03/15/09 14:07:00
>>
>>
>
>
> ---------------------------------------------------------------------
> 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]