Hello everyone.

In our app, we have the requirement that each inputs would have a
fixed Html ID. So we always write
"anInput.getElement().setId("myId")", that's boring and we are used to
forget it.
So I have tried to write custom widgets where we can call "setId" from
code or UiBinder. So that we can write :
     <html:Input id="field" type="text" size="80" />

But GWT complaints about the "Id" attribute :
    10:10:30.271 [WARN] [Sample] Deprecated use of id="field" for
field name. Please switch to gwt:field="field" instead. This will soon
be a compile error! Element <html:Input id='field' size='80'
type='text'> (:16)

Now my idea is to automatically call "setId" with the value of
"ui:field". But I don't know if there is a way to retrieve this value.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to