Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin Designer, mid-april status

Marc Englund
7 years ago Apr 17, 2015 4:19pm
Ben Lewis
7 years ago Apr 21, 2015 1:58pm

Hi Marc,

Really enjoying the new designer, just cracked it open to have a look today - some nice progress there - well done.

I'm noticing an issue with databinding.  This might not be a designer issue per-se - but I'm assuming most users will hit this issue.

The Story:
With binders previously, a layout with a member field, say "notesField" would be bound to an item propertyId called "notes" automatically.  You could override this with @PropertyId annotation.

I've used annotations throughout my application just to be clear, but we can't do this with designer properties - yet? xD

The Issue:
The layout specified via HTML (through the designer) and loaded into the application is not resolving member names to property names as expected.  My understanding is that findPropertyId(memberField) inside FieldGroup (line 1008) should resolve a memberField of "notesField" and return "notes" - which is the correct propertyId based on previous convention.

In my app, this method is returning null.

Extract Of Logs (memberField vs return string)
MyDebugFieldGroup Searching For PropertyId For: notesField - found: null

The Work Around:
However, if I change the field in the designer to be just notes instead of notesField, it resolves correctly.
MyDebugFieldGroup Searching For PropertyId For: notes - found: notes

The method also returns correctly if I set a @PropertyId annotation in the design java file.  I know you're not supposed to do this, it was just for testing.

So is this a bug with this method? Or just a change in convention since I don't know when and I never noticed due to always setting @PropertyId.

Thanks for your help.  Awesome work on the new tool - very very helpful for me already.

 

Ben Lewis
7 years ago Apr 21, 2015 2:01pm
Marc Englund
7 years ago Apr 23, 2015 12:01pm
Team Clack
7 years ago Apr 23, 2015 11:57pm
Ben Lewis
7 years ago Apr 28, 2015 1:34am
Scott Duensing
7 years ago Apr 28, 2015 8:52pm
Marcus Hellberg
7 years ago Apr 28, 2015 9:20pm
Ying Li
7 years ago May 08, 2015 6:30pm
Ying Li
7 years ago May 09, 2015 4:59pm
Dave Nebinger
7 years ago May 13, 2015 4:39am
Marc Englund
7 years ago May 26, 2015 6:38am

Hi all,

A new version has just been published!

Please try it out - especially if you had problems with the last one - and please let us know how it works for you :-)

Best Regards,
Marc

Ying Li
7 years ago May 26, 2015 3:17pm
John Ahlroos
7 years ago May 27, 2015 6:31am
Ying Li
7 years ago May 27, 2015 3:27pm
Ying Li
7 years ago May 27, 2015 4:40pm
Marc Englund
7 years ago May 28, 2015 8:09am
Marc Englund
7 years ago May 28, 2015 8:20am
Ying Li
7 years ago May 28, 2015 3:12pm
Ying Li
7 years ago May 28, 2015 3:15pm
Celeste Ormaechea
7 years ago May 28, 2015 7:35pm
Ying Li
7 years ago May 29, 2015 5:05pm
Ying Li
7 years ago May 29, 2015 5:08pm
Ying Li
7 years ago May 30, 2015 4:21pm
Ying Li
7 years ago May 31, 2015 4:28pm
Marc Englund
7 years ago Jun 01, 2015 9:06am
Celeste Ormaechea
7 years ago Jun 01, 2015 12:47pm
Marc Englund
7 years ago Jun 01, 2015 1:33pm
Ying Li
7 years ago Jun 01, 2015 4:47pm
Celeste Ormaechea
7 years ago Jun 01, 2015 7:37pm
John Ahlroos
7 years ago Jun 02, 2015 5:01am
Celeste Ormaechea
7 years ago Jun 02, 2015 5:57pm
Celeste Ormaechea
7 years ago Jun 02, 2015 7:46pm
John Ahlroos
7 years ago Jun 03, 2015 5:46am
Celeste Ormaechea
7 years ago Jun 03, 2015 1:46pm
Marc Englund
7 years ago Jun 03, 2015 1:59pm
Celeste Ormaechea
7 years ago Jun 04, 2015 6:53pm
Ben Lewis
7 years ago Jun 05, 2015 12:47am
Ben Lewis
7 years ago Jun 05, 2015 2:55am
Ying Li
7 years ago Jun 07, 2015 6:28am