Re: if change css, need restart the server?

2012-12-23 Thread RyanZA
Documentation is really bad for CSS resource - don't think there is even 
any CSS code in the documentation itself...

Css file my.css would be placed in the same folder as 'MyResources.java' 
file

If my.css looks like the following:

.className {
 width:100px;
}

.something {
 width: 200px;
}

then MyCss interface must look like this:

interface MyCss extends CssResource {
  String className();
  String something();
}

Now in your actual code, where you have addStyleName("something") before, 
it must now be addStyleName(resources.css().something())

GWT will now create the minimum css for that style and inject it in.

On Monday, December 24, 2012 8:50:08 AM UTC+2, tong123123 wrote:
>
> For more information, we found if using jetty server and development, 
> changing css will reflect in browser in development mode, if using 
> externaml sever, then even using development, changing css will not cause 
> browse UI change.
>
> I have a look about cssResources at 
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#CssResourceCookbook
> but feel very complicated, any simpler tutorial to teach about using it?
>
> in its documentation, 
>
>> Obfuscated CSS class names
>>
>> CssResource will use method names as CSS class names to obfuscate at 
>> runtime. 
>>
>> interface MyCss extends CssResource {
>>   String className();
>> }
>>
>> interface MyResources extends ClientBundle {
>>   @Source("my.css")
>>   MyCss css();
>> }
>>
>> All instances of a selector with .className will be replaced with an 
>> obfuscated symbol when the CSS is compiled. To use the obfuscated name: 
>>
> MyResources resources = GWT.create(MyResources.class);
> Label l = new Label("Some text");
> l.addStyleName(resources.css().className());
>
> in a normal css file, there should be many class name, so how to insert the 
> classname in addStyleName()?
>
>
>
>

-- 
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/-/bcJoCcA6GE4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: if change css, need restart the server?

2012-12-23 Thread tong123123
For more information, we found if using jetty server and development, 
changing css will reflect in browser in development mode, if using 
externaml sever, then even using development, changing css will not cause 
browse UI change.

I have a look about cssResources at 
https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#CssResourceCookbook
but feel very complicated, any simpler tutorial to teach about using it?

in its documentation, 

> Obfuscated CSS class names
>
> CssResource will use method names as CSS class names to obfuscate at 
> runtime. 
>
> interface MyCss extends CssResource {
>   String className();
> }
>
> interface MyResources extends ClientBundle {
>   @Source("my.css")
>   MyCss css();
> }
>
> All instances of a selector with .className will be replaced with an 
> obfuscated symbol when the CSS is compiled. To use the obfuscated name: 
>
MyResources resources = GWT.create(MyResources.class);
Label l = new Label("Some text");
l.addStyleName(resources.css().className());

in a normal css file, there should be many class name, so how to insert the 
classname in addStyleName()?



-- 
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/-/vpsv-FH7aI4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: if change css, need restart the server?

2012-12-23 Thread tong123123
no luck in refresh twice, maybe really need to change to CssResource or 
ClientBundle.
I am using maven, my css placed under public folder as the first post 
mention, change css in that place will not be reflected in development 
mode, still need restart server everytime, very trouble.

-- 
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/-/G7Xo8OzGxQoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: jsni - overlay types - js arrays Java API

2012-12-23 Thread Sebastián Gurin
Thank you Thomas for your reply, I learned new things. Didn't know about 

if ( GWT.isScript() ) {you can cast the js array to java arrays directly }. 

I will definetly use those classes for my projects. Thanks again

-- 
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/-/5gn_erJdUC8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Background css gradient

2012-12-23 Thread RyanZA

>
>   background-image: literal("-ms-linear-gradient(top, #000 20%, #fff 
> 80%)");
>
>
You can't set a gradient as a background *image* - only images can be set 
with the background-image tag...

-- 
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/-/NF7Ql_f6R20J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Background css gradient

2012-12-23 Thread Marco
@Jens
When and where should I call:
IGradientStyle.INSTANCE.style().ensureInjected()  ?

I called IGradientStyle.INSTANCE.style().ensureInjected() 
just before 
mySimplePanel
.setStyleName(IGradientStyle.INSTANCE.style().backgroundtoolbar());
but without any effect.

@Andrei:
What kind of definition should I use instead?
I tried IE and Chrome.

-- 
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/-/V3qdA1hE1XAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using autobeans in a gwt-rpc call

2012-12-23 Thread Cenk Oguz
Sounds interesting, RestyGwt means moving away from gwt-rpc and making the
services accessible from non-gwt clients as I understand. Will look into
it, thx!


On Sun, Dec 23, 2012 at 3:26 PM, RyanZA  wrote:

> Really great option if you have the flexibility to use it - use RESTful
> services - https://www.google.co.za/search?q=RESTful
>
> On the server side you can use Jersey(JAX-RS) to make REST services that
> can use POJOs to automatically map to JSON/XML - http://jersey.java.net/and
> http://jackson.codehaus.org/
> On the GWT side, you can use RestyGWT which understands Jersey annotations
> - http://restygwt.fusesource.org/
> For persistence if using appengine, you can then use
> https://github.com/icoloma/simpleds which uses jackson to map to JSON also
>
> This gives a VERY nice stack that is easy to use, and allows your services
> to be accessed by non-GWT clients, as creating clients for RESTful
> services+JSON is very simple. This allows things like iOS clients or
> java-Android clients.
>
>  --
> 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/-/tBNpW8KDMYUJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT application works perfectly fine in hosted/dev mode but its not working in production mode.

2012-12-23 Thread Vasu
My application on which I am working on, is working fine in dev / hosted 
mode. But when its compiled by GWT compiler and deployed in production, it 
was just showing blank. It was not showing any javascript errors on browser 
(firefox error console). I tried and confirmed searched on net but I didn't 
find any damn solution. So finally I decided to cleanup unwanted dead code 
in the project which is in way good thing but it took me a while to 
identify the issue. The issue was I was defining a property (

) 

inside one of the module (i.e. .gwt.xml) but was not setting any value 
(haven't done 



. When I removed this unwanted line, and deployed the code after "GWT 
compile" it started working. It was unbelievable for me to find this 
problem, so I reconfirmed it by adding just define tag and removing it 
multiple times.  
   My problem is solved now , but I feel there should be some 
way to identify such a situation (as it took me big amount of time to 
investigate the root cause and identify the solution). I do agree that one 
should take care of and remove unwanted/dead code, but still if it can be 
identified by the compiler and it throws error that will make developers 
life easy. So posting it here to understand what others have to say on this.

-- 
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/-/lGbPy7Y_xrwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Background css gradient

2012-12-23 Thread Andrei
I think you have wrong definitions of gradients, so browsers just ignore 
them. You don't need "literal" for non-IE browsers. Google a "CSS gradient 
maker" and use its output - I never had problems with gradients. 

-- 
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/-/zPpKiWQ-j4YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Background css gradient

2012-12-23 Thread Jens
Have you called IGradientStyle.INSTANCE.style().ensureInjected() ? Only 
when calling this method the CSS will be injected into your html page. Once 
it is injected this method becomes a no-op.

-- J.


-- 
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/-/FQGYSoxqQYQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Background css gradient

2012-12-23 Thread Marco
I tried this way now:

*GradientStyle.css*

.backgroundtoolbar {
  background-image: literal("-ms-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("-moz-linear-gradient(top, #000 20%, #fff 
80%)");
  background-image: literal("-o-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("-webkit-linear-gradient(top, #000 20%, #fff 
80%)");
  background-image: literal("linear-gradient(to bottom, #000 20%, #fff 
80%)");
}

public interface IGradientStyle extends ClientBundle {
 public static final IGradientStyle INSTANCE = 
GWT.create(IGradientStyle.class);
 @Source("GradientStyle.css")
Style style();

public interface Style extends CssResource{

String backgroundtoolbar();
}
}

mySimplePanel
.setStyleName(IGradientStyle.INSTANCE.style().backgroundtoolbar());

Again, no effect. Have I missed something? Is there a other better way to 
have a simple gradient background?

-- 
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/-/WBiCuucCWZQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: using autobeans in a gwt-rpc call

2012-12-23 Thread RyanZA
Really great option if you have the flexibility to use it - use RESTful 
services - https://www.google.co.za/search?q=RESTful

On the server side you can use Jersey(JAX-RS) to make REST services that 
can use POJOs to automatically map to JSON/XML - http://jersey.java.net/ 
and http://jackson.codehaus.org/
On the GWT side, you can use RestyGWT which understands Jersey annotations 
- http://restygwt.fusesource.org/
For persistence if using appengine, you can then use 
https://github.com/icoloma/simpleds which uses jackson to map to JSON also

This gives a VERY nice stack that is easy to use, and allows your services 
to be accessed by non-GWT clients, as creating clients for RESTful 
services+JSON is very simple. This allows things like iOS clients or 
java-Android clients.

-- 
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/-/tBNpW8KDMYUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AJAX crawling scheme

2012-12-23 Thread RyanZA
You generally need to do more than #! as GWT is all javascript..

However, cleanest approach is to make your own PlaceHistoryMapper - you can 
then control exactly how places are turned into tokens.

You will also need to provide html snapshots though, which is a lot 
tougher...

On Sunday, December 23, 2012 2:34:16 PM UTC+2, Danny wrote:
>
> Hey guys,
>
> I've read over at 
> https://developers.google.com/webmasters/ajax-crawling/docs/getting-startedthat
>  in order to make a GWT app more SEO-able, that we simply replace the 
> original "#" with "#!" in all of our URLs. I can't figure out the best way 
> to do this though in an Activities and Places project.
>
> Any and all help greatly appreciated.
>

-- 
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/-/hOgCTYZrQjwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Gwt 2.2, guice and gin...

2012-12-23 Thread Avanish Raju
Please help me. I've still not been able to resolve this.

At least, any pointers as to why this might be happening? I tried to search
online, but this thread is the only reference to this issue that I found.
I've even tried to build guice from svn head, and added gin- and gin-src-
jars to my project. I still get the same error about:

 No implementation for
javax.inject.Provider was
bound.

Also, currently, I'm only using GIN on client side, and haven't done any
server-side Guice setup. Could this be the cause for my problem? In other
words, will Gin only work if I'm also using guiceServlet configured?

Thanks,
Avanish


On Sun, Dec 2, 2012 at 8:43 PM, Avanish Raju  wrote:

> Hi Carlo,
>
> How did you fix this issue? I'm running into exactly the same problem.
> When I "Run as Web Application" on Eclipse, I get the following exception:
>
>  No implementation for
> javax.inject.Provider was
> bound.
>   while locating
> javax.inject.Provider
> for parameter 4 at
> com.google.gwt.inject.rebind.GinjectorBindings.(GinjectorBindings.java:196)
>   at
> com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGeneratorModule.java:75)
>
> I've tried making a new project with the GIN source code, and adding that
> as a library to my Java project. But I still get the same error.
>
> I'm using gin-2.0, which appears to come with guice-3.0 bundled with it.
>
> Please let me know where I can look to troubleshoot this problem, or if
> there is some other library I should be including as well.
>
> Regards,
> Avanish
>
> On Tuesday, February 15, 2011 1:55:11 PM UTC+5:30, Carlo Alberto Degli
> Atti wrote:
>>
>> thanks leszek,
>>
>>  but I'm experiencing this exception
>>
>>  No implementation for
>> javax.inject.Provider
>>
>> was
>> bound.
>>   while locating
>> javax.inject.Provider
>>
>> for parameter 4
>> at
>> com.google.gwt.inject.rebind.**GinjectorBindings.(**GinjectorBindings.java:
>>
>> 182)
>>   at
>> com.google.gwt.inject.rebind.**GinjectorGeneratorModule.**configure(**GinjectorGeneratorModule.java:
>>
>> 69)
>>
>> Do you know what does it mean?
>> Is something missing?
>>
>> Thanks a lot!
>>
>>
>> On Feb 14, 10:30 pm, leszek  wrote:
>> > I run into the same problem yesterday but finally, after taking new
>> > GIN snapshot and migrate to GUICE 3.0 (as is described in your post) I
>> > was successful and everything seems working now. The only problem I
>> > spent several hours on was that Nullable annotation disappeared from
>> > Guice internals and it took me a lot of time until I understood what
>> > was going on.
>> >
>> > http://groups.google.com/**group/google-guice/browse_frm/**
>> thread/38859fa...
>>
>> >
>> > You have to be prepared for a lot of surprises if you bank on google
>> > code, is it bad news, but good news is that - on the whole - it works.
>> >
>> > On 14 Lut, 16:57, Carlo Alberto Degli Atti  wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > Hello everybody,
>> >
>> > >  this morning I had the (bad) idea to update my eclipse environment
>> to use
>> > > gwt 2.2... (with 2.1 everything was fine)...
>> >
>> > >  now I'm experiencing a lot of problems... maybe it's my fault (I'm a
>> new
>> > > gwt & related techs user)...
>> >
>> > >  My application is using gin and guice; before this morning I was
>> using gin
>> > > v1.0 and guice 2.0.
>> >
>> > >  Now:
>> >
>> > >  *1. after upgrading to gwt (to 2.2) I got this exception (still the
>> > > original guice and gin versions):*
>> >
>> > >[WARN] failed JettyContainerService$**ApiProxyHandler@ae281c:
>> > > java.lang.**NoClassDefFoundError: com/google/inject/internal/**Lists
>> >
>> > > [WARN] Error starting handlers
>> >
>> > > java.lang.**NoClassDefFoundError: com/google/inject/internal/**Lists
>> >
>> > > at com.google.inject.servlet.**FiltersModuleBuilder.(
>> > > FiltersModuleBuilder.java:36)
>> >
>> > > at 
>> > > com.google.inject.servlet.**ServletModule.(**ServletModule.java:219)
>>
>> >
>> > > * 2. then I updated the guice version to 3.0-rc2 *mantaining* the
>> original
>> > > gin version (1.0), but I got this unlikely mix*:
>> >
>> > > gin-1.0.jar
>> >
>> > > guice-2.0.jar
>> >
>> > > guice-servlet-3.0-rc2.jar
>> >
>> > >as expected, my application threw this exception:
>> >
>> > >[WARN] Error starting handlers
>> >
>> > >java.lang.**NoClassDefFoundError:
>> > > com/google/inject/internal/**util/$Preconditions
>> >
>> > > at 
>> > > com.google.inject.servlet.**ServletModule.configure(**ServletModule.java:44)
>>
>> >
>> > > at com.google.inject.**AbstractModule.configure(**AbstractModule.java:59)
>>
>> >
>> > > ...
>> >
>> > >  *3. after some investigations, I discovered that gwt 3.2 requires a
>> new gin
>> > > (see this post **http://groups.google.com/**group/google-gin/browse_*
>> *thread/thread/70520a...
>>
>> > > ). **I also updated g

AJAX crawling scheme

2012-12-23 Thread Danny
Hey guys,

I've read over at 
https://developers.google.com/webmasters/ajax-crawling/docs/getting-startedthat 
in order to make a GWT app more SEO-able, that we simply replace the 
original "#" with "#!" in all of our URLs. I can't figure out the best way 
to do this though in an Activities and Places project.

Any and all help greatly appreciated.

-- 
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/-/dlrwvaK4AcAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Background css gradient

2012-12-23 Thread Thomas Broyer


On Sunday, December 23, 2012 10:58:25 AM UTC+1, Marco wrote:
>
> I have seen that it's possible to use css gradient in gwt 2.5.
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=5771
>
> I tried to set a css gradient to a simplepanel with both examples in bug 
> 5771:
>
> .foo {
>   background-image: literal("-ms-linear-gradient(top, #000 20%, #fff 80%)");
>   background-image: literal("-moz-linear-gradient(top, #000 20%, #fff 80%)");
>   background-image: literal("-o-linear-gradient(top, #000 20%, #fff 80%)");
>   background-image: literal("-webkit-linear-gradient(top, #000 20%, #fff 
> 80%)");
>   background-image: literal("linear-gradient(to bottom, #000 20%, #fff 80%)");
> }
>
> OR
>
> @def FOO_GRADIENT_COLORS #000 20%, #fff 80%;
> @def FOO_GRADIENT_OLD top FOO_GRADIENT_COLORS;
> .foo {
>   background-image: -ms-linear-gradient(FOO_GRADIENT_OLD);
>   background-image: -moz-linear-gradient(FOO_GRADIENT_OLD);
>   background-image: -o-linear-gradient(FOO_GRADIENT_OLD);
>   background-image: -webkit-linear-gradient(FOO_GRADIENT_OLD);
>   background-image: linear-gradient(to bottom, FOO_GRADIENT_COLORS);
> }
>
>
> I have set the css to my SimplePanel:
>
> mySimplePanel.setStyleName("foo");
>
>
This is not how one uses a CssResource. You have to call the foo() method 
of your CssResource interface.
See 
https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle#CssResource

-- 
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/-/vPwjfPdql3EJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Background css gradient

2012-12-23 Thread Marco
I have seen that it's possible to use css gradient in gwt 2.5.

http://code.google.com/p/google-web-toolkit/issues/detail?id=5771

I tried to set a css gradient to a simplepanel with both examples in bug 
5771:

.foo {
  background-image: literal("-ms-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("-moz-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("-o-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("-webkit-linear-gradient(top, #000 20%, #fff 80%)");
  background-image: literal("linear-gradient(to bottom, #000 20%, #fff 80%)");
}

OR

@def FOO_GRADIENT_COLORS #000 20%, #fff 80%;
@def FOO_GRADIENT_OLD top FOO_GRADIENT_COLORS;
.foo {
  background-image: -ms-linear-gradient(FOO_GRADIENT_OLD);
  background-image: -moz-linear-gradient(FOO_GRADIENT_OLD);
  background-image: -o-linear-gradient(FOO_GRADIENT_OLD);
  background-image: -webkit-linear-gradient(FOO_GRADIENT_OLD);
  background-image: linear-gradient(to bottom, FOO_GRADIENT_COLORS);
}


I have set the css to my SimplePanel:

mySimplePanel.setStyleName("foo");


Sadly there is no effect. The panel is just white.


Any ideas?

-- 
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/-/m_vvHIriDiwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.