GWT uibinder: could not recognized image from dependent jar

104 views
Skip to first unread message

July

unread,
Jun 27, 2011, 5:51:15 AM6/27/11
to google-we...@googlegroups.com

I have a GWT project(called A), i'd like to package it as a jar and reuse it in my another project(called B). Everything almost fine except that my another project seem don't know the in Uibinder:

in project A:

<ui:image field="createButton" src="../../style/images/createButton.png" />
...
<g:Button styleName='{style.createButton}' ui:field='newButton'>Create</g:Button>

When project B started and init this uibinder, error occurs:

          [ERROR] [project] - Resource ../../style/images/createButton.png

not found. Is the name specified as Class.getResource() would expect?

Anyone could help me with this? Many thanks!


this problem also posted in stackoverflow:

http://stackoverflow.com/questions/6491061/gwt-uibinder-could-not-recognized-image-from-dependent-jar

mohamed salah

unread,
Jun 27, 2011, 7:51:04 AM6/27/11
to google-we...@googlegroups.com

--
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/-/oiseDsJCwHYJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--

-----------------------------------------
salaam
plz input image in web content in applacation and remove path

 
src="../../style/images/createButton.png

src=images/nameimage
and images this folder inside webcontent



Regard: Mohamed salah hasan
Mobile :+20106594094
tel     :+2024460320


July

unread,
Jun 27, 2011, 8:17:50 AM6/27/11
to google-we...@googlegroups.com
Thank for reply, but i'm not sure it's an effective way, since i have to modify the files every time i want to deploy project B.
Reply all
Reply to author
Forward
0 new messages