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*

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