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

[jira] Issue Comment Edited: (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=12932683#action_12932683 ] 

Adrian Sud edited comment on WICKET-3157 at 11/16/10 5:15 PM:
--------------------------------------------------------------

How would using two different filter states work?

If you have a datasource which uses two different filter states, how do you figure out which one to use when actually fetching data, i.e. which one was intended to be submitted by the user?

And given that in 1.4.x, I must add elements with wicket:ids of "focus-tracker" and "focus-restore", is it even possible to do these separately, or could they have separate states and yet share the focus elements?

It may be that I have misunderstood something fundamental, but this used to work in wicket 1.2.x (we upgraded from that version to 1.4 directly, so not sure about 1.3.x)



      was (Author: adrian@pigsflew.com):
    How would using two different filter states work?

If you have a datasource which uses two filter states with two different filter states, how do you figure out which one to use when actually fetching data, i.e. which one was intended to be submitted by the user?

And given that in 1.4.x, I must add elements with wicket:ids of "focus-tracker" and "focus-restore", is it even possible to do these separately, or could they have separate states and yet share the focus elements?

It may be that I have misunderstood something fundamental, but this used to work in wicket 1.2.x (we upgraded from that version to 1.4 directly, so not sure about 1.3.x)


  
> 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
>            Assignee: Peter Ertl
>         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.