Resulting error: Not allowed in an HTML context: <g:Image resource='{res.myIcon}'>
So how can I have an icon in menuitem?
Honza Rames
unread,
May 13, 2013, 5:58:00 AM5/13/13
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
Hi,
I came across the same problem, I had to create a subclass of MenuItem which sets MenuItem's setHTML and gives it a built up image + text HTML string. I used ClippedImageImpl to create the image HTML.
Andrea Boscolo
unread,
May 13, 2013, 7:15:28 AM5/13/13
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
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
Yep, this is a nice way to do this as well but if you want to use UiBinder with <ui:with ... /> having the MenuItem subclassed is much more convenient because then I can set ImageResource directly from the ClientBundle.