how to specify the id to a <span> element with a ui:field using UI binder?
238 views
Skip to first unread message
Stevko
unread,
Mar 19, 2012, 3:18:20 PM3/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
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?
-sowdri-
unread,
Mar 20, 2012, 1:51:47 AM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Did you try styleName tag?? in case 'class' would do..
Thomas Broyer
unread,
Mar 20, 2012, 7:37:35 AM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Yes, assign it from within your Java code using getElement().setId(...).