Read Only Fields show a the text box still in Valo

I saw those cool Edit/View demos with Vaadin where the Text Boxes disappear with Read Only Set. When I try it though I end up with the boxes still present and greyed out. Is there some sort of trick to doing it? Does it not work with Valo?

The code is pretty straight forward.

beanFieldGroup.setReadOnly(true); I also have it set directly on the fields using designer.

Try adding stylename ‘borderless’.