On Monday, March 19, 2012 8:18:20 PM UTC+1, Stevko wrote: > > I am using <span id="mySpanId"> within my UI Binder ui.xml files > along with the debugId > I also use <span ui:field="mySpan"> to identify dynamic elements > available to the associated View. > > Adding both yields this error message -- Cannot declare id and > ui:field on the same element Element(:26) > Is there a way work around?
Yes, assign it from within your Java code using getElement().setId(...). See http://code.google.com/p/google-web-toolkit/issues/detail?id=4176 You can also use the debugId instead. See http://code.google.com/p/google-web-toolkit/issues/detail?id=4179 See also https://docs.google.com/Doc?docid=0AQcd-Zsy2T-YZG1mZG5jNl84Z3NkMmJuZHo which is an export from the Wave I linked to in comment #7 of the above issue. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bdhh6FVIuyMJ. 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.
