scalagwt/scalagwt-gwt — Issue #28: Support for UiField injection on Scala Files
Author: nbauernfeind
Created: 2012-01-26 14:18:42+00:00
State: open

UIBinder fails to generate code because the fields (by their given name) are not accessible. Brief investigation leads to these possible solutions:

1. Look for the actual field name: ${FIELD_NAME} + "$u0020"
2. Either require or synthesize @BeanProperty on @UIField annotated fields. Then enable injection via setters (i.e. look for field name "set" + ${FIELD_NAME}.)
3. Look for the auto generated setter: ${FIELD_NAME} + "_$eq"

What have you guys been thinking w.r.t. solving this issue?

Also if I set the field name to ${FIELD_NAME} + "$u0020" within the ui.xml file then it complains that it couldn't find a ui:field for my member annotated with @UiField even though I can't seem to find the annotation existing anywhere in the jribble. I'd be happy (for now) if I could find some sort of reasonable work around.

FWIW, UiBinder seems to work if you don't have any UiFields...