I'm sure that isn't an elegant solution, but you can try this: * yourTable.getElement.getParentElement().....getStyle.setBackgroundImage(yourImageValue); *
You must stop to call getParentElement(), when you be in the top of the table. Regards, Adolfo. 2012/3/16 JoseM <[email protected]> > You can try a hack like this, although maybe the syntax would be a little > different for you. > > static { > > StyleInjector.injectAtEnd("."+tableResources > .cellTableStyle().cellTableHoveredRow()+" tr {background-image: > url(image.jpg);}"); > > } > > On Thursday, March 15, 2012 12:04:24 AM UTC-4, David Gonzalez wrote: >> >> Hi, >> >> I need to use an image as table background (as entire row background will >> works). >> I tried this: >> >> .cellTableOddRow { >> background-image: url(image.jpg); >> background-repeat: repeat-y; >> width: 300px; >> } >> >> >> but it puts the image in each cell. >> Is this possible? >> >> Thx a lot! >> > -- > 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/-/Keyy0fssIaUJ. > > 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. > -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- 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.
