How do I control the scope or the value given to selectedTabCenter at
compile time? The image source works, since it compiles with a fixed
@def
Can this error occure, if the Interface getter method for headerHeight
is accessed before ensureInjected() is called? I don't think that this
is actually the case, but I would check for that, if that would be a
possible explanation...


On Feb 16, 10:08 pm, Jan Mostert <[email protected]> wrote:
> Maybe selectedTabCenter is out of scope here or doesn't have a value at
> compile time yet?
>
> --
> Jan Vladimir Mostert
> BEngSci
>
> MyCee Technologies
>
> On Wed, Feb 16, 2011 at 10:54 PM, pete <[email protected]> wrote:
> > Hallo,
>
> > I have a problem with some ClientBundle / CssResource I try to
> > declare.
>
> > In my ClientBundle I have
>
> > @Source("images/SelectedTabCenter.png")
> > ImageResource selectedTabCenter();
>
> > in my Css-file I have
>
> > @def headerHeight value('selectedTabCenter.getHeight', 'px');
>
> > @sprite .tabSelectedBack {
> >        gwt-image: "selectedTabCenter";
> > }
>
> > Now I get a compilation error:
>
> > [ERROR] [xxx] - Generator
> > 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator'
> > threw an exception while rebinding 'xxx.XXXBundle'
>
> > If I set the @def headerHeight to a fixed value, like 100px, it
> > compiles. Do I have a syntax error in here? I copied the code from
> > another of my widgets that works without a problem and just adjusted
> > the names, so by the pretty unclear exception I can't make out, what
> > is wrong...
>
> > Any help is highly appreciated :-)
>
> > Greetings,
> > Pete
>
> > --
> > 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.
>
>

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