I also cannot get this code from GWT documentation to work.
I have a code similar to below : (multiple checked everything over and
over)
I have included ui:with at the toop of uiBinder.
this part, (basically referring to css styles defined in ClientBundle
through the following syntax within the UiBinder template,
does not work, is highlighted as red in my IDE, and I get exception when I
run my app.
<div class='{res.style.mainBlock}'>
<g:InlineHyperlink text="Home" targetHistoryToken="home"
styleName='{res.mystyle}'/>
I also tried styleName='{style.res.mystyle}', but to no avail.
however <g:Image resource="{res.myimage}" />
displays the image.
do you know what I might be doing wrong ? : (
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:with field='res' type='com.my.app.widgets.logoname.Resources'/>
<g:HTMLPanel>
<g:Image resource='{res.logo}'/>
<div class='{res.style.mainBlock}'>
<div class='{res.style.userPictureSprite}'/>
<div>
Well hello there
<span class='{res.style.nameSpan}' ui:field='nameSpan'/>
</div>
</div>
</g:HTMLPanel>
</ui:UiBinder>
--
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.