Resolved by adding the following to my .ui.xml template:

<ui:image field="btndelete16x12" src='btndelete16x12.gif'/>

Apparently the image declaration is required because the .ui.xml file
references the .css file in which the @sprite is defined but you would never
have know that from the ambiguous error message I was getting; it was only
through trial and error did I find the above solution.

Anyway, thanks Thomas for trying to help me out on this one.

Jeff


On Wed, Jan 5, 2011 at 5:43 PM, Jeff Schwartz <[email protected]>wrote:

> Hi Thomas,
>
> Thank you for your explanation. I am at a loss understanding how I create
> the CssResource in the context of the ClientBundle. Can you elaborate on
> that and maybe provide an example? Just to update the information I
> previously provided, I've added
>
> @Source("lmv/com/client/members/insurance.css")
> Insurance insurance();
>
> to LMVResources which extends ClientBundle.
>
> Also, I didn't realize that in Eclipse if I select a resource file, right
> click and use the menu option Google | Add to ClientBundle... that it
> actually creates the interface extending ClientBundle for you. So, I've
> modified the code in my Composite to use the generated file whose name is
> Insurance.java and now it looks like
>
> interface InsurancePaymentStyle extends Insurance{}
>
> instead of what I had previously which was
>
>
> interface InsurancePaymentStyle extends CssResource {
>     String deleteAnchor();
> }
>
> With the above changes in place I get this error
>
> 16:19:43.624 [ERROR] [lmv] Unable to find ImageResource method
> value("btndelete16x12") in
> lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle
> : Could not find no-arg method named btndelete16x12 in type
> lmv.com.client.members.InsurancePaymentDisplayView_InsurancePaymentDisplayViewUiBinderImpl_GenBundle
>
> Also, could it be that because the ClientBundle class, the resource and the
> Composite reside in different packages is what is causing the problem?
>
> Thanks in advance.
>
> Jeff
>
>
> On Wed, Jan 5, 2011 at 5:12 PM, Thomas Broyer <[email protected]> wrote:
>
>> A CssResource is always created in the *context* of a ClientBundle, and
>> the ImageResource-s are looked up in that ClientBundle. In the snippet you
>> posted, there's no (apparent, as you didn't include the ClientBundle where
>> InsurancePaymentStyle is used) relationship between LVMResources and
>> InsurancePaymentStyle
>>
>> --
>> 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]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> *Jeff Schwartz*
>
>


-- 
*Jeff Schwartz*

-- 
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.

Reply via email to