You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Peter Ertl (JIRA)" <ji...@apache.org> on 2010/11/16 23:05:14 UTC

[jira] Commented: (WICKET-3157) FilterForms cannot be added to both top and bottom of a DataTable

    [ https://issues.apache.org/jira/browse/WICKET-3157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932673#action_12932673 ] 

Peter Ertl commented on WICKET-3157:
------------------------------------

I don't see a defect in the behavior or the quickstart - things work as expected.

You are using one FilterLocator for two FilterToolbars pointing to the same physical instance of a filter state.

The bottom toolbar overwrites the values of the top toolbar (last wins).

If you want two independent toolbars you need two different filter locators with two different filter states.

In order to sync upper and lower toolbar you have to manually achieve this by linking the two filter states in some way using custom code.

> FilterForms cannot be added to both top and bottom of a DataTable
> -----------------------------------------------------------------
>
>                 Key: WICKET-3157
>                 URL: https://issues.apache.org/jira/browse/WICKET-3157
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.4.13
>         Environment: Apache Tomcat 6.0.29, Java JDK 1.6.0.17
>            Reporter: Adrian Sud
>         Attachments: list-example.rar
>
>
> Because of the way the filter toolbar is set up in Wicket-Extensions 1.4.x, adding two FilterToolbars (through dataTable.addTopToolbar() and dataTable.addBottomToolbar()) does not work properly; the toolbar added last always overwrites any changes to the filter by any other toolbars.
> I am unaware of any workarounds, but this worked in Wicket 1.2.x. I am not certain of any versions between then and now.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.