FilteringTable add-on

Hi,

If you change the FilteringTable to a normal Table can you still make this issue happen? Would be nice to know whether it’s an issue in the Table itself or a result of some of the modifications I have made.

It could also be useful if you could do this with the debug window visible, and let me know if there are any errors (e.g. an exception) shown there.

-Tepi

Hi,
I’ve a problem with filters rendering.

I’ve a BeanItemContainer for a FilterTable in which I’ve added some nested container properties.

The filter bar is correctly showing but only for the “original fields” of the table, not for the nested properties.

Is it a bug or I’ve missing something to do?

Thanks,

Matteo

Hello Tepi, I will try to change it to Table. For now I just uploaded the sample app to:
http://146.255.34.72/scrolling
so that you can take a look on it.
You have higher probability of getting this problem after clicking “Refresh table” button and then scrolling.
I will let you know it the problem remains there even with Table component.

Hi,

The nested properties are not currently supported at all. I’ll add this to my list of todo’s for this addon but I really cannot promise any schedule for it. If you decide to not wait and implement it yourself, please post a patch for the addon :)

-Tepi

I’ve tried to simulate the problem with debug window. I cannot see any exception in debug window (see
http://dodek.sk/share/scrolling2.log
). But to be honest, I’m not sure what to look for.
Screenshot:
http://dodek.sk/share/scrolling2.png

Sorry about that - the exceptions will be in red text in the debug window - you will surely notice :). Can’t see any exceptions in your log paste though.

I did try your application with Firefox 15.0.1 and could not reproduce this after 10-15 counts of refresh and random scrolling. Does it only happen on specific browser and how many tries does it usually take to happen?

-Tepi

Tepi, it looks its quite random. I created screencast where you can see how I reproduced it in google chrome. But I was able to reproduce it also in Firefox. On two different laptops. (if you are not able to play this video, let me know, I will try to convert it to different format).

http://dodek.sk/share/scrolling-chrome.avi

In this video I used mouse to drag scrollbar, but was not able to reproduce the problem. Then I used mousewheel to scroll, and you can see the result.
(EDIT)
Here is video with firefox:
dodek.sk/share/scrolling-firefox.avi

Here I didn’t use mouse wheel, just scrollbar.

Ok, I get it now too - just have to scroll really fast, at least on my computer.

On the issue itself - I don’t think this has anything to do with the FilteringTable add-on, so your best bet would be to swap it out for a common Table and then provide a (simplified) test case to the ticket you already mentioned. Please let me know how if the problem does not appear with the common Table component.

-Tepi

You were right, the same problem is with vaadin Table component. I added new comment to that ticket:
http://dev.vaadin.com/ticket/6160#comment:3

Hi,

First of all thanks for very useful add-on.

Nevertheless found an issue with layouts. Say if filtersbar is not visible there is a scroll bar in the bottom of the table that allows to scroll to the right, but when filters set to visible this scrollbar disappears. Can attach screenshots if this has never been seen before.

Thanks

Cool!
Is it possible to use

public String getDateFormat(Object propertyId)

in FilterDecorator insted of DateFormat (as return type), in order to set the date format to the DateFields?

How can I change the date format of DateFields in DateFilterPopup?

Hello!

At first I want to thank you for the great plugin!

I use the newest Version 0.6.1 with Vaadin 6.8.3 and get some NotSerializableExceptions.

Okt 16, 2012 2:27:47 PM org.apache.catalina.session.StandardManager startInternal
Schwerwiegend: Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.tepi.filtertable.FilterFieldGenerator

Do you already know the problem and perhaps how it could be solved?
I have no issues in my program, but I think that there should not be such an exception at all…

Bye!

Hi Teppo,

Thanks for the addon, it works great, but there is an issue when using it with maven.
The jar file of this plugin is compliled without debug option, so you can’t use debugger in the compiled classes. Of course, it is not critical, but it would be much better if you turn on debug option in future versions. Thanks

Hello. I am using filtering table in a project. Really great add-on as many people have already mentioned. I implemented my own filter popup with multiple checkboxes.
So filtering is done by checkboxes value changes. At first I did not used setPopupVisible(false) as it is done in DateFilterPopUp on each value change. On table with small amount of data, when I clicked on checkboxes everything worked fine and pop up was visible, but with large amount of data in the table pop up just disappears(!) and when you click on popup nothing happens(!). Interesting, that if you just refresh page in the browser, pop up is shown(!)/ So I`ve tried setPopupVisible(false) and it works fine, but it is not comfortable if you want to “click” on a lot of checkboxes (you need to click on pop up each time as it is not visible). I guess that this problem could happen with DateFilterPopUp if there had been no setPopupVisible(false) on “Set” function.
Maybe someone has ideas what can be the root of this problem and how this can be fixed?
Thanks in advance.

The DateFields in the DateFilterPopup use the application’s locale setting. So you can just call setLocale(whatever) on your application instance and that will be used. By default this is set from the browser preferences of the user.

-tepi

Hi,

this exception is thrown because FilterFieldGenerator does not implement Serializable. I’ll have that class implement Serializable in the next release. Thanks for noticing!

-tepi

Hi,

a fix for this issue was provided by ‘vimukthi-git’, thank you very much! I’ll include the fix in the next release.

-tepi

Hi,

I can’t immediately say what could be the reason for this. I’ll try to look into it when I have some more time. In the meantime, could you consider using a button in your checkbox-popup like the one used in the datefilterpopup? This should eliminate the issue, of course it’s probably not as nice a solution if the user has to click Ok.

-tepi

We are using FilterTable in our project. We went from 0.5.3 to 0.6.1. One thing that happened is that DateFilter() is now gone. What do we use in place of it?

Hi,

the DateFilter was remove because it was pointed out to me that it’s actually useless and causes more problems than it solves :) You should use the built in filters of Vaadin instead:

com.vaadin.data.util.filter.Between
com.vaadin.data.util.filter.Compare.GreaterOrEqual
com.vaadin.data.util.filter.Compare.LessOrEqual

For an example on how to use these, please see the FilterFieldGenerator.java lines 96 - 104 in the latest FilteringTable version.

Hope you’ll manage to use the built-in filters :)

-tepi