How to work with Converter object in Vaadin 7?

Hi,
I am developing an application where I am displaying a set of data in a vaadin table, from MySQL database. The problem is that, there are 2 Date fields which are too long in their default formate. They display the date along with the time span. I want to formate them to a simple formate as “dd-mm-yyyy”. But I dont know how to it. I heard that it can be done using Converter. But when I try to use a Converter I found so many other thing like PRESENTATION, MODEL and so on.

In vaadin 6 this could be achieved by simply calling a method as formatPropertyValue(), but its not available in vaadin 7.

final BeanItemContainer cardBeanItemContainer = new BeanItemContainer(Card.class);
cardBeanItemContainer.addAll(cardService.findByMember(member.getId()));

final Table tblCards=new Table();
tblCards.setSelectable(true);
tblCards.setWidth(“95%”);
//Fill the data
tblCards.setContainerDataSource(cardBeanItemContainer);
tblCards.setVisibleColumns(new Object{“cardType”,“issueDate”,“expiryDate”,“status”});

Converter looks too complex, or I didnt understand it properly.
Can anyone write sample code specifically to formate a date value in the data source which is assigned to a table?

Thanks,
Kishor

Not sure I understand. It seems to me from our port that Table.formatPropertyValue() is there just fine. The only change we had to make to get rid of a compiler warning was for the third param to be of type Property<?> instead of just Property. But it otherwise formats properties for us and doesn’t appear to be deprecated or the like.

Thank you very much for the reply David, after reading your reply-post I checked once again and still couldn’t get that method. I am using Eclipse IDE and it was displaying findAncestor(), firstItemId(), focus() etc., but not formatPropertyValue(). I had to type it explicitly. May be there was something wrong with my IDE or I forgot to enable some settings. Also I posted another question regarding this in forum: [url=https://vaadin.com/old-forum/-/message_boards/view_message/3286128]

[/url] and someone replied that in Vaadin 7 we use Converter to achieve this thing. That’s why earlier I thought that it’s not available.

Anyway, my app is working fine now and thanks again,
Kishor