Menu

#93 Auto-completion for databinding

open
nobody
Editor (28)
5
2014-08-21
2009-09-28
No

>> i am missing code completion for databinding @{object.property}.
>> is it planned to sopport this?

I confirm with the user flyinfish, this is my personal nr. 1 feature request. I don't like unchecked xml-content.

But i'm afraid that it is not possible for the Studio to find all objects - i.e. registered by a variable resolver or with extra code in the composer.

Here my advice:
Add import-tags to zul.

i.e.
<import id="model" api="org.sourceforge.personService"/>
or
<import id="model.person" api="org.sourceforge.Person"/> or <@import...
..
<label value="@{model.person.firstName}"/>
...
This would help Studio to check the correct values for person.
This variant is for the studio only, the next step could be processing at runtime:

<import id="model.person" api="org.sourceforge.Person" check="true"/>
...
The databinder has to check that person is typesafe org.sourceforge.Person.

Just some suggestions - any other way is also welcome ;-)

Forum-Thread:
http://www.zkoss.org/forum/index.zul#path%3DlistComment%3BdiscussionId%3D9709%3BcategoryId%3D18%3B

Discussion


Log in to post a comment.