Ok, it doesn't give the error anymore,

but it doesn't seem to apply the css.
I put a margin-left: 50px on a button but it doesn't seem to work...
(in the css of the html file)
Then i triedto set the background-color to green in the body and that
to doesn't work...
i get a flash of a green backgroudn but it goes away :)

kind regards

On Aug 9, 6:23 pm, Nicolas ANTONIAZZI <[email protected]>
wrote:
> When using addStyleNames="{style.action}", gwt requires to find class
> definition of action in <style>
>
> It will not work without at least an empty declaration.
>
> The @extrnal keyword only indicates to gwt that class should not be
> obfuscated.
> Thus, you can use an external class name to override it.
>
> I do not know a "cleaner" way of doing it, but if someone reads this thread
> with a better solution, It will be appreciated :)
>
> 2010/8/9 Thomas Van Driessche <[email protected]>
>
> > Hey,
>
> > when i run my app it says The following obfuscated style classes were
> > missing from the source CSS file:
> > Fix bij adding .action{}
>
> > It seems like he doesn't find it in the css linked in the html page?
>
> > kind regards
>
> > On Aug 9, 12:22 pm, Nicolas ANTONIAZZI <[email protected]>
> > wrote:
> > > You can use the external keyword to say gwt that the class should not be
> > > obfuscated.
>
> > > <ui:style>
>
> > > @external myClass;
>
> > > .myClass {
> > >   /* Adds extra css here */
>
> > > }
>
> > > </ui:style>
>
> > > 2010/8/9 Thomas Van Driessche <[email protected]>
>
> > > > Hi,
>
> > > > I could use this: <ui:style field='otherStyle'
> > > > src="MyUiOtherStyle.css">
>
> > > > But the problem is that the css file is on another server...
> > > > We deploy the gwt app on an OC4J server, but the javascript is called
> > > > from another html page on another server...
> > > > And that html page has a link to a css file that my gwt app should use
> > > > to.
>
> > > > So is this possible?
>
> > > > kind regards
>
> > > > On Aug 6, 3:54 pm, spierce7 <[email protected]> wrote:
> > > > > I hope this helps:
>
> >http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#He...
>
> > > > > Look at the Hello Stylish World Example. Good luck!
>
> > > > > On Aug 6, 9:38 am, Thomas Van Driessche
>
> > > > > <[email protected]> wrote:
> > > > > > Hi,
>
> > > > > > I have a question on using css in gwt.
>
> > > > > > I know you can give the <ui:style> component a src to a css file.
> > > > > > But what if you want to use the css that is linked in the html page
> > > > > > from which the javascript from the gwt project is called?
>
> > > > > > i tried this:
>
> > > > > > <g:Button addStyleNames="action" ui:field=btnSearch"></g:Button>
>
> > > > > > And in the css file from the host html page i have put:
>
> > > > > > .action {
> > > > > >    background-color: green;
>
> > > > > > }
>
> > > > > > Is this possible?
> > > > > > Because our javascript that was compiled is called from other html
> > > > > > pages to.
>
> > > > > > kind regards,
> > > > > > Thomas
>
> > > > --
> > > > 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]>
> > <google-web-toolkit%[email protected]<google-web-toolkit%[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]<google-web-toolkit%[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