Friday, January 6, 2017

Re: styling Uibinder with external css using background image

Any help please on this point ?????

I know that my problem is resolvable using the simpliest manner of ClientBundle with both solutions of cssResource or ImageResource. But, I really want to optimize my gwt project with the use of gss since cssResource will completely disappear with the coming of GWT 3.0 as it's mentioned in this blog.

biiiiiiiiiiiiig thanks for any helpful idea.




On Friday, January 6, 2017 at 12:50:01 PM UTC+1, NewbieGwtUser wrote:
Hi ! thanks first for your reply.

Actually, I've already investigated around this track using the gss mechanism, following exactly what is mentioned in this tuto.

So I created the gss file instead of the css and so... but, was blocked at the ResourceLoader binding class (which has to be within the ClientModule class extending the AbstractPresenterModule class of the gwtp framework), since I'm using the mvp4g API instead.

So I'm wondering if there is any way of replacing the ClientModule class by the appropriate one in the mvp4g to get the ResourceLoader binding work?

thanks a lot for your help !


On Thursday, January 5, 2017 at 6:30:03 PM UTC+1, Juan Pablo Gardella wrote:

On Thu, 5 Jan 2017 at 13:40 NewbieGwtUser <maale...@gmail.com> wrote:
Hello everyone,

Since two days, i'm struggling to find a tip for showing an image as a background within my uibinder file but I were unable to get it work.

Actually I've a gwt-maven project with of course an src/main/java and src/main/resources structure. In this latter, I've made a public directory in which a set my images and external css files et defined a css class with a background-image.

Then, when I called this style within a uibinder .ui.xml file, and tried to run it, the image used as the background fails to be loaded at the browser page.

(error msg when I inspect with developer tool: Failed to load resource: the server responded with a status of 404 (Not Found))

PS: I notice that external css file styles are already referenced in the module configuration file (with .gwt.xml extension) and work fine.

Any idea will be very appreciated.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment