Re: Is it possible to use CSS Rem unit in GWT 2.0 layout system?

2024-08-27 Thread Craig Mitchell
You should be able to set it directly, something like this:

myPanel.getElement().getStyle().setProperty("margin", "rem(14%, 3%)");

On Wednesday 28 August 2024 at 6:54:35 am UTC+10 Chak Lai wrote:

> Greetings,
>
> Is it possible to use CSS Rem unit in GWT 2.0 layout system?
>
> I have a legacy GWT project that uses GWT 2.0 layout system. The project 
> has been upgraded to gwt-2.11.0 successfully. However, I notice the current 
> Enum Style.Unit in the com.google.gwt.dom.client package does not include 
> REM unit for CSS Viewport. I have trouble extend the project to mobile 
> device or small screen.
>
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/b2208a57-c970-4d0a-a494-b93e8e940996n%40googlegroups.com.


Is it possible to use CSS Rem unit in GWT 2.0 layout system?

2024-08-27 Thread Chak Lai
Greetings,

Is it possible to use CSS Rem unit in GWT 2.0 layout system?

I have a legacy GWT project that uses GWT 2.0 layout system. The project 
has been upgraded to gwt-2.11.0 successfully. However, I notice the current 
Enum Style.Unit in the com.google.gwt.dom.client package does not include 
REM unit for CSS Viewport. I have trouble extend the project to mobile 
device or small screen.


Thanks.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/2c428636-42a1-4950-b0d8-7acae3a4a07fn%40googlegroups.com.


FIALING TO GET THE ELEMENTS OF CSS USING SMART GWT

2021-12-10 Thread pearl accounting
HEY AM USING   smart Gwt 6.1 and am trying to make my application mobile 
friendly but am having issues it being responsive with mobile phones and 
keep getting it the main bar long and has failed to shrined and I want to 
get the elements of the CSS file .
should i just give names to elements in my code  
like give an element name to a *IButton *

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/d96dbd1f-883e-4e0b-adcd-63ab83c3e6f0n%40googlegroups.com.


Does GWT support negative REM (CSS) values?

2020-11-04 Thread Colleen Todd
Just curious. I have a couple of negative rem values that keep getting 
converted into positive values in real life. 

i.e. -1rem will actually come out as 1rem

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/783ec57d-0e85-4e0a-9ce1-84485a17a66bn%40googlegroups.com.


Re: TabLayoutPanel looses its CSS style when placed in a CSS- grid container

2019-08-25 Thread Craig Mitchell
Ah, yes.  You want to call addStyleName, not setStyleName.  I think you 
call addStyleNames via the UIBinder.

On Tuesday, 6 August 2019 05:54:13 UTC+10, Martin Weber wrote:
>
> Am Montag, 15. Juli 2019, 22:00:03 CEST schrieb Craig Mitchell: 
> > Odd that it would lose the CSS.  You could try putting in the CSS 
> > yourself.  You can copy it from here 
> > 
> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwTabLayoutPan 
> > el or from the standard.css file in your project. 
>
> This did not help. 
> But maybe I found the real issue: 
> To place the TabLayoutPanel in a CSS grid container, I added a 
> styleName="{style.c1}" attribute to the TabLayoutPanel in the ui.xml. 
> Setting a styleName seems to replace the existing CSS styles completely 
> (for a 
> DataGrid, this is not the case). 
> As a workaround, I had to wrap g:TabLayoutPanel in a  class="{style.c1}">. 
>
>
> > 
> > On Thursday, 11 July 2019 20:47:32 UTC+2, Martin Weber wrote: 
> > > Hi, 
> > > 
> > >  I'am faced with a weird issue. 
> > > 
> > > When I place a TabLayoutPanel in a CSS grid container, the header tabs 
> are 
> > > displayed as plain text. 
> > > No margins, coloring etc. 
> > > In the browser's HTML inspector, I see that the tab header elements 
> have 
> > > the class attributes set tho the GWT-styles for TabLayoutPanel. But 
> > > somehow 
> > > the GWT stylesheet/ styles are missing. 
> > > What am I doing wrong? 
> > > Any suggestion to make it work? 
> > > 
> > > In contrast,  a DataGrid placed in the same CSS-grid container looks 
> fine. 
> > > 
> > > TIA, Martin 
>
>
> -- 
> There are only two hard problems in Computer Science: cache invalidation, 
> naming things, and off-by-one errors. 
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/119ecb21-b19a-4fe2-a1dd-a5ff115ee40a%40googlegroups.com.


Re: TabLayoutPanel looses its CSS style when placed in a CSS- grid container

2019-08-05 Thread Martin Weber
Am Montag, 15. Juli 2019, 22:00:03 CEST schrieb Craig Mitchell:
> Odd that it would lose the CSS.  You could try putting in the CSS
> yourself.  You can copy it from here
> http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwTabLayoutPan
> el or from the standard.css file in your project.

This did not help.
But maybe I found the real issue:
To place the TabLayoutPanel in a CSS grid container, I added a
styleName="{style.c1}" attribute to the TabLayoutPanel in the ui.xml.
Setting a styleName seems to replace the existing CSS styles completely (for a 
DataGrid, this is not the case).
As a workaround, I had to wrap g:TabLayoutPanel in a .


> 
> On Thursday, 11 July 2019 20:47:32 UTC+2, Martin Weber wrote:
> > Hi,
> > 
> >  I'am faced with a weird issue.
> > 
> > When I place a TabLayoutPanel in a CSS grid container, the header tabs are
> > displayed as plain text.
> > No margins, coloring etc.
> > In the browser's HTML inspector, I see that the tab header elements have
> > the class attributes set tho the GWT-styles for TabLayoutPanel. But
> > somehow
> > the GWT stylesheet/ styles are missing.
> > What am I doing wrong?
> > Any suggestion to make it work?
> > 
> > In contrast,  a DataGrid placed in the same CSS-grid container looks fine.
> > 
> > TIA, Martin


-- 
There are only two hard problems in Computer Science: cache invalidation, 
naming things, and off-by-one errors.




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/97817117.5ZFczIy6Rm%40linux.


Re: TabLayoutPanel looses its CSS style when placed in a CSS- grid container

2019-07-15 Thread Craig Mitchell
Odd that it would lose the CSS.  You could try putting in the CSS 
yourself.  You can copy it from here  
http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwTabLayoutPanel  
or from the standard.css file in your project.

On Thursday, 11 July 2019 20:47:32 UTC+2, Martin Weber wrote:
>
> Hi,
>  I'am faced with a weird issue.
> When I place a TabLayoutPanel in a CSS grid container, the header tabs are 
> displayed as plain text.
> No margins, coloring etc.
> In the browser's HTML inspector, I see that the tab header elements have 
> the class attributes set tho the GWT-styles for TabLayoutPanel. But somehow 
> the GWT stylesheet/ styles are missing.
> What am I doing wrong? 
> Any suggestion to make it work?
>
> In contrast,  a DataGrid placed in the same CSS-grid container looks fine.
>
> TIA, Martin
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/589593de-6c45-436a-b467-cc2de73dba66%40googlegroups.com.


TabLayoutPanel looses its CSS style when placed in a CSS- grid container

2019-07-11 Thread Martin Weber
Hi,
 I'am faced with a weird issue.
When I place a TabLayoutPanel in a CSS grid container, the header tabs are 
displayed as plain text.
No margins, coloring etc.
In the browser's HTML inspector, I see that the tab header elements have 
the class attributes set tho the GWT-styles for TabLayoutPanel. But somehow 
the GWT stylesheet/ styles are missing.
What am I doing wrong? 
Any suggestion to make it work?

In contrast,  a DataGrid placed in the same CSS-grid container looks fine.

TIA, Martin

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/0e084d24-1da2-4ed2-9d1a-3ef638bcee95%40googlegroups.com.


Re: Migrating a css file into gwt uibinder

2019-03-27 Thread Craig Mitchell
I never figured out how to add the @keyframes in the GWT resources.  As a 
workaround, you can add the CSS like you would a standard site.  Eg, in 
your index.html like this:

  @keyframes fadeIn {
0% { opacity: 0 }
100% { opacity: 1 }
  }


Then in your ui.xml, you can just refer to it as normal.  Eg:
blah

Not an idea solution.  If anyone knows how to add @keyframes to the 
resources, that would be very helpful.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Migrating a css file into gwt uibinder

2019-03-26 Thread Gary Barnes
I have a Display panel that contains an image that displays a gif spinner, 
however the spinner just doen't look great. 
So want to replace the gif spinner with something else, well I found a css 
file that looks a lot more like what we expect. Question is how do I 
migrate the css spinner into my panel?

Existing code snippets
Panel.ui.xml 

  
.apwidth {
  width: 100%
}
.
.
.
  
  

  

  
  Sys 1

  


Panel.java
class Panel extends Composite
{
private static final PanelUiBinder uiBinder = GWT.create(PanelUiBinder.
class);

interface PanelUiBinder extends UiBinder
{ }

interface Style extends CssResource
{
String grey();
String red();
String yellow();
}

@UiField
Style style;
@UiField
Image   SpinnerUp;
@UiField
Label   HardwareStat;

Panel
{
initWidget(uiBinder.createAndBindUi(this));

SpinnerUp.setUrl("images/load16.gif");
.
.
.
}
.
.
.
}



Want to integrate this:
from https://projects.lukehaas.me/css-loaders/
.loader {
  font-size: 10px;
  margin: 50px auto;
  text-indent: -em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #ff;
  background: -moz-linear-gradient(left, #ff 10%, rgba(255, 255, 255, 
0) 42%);
  background: -webkit-linear-gradient(left, #ff 10%, rgba(255, 255, 
255, 0) 42%);
  background: -o-linear-gradient(left, #ff 10%, rgba(255, 255, 255, 0) 
42%);
  background: -ms-linear-gradient(left, #ff 10%, rgba(255, 255, 255, 0) 
42%);
  background: linear-gradient(to right, #ff 10%, rgba(255, 255, 255, 0) 
42%);
  position: relative;
  -webkit-animation: load3 1.4s infinite linear;
  animation: load3 1.4s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #ff;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: #0dc5c1;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes load3 {
  0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
  }
  100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
  }
  100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
  }
}


I understand how to integrate up until the @-webkit

Any help is appreciated

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Unable to parse CSS - GWT

2018-08-20 Thread Ousti Driss
Hi everyone,

I'm trying to code a web app using GWT 2.7
I managed to create a workbench that contains a table (Grid)
When I try to compile and test it locally,
I got the following error message:
[java]  [ERROR] Unable to parse CSS
 [java] 
com.google.gwt.thirdparty.common.css.compiler.ast.GssParserException:
[ERROR] Line 32: Failed to resolve 
'com.arkea.methodes.gxt3.theme.client.base.container.Css3HBoxLayoutContainerAppearance.Css3HBoxLayoutContainerResources'
 
via deferred binding
 [java]  Computing all possible rebind results for 
'com.arkea.methodes.gxt3.theme.client.base.toolbar.Css3ToolBarAppearance.Css3ToolBarResources'

Can someone help me please!


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using StyleInjector with Polymer and Custom CSS Properties

2018-04-27 Thread Tyler Moore
Can't figure out how to edit posts, last line should be

Document.get().getHead().appendChild(element);

On Friday, April 27, 2018 at 1:57:01 PM UTC-4, Tyler Moore wrote:
>
>
> Made a workaround for this.
>
> Instead of using StyleInjector. I just created a wrapper class that treats 
> it like a mundane style element with loaded innerHTML from the resource:
>
> public interface CSSStuff extends ClientBundle {
>
> public static final PageCSSResources INSTANCE = GWT.create(
> PageCSSResources.class);
>
> @Source("styles.css")
> TextResource siteCss();
>
> }
>
> //...Somewhere else
> StyleElement element = Document.get().createStyleElement();
> element.setInnerHTML(CSSStuff.INSTANCE.siteCss().getText());
> Document.get().getHead().appendChild(shared.getElement());
>
> On Friday, April 27, 2018 at 10:01:11 AM UTC-4, Tyler Moore wrote:
>>
>> I use StyleInjector to inject CSS rules that work with Shadow DOM Custom 
>> Properties: https://www.polymer-project.org/2.0/docs/devguide/shadow-dom
>>
>> A snippit from the CSS I inject:
>>
>> event-action-table.event-action-list-editor {
>> --table-height: 200px;
>> a-property-with-no-double-minus-prefix: 0;
>> }
>>
>> A snippit from the custom element template:
>> 
>> vaadin-grid {
>>   width: 100%;
>>   height: var(--table-height);
>> }
>> 
>>
>>
>> However, at run time, it looks like anything that is prefixed with '--' 
>> get's ignored by the injector. In the above case, my output element style 
>> looks like:
>> event-action-table.event-action-list-editor {
>> a-property-with-no-double-minus-prefix: 0;
>> }
>>
>> Why is that?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using StyleInjector with Polymer and Custom CSS Properties

2018-04-27 Thread Tyler Moore

Made a workaround for this.

Instead of using StyleInjector. I just created a wrapper class that treats 
it like a mundane style element with loaded innerHTML from the resource:

public interface CSSStuff extends ClientBundle {

public static final PageCSSResources INSTANCE = GWT.create(PageCSSResources.
class);

@Source("styles.css")
TextResource siteCss();

}

//...Somewhere else
StyleElement element = Document.get().createStyleElement();
element.setInnerHTML(CSSStuff.INSTANCE.siteCss().getText());
Document.get().getHead().appendChild(shared.getElement());

On Friday, April 27, 2018 at 10:01:11 AM UTC-4, Tyler Moore wrote:
>
> I use StyleInjector to inject CSS rules that work with Shadow DOM Custom 
> Properties: https://www.polymer-project.org/2.0/docs/devguide/shadow-dom
>
> A snippit from the CSS I inject:
>
> event-action-table.event-action-list-editor {
> --table-height: 200px;
> a-property-with-no-double-minus-prefix: 0;
> }
>
> A snippit from the custom element template:
> 
> vaadin-grid {
>   width: 100%;
>   height: var(--table-height);
> }
> 
>
>
> However, at run time, it looks like anything that is prefixed with '--' 
> get's ignored by the injector. In the above case, my output element style 
> looks like:
> event-action-table.event-action-list-editor {
> a-property-with-no-double-minus-prefix: 0;
> }
>
> Why is that?
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using StyleInjector with Polymer and Custom CSS Properties

2018-04-27 Thread Tyler Moore
Made a workaround for this.

Instead of using StyleInjector. I just created a wrapper class that treats 
it like a mundane style element with loaded innerHTML from the resource:

public interface CSSStuff extends ClientBundle {

public static final PageCSSResources INSTANCE = GWT.create(PageCSSResources.
class);

@Source("styles.css")
TextResource siteCss();

}

//...Somewhere else
StyleElement element = Document.get().createStyleElement();
element.setInnerHTML(CSSStuff.INSTANCE.siteCss().getText());




On Friday, April 27, 2018 at 10:01:11 AM UTC-4, Tyler Moore wrote:
>
> I use StyleInjector to inject CSS rules that work with Shadow DOM Custom 
> Properties: https://www.polymer-project.org/2.0/docs/devguide/shadow-dom
>
> A snippit from the CSS I inject:
>
> event-action-table.event-action-list-editor {
> --table-height: 200px;
> a-property-with-no-double-minus-prefix: 0;
> }
>
> A snippit from the custom element template:
> 
> vaadin-grid {
>   width: 100%;
>   height: var(--table-height);
> }
> 
>
>
> However, at run time, it looks like anything that is prefixed with '--' 
> get's ignored by the injector. In the above case, my output element style 
> looks like:
> event-action-table.event-action-list-editor {
> a-property-with-no-double-minus-prefix: 0;
> }
>
> Why is that?
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Using StyleInjector with Polymer and Custom CSS Properties

2018-04-27 Thread Tyler Moore
I use StyleInjector to inject CSS rules that work with Shadow DOM Custom 
Properties: https://www.polymer-project.org/2.0/docs/devguide/shadow-dom

A snippit from the CSS I inject:

event-action-table.event-action-list-editor {
--table-height: 200px;
a-property-with-no-double-minus-prefix: 0;
}

A snippit from the custom element template:

vaadin-grid {
  width: 100%;
  height: var(--table-height);
}



However, at run time, it looks like anything that is prefixed with '--' 
get's ignored by the injector. In the above case, my output element style 
looks like:
event-action-table.event-action-list-editor {
a-property-with-no-double-minus-prefix: 0;
}

Why is that?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Eclipse fails to serve CSS file

2018-01-22 Thread Velusamy Velu
My GWT application development ran into a problem that poses a challenge to 
resolve. The application is developed with GWT 2.7.0 and a pilot is running 
at PeruseLabs <http://peruselab.com> (the Pilot Screen clip is below). This 
application has been in development for quite some months. However, in 
development the CSS file *PeruseLabs.css* doesn't seem to be loading (I 
don't see any evidence that it's loading). This started happening since mid 
January 2018. The CSS (*class icon*) loads as expected in the pilot  but not in 
development (Dev Screen clip all the way down). To reiterate - when this 
project is built and deployed in "prod" it works as expected. The 
development has come to a screeching halt though.

The corresponding icon class is 
.icon {
width: 45px;
margin: 7px;
border-radius: 5px;
cursor: pointer;
}

My development environment is -
Java 8 (Ver 1.8.0_151)
Eclipse Oxygen
GWT 2.7.0
GWT Eclipse Plugin: Version 3.0

Any idea what could be wrong? Thank you in advance.

*Pilot Screen clip*

*Dev Screen clip*

<https://lh3.googleusercontent.com/-qs6SGtPlbLs/WmZacayFSsI/AAABzUg/hgRLDBaF9mUg1ZY7q3CEBemO-jZo6W91wCLcBGAs/s1600/PeruseLab-Dev.png>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Injecting CSS and JS into UiBinder - Issue with getting access to image path

2017-11-02 Thread Muhammad Zbeedat


Hi,
I'm trying to implement a JS library (VisJs: http://visjs.org/) in my GWT 
project.
So, in order to use it from my UiBinder I used the ScriptInjector:
ScriptInjector.fromString(JsResources.INSTANCE.visScript().getText()).inject();

and in ui.xml I used the following:
 .htmlPanel { font-size: 
12px; font-family: Verdana, Geneva, sans-serif; border: 1px; border-style: 
solid; border-color: #969696; margin-top: 10px; } 

in my project I created a folder called resources as follow;

   - resources
   vis.js
   vis-min.css
  - img
 - network
  
in my gwt.xml i added: ** in order to get 
access to these resources.

The script is working for me and loading the graph, but not completely. I'm 
getting such errors:

vis.js:52995 GET http://127.0.0.1:/css/img/network/cross.png 404 (Not 
Found)

Somehow the "css" is part of the url and images can't be found!
Can you please advise how to fix it?

B.R.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS Variables and GSS

2017-09-11 Thread max . dubiel
Thx for the 
reply. 
https://github.com/google/closure-stylesheets/pull/121/commits/7c99519b6726a2bcdb9458d4dc352e8722f50178
 

It seems there are at least some contribution in this regard :)

Am Montag, 11. September 2017 15:29:19 UTC+2 schrieb Jens:
>
> GWT itself uses a version of Google Closure Stylesheets library internally 
> to support CSS 3 features. GWT updates this library from time to time to 
> support more CSS 3 features and it looks like CSS variables are not yet 
> available in Google Closure Stylesheets: 
> https://github.com/google/closure-stylesheets/pull/121
>
> For now you have to stick with closure stylesheets variables: 
> https://github.com/google/closure-stylesheets#variables
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS Variables and GSS

2017-09-11 Thread Jens
GWT itself uses a version of Google Closure Stylesheets library internally 
to support CSS 3 features. GWT updates this library from time to time to 
support more CSS 3 features and it looks like CSS variables are not yet 
available in Google Closure 
Stylesheets: https://github.com/google/closure-stylesheets/pull/121

For now you have to stick with closure stylesheets 
variables: https://github.com/google/closure-stylesheets#variables

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CSS Variables and GSS

2017-09-11 Thread max . dubiel
Hello Folks.

It's tricky so far to find anything regarding this topic. It's alwas about 
GWT CSS Konstants and such. So I hope I don't open an existing topic.

I wanted to start using CSS Variables (the real deal) 
<http://caniuse.com/#feat=css-variables>. Turns out the GSS compile doesn't 
like the syntax. Did I miss something, or is that just not supported yet. 
And if so, will it be and when?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to parse CSS - gwt 2.7 - Using DataGrid

2017-07-09 Thread Thomas Broyer


On Monday, July 10, 2017 at 2:36:00 AM UTC+2, Rohan Sachdeva wrote:
>
> Hi All,
>
> I am using GWT DataGrid in some application and facing following issue:-
>
>   [ERROR] Unable to parse CSS
> org.w3c.css.sac.CSSException: @def rules must specify an identifier and 
> one or more values
> at 
> com.google.gwt.resources.css.GenerateCssAst$GenerationHandler.parseDef(GenerateCssAst.java:361)
>

This line in 2.7 doesn't match with the exception being 
thrown: 
https://github.com/gwtproject/gwt/blob/2.7.0/user/src/com/google/gwt/resources/css/GenerateCssAst.java#L361
It does match in 2.6.1 
though: 
https://github.com/gwtproject/gwt/blob/2.6.1/user/src/com/google/gwt/resources/css/GenerateCssAst.java#L361
Do you maybe have a mix of 2.7 and 2.6 in your classpath?
That said, NativeHorizontalScrollbarTransparent.css hasn't changed since 
its introduction in 
2011: 
https://github.com/gwtproject/gwt/commits/2.8.1/user/src/com/google/gwt/user/client/ui/NativeHorizontalScrollbarTransparent.css
so this is quite strange…
Do you maybe have some third-party library (or your own project) shadowing 
that CSS?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Unable to parse CSS - gwt 2.7 - Using DataGrid

2017-07-09 Thread Rohan Sachdeva
Hi All,

I am using GWT DataGrid in some application and facing following issue:-

  [ERROR] Unable to parse CSS
org.w3c.css.sac.CSSException: @def rules must specify an identifier and one 
or more values
at 
com.google.gwt.resources.css.GenerateCssAst$GenerationHandler.parseDef(GenerateCssAst.java:361)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.google.gwt.resources.css.GenerateCssAst$GenerationHandler.ignorableAtRule(GenerateCssAst.java:256)
at org.w3c.flute.parser.Parser.atRuleDeclaration(Parser.java:1178)
at org.w3c.flute.parser.Parser.ignoreStatement(Parser.java:622)
at org.w3c.flute.parser.Parser.parserUnit(Parser.java:452)
at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:107)
at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:119)
at com.google.gwt.resources.css.GenerateCssAst.exec(GenerateCssAst.java:724)
at 
com.google.gwt.resources.rg.CssResourceGenerator.prepare(CssResourceGenerator.java:521)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1013)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1039)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:419)
at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:670)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
at 
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at 
com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:387)
at 
com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:465)
at 
com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:255)
at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:244)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:117)
at 
com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:117)
at 
com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
at 
com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
at 
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:138)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:134)
at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:449)
at com.google.gwt.dev.jjs.ast.JConstructor.traverse(JConstructor.java:129)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:940)
at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:665)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:672)
at 
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:34)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:271)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:223)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:139)
at com.google.gwt.dev.Compiler.run(Compiler.java:167)
at

Re: GWT gwt obfuscation (gwt-style=OBF) generates invalid css

2017-03-26 Thread Hannes


Hi,


this post was a mistake by myself. I assumed that obfuscation would cause 
the problem. As I learned now it has nothing to do with obfuscation but 
with minifying the css. We used yui-compressor which has a known bug when 
it comes to @media and ... So we just need to switch the tool for minifying 
the css.

Sorry for the mistake

Am Samstag, 25. März 2017 09:41:52 UTC+1 schrieb Hannes:
>
> I compile my gwt project with gwt-style=OBF. Now I realize that this 
> generates media queries where the space between "and" and "(" is missing. 
> So out of 
>
> @media screen and ( ... gets 
> @media screen and(
>
> As you can see the space between "and"  and "(" is missing.
> According to W3C <https://www.w3.org/TR/css3-mediaqueries/>this not ok 
> and also does not work (at least in chrome and firefox). 
> You can easily test this in chrome by adding a @media query for example in 
> chrome by adding a rule to the inspector style sheet as desribed here 
> <http://stackoverflow.com/questions/28069389/enter-css-media-queries-in-chrome-developer-tools>.
>  
> You will see that adding the space between "and" and "(" changes 
> everything! :-)
>
>
> Do you have any idea how to generate working css and still use gwt 
> code obfuscation?
>
> Thanks in advance
> Hannes
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT gwt obfuscation (gwt-style=OBF) generates invalid css

2017-03-25 Thread Hannes
I compile my gwt project with gwt-style=OBF. Now I realize that this 
generates media queries where the space between "and" and "(" is missing. 
So out of 

@media screen and ( ... gets 
@media screen and(

As you can see the space between "and"  and "(" is missing.
According to W3C <https://www.w3.org/TR/css3-mediaqueries/>this not ok and 
also does not work (at least in chrome and firefox). 
You can easily test this in chrome by adding a @media query for example in 
chrome by adding a rule to the inspector style sheet as desribed here 
<http://stackoverflow.com/questions/28069389/enter-css-media-queries-in-chrome-developer-tools>.
 
You will see that adding the space between "and" and "(" changes 
everything! :-)


Do you have any idea how to generate working css and still use gwt 
code obfuscation?

Thanks in advance
Hannes

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS resource not found in GWT library

2017-03-24 Thread Jens
You can always reference resources in ClientBundle using relative paths. 
Doesn't matter if its in src/main/java or src/main/resources. 

src/main/java/com/example/client/MyClientBundle.java
src/main/(java | resources)/com/example/client/std.gss

=> you can use @Source("std.gss") or completely omit it if your method is 
named std().

I only use absolute paths for CSS files I import, e.g.

@Source( { Constants.CSS_FILE, "std.gss" }) with CSS_FILE being absolute


-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS resource not found in GWT library

2017-03-24 Thread Magnus
Ok, and when doing it the "usual" way - placing the resources in 
src/main/resources - can you shorten the references inside the ClientBundle 
java file somehow, i. e. avoid to specify the whole path for every resource?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS resource not found in GWT library

2017-03-24 Thread Jens
Normally when using Maven anything that is not a *.java file should go into 
src/main/resources. However if you prefer certain resources to be closer to 
your java source files by placing them into src/main/java then you have to 
add an include for these files as you have already done for *.gwt.xml (and 
*.java because it is a GWT library jar).

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CSS resource not found in GWT library

2017-03-24 Thread Magnus
Hello,

while building a GWT application I get these errors:

[INFO] Compiling module msm.app.bcs.Application
[INFO]Computing all possible rebind results for 
'msm.lib.acs.awi.client.res.Resources'
[INFO]   Rebinding msm.lib.acs.awi.client.res.Resources
[INFO]  Invoking generator 
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
[INFO] Preparing method css
[INFO]Finding resources
[INFO]   [ERROR] Resource std.css not found. Is the name 
specified as ClassLoader.getResource() would expect?
[INFO] Preparing method help
[INFO]Finding resources
[INFO]   [ERROR] Resource Help.png not found. Is the name 
specified as ClassLoader.getResource() would expect?


The missing resources std.css and Help.png are part of a jar library used 
by the application.
They are referenced by a ClientBundle:

Resources.java: // references the resources:
- Help.png
- std.css


The jar file is built using a pom.xml, which adds the sources like this:


  

  src/main/resources


  src/main/java
  
msm/lib/acs/awi/**/*.java
msm/lib/acs/**/*.gwt.xml
  

  



As you can see, only *.java and *..gwt.xml files are included, but no *.css 
or *.png files.

But how do you include them properly? Should I add an include statement in 
the pom.xml above? Or should the resources be placed at another location? I 
think it's good to have them near the ClientBundle java file.

How do you do this?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using css autoprefixer with GWT

2017-01-19 Thread harshyadav
Thanks, that makes sense.

On Thursday, January 19, 2017 at 1:21:43 AM UTC-8, Jens wrote:
>
>
> However, could you give and example of how calling autoprefixer 
>> programmatically inside resource generator would look like?
>>
>
> No, I have no idea about the autoprefixer API. In terms of GWT you would 
> likely need to copy CssResourceGenerator and GssResourceGenerator and then 
> add autoprefixer in the appropriate places.
>
> But honestly, autoprefixer is a processing tool that should run outside 
> GWT but before the GWT compiler runs. In GWT 3 there are no generators 
> anymore so you would need to run it externally anyways. So you better find 
> a good external solution instead of hacking GWT.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using css autoprefixer with GWT

2017-01-19 Thread Jens


> However, could you give and example of how calling autoprefixer 
> programmatically inside resource generator would look like?
>

No, I have no idea about the autoprefixer API. In terms of GWT you would 
likely need to copy CssResourceGenerator and GssResourceGenerator and then 
add autoprefixer in the appropriate places.

But honestly, autoprefixer is a processing tool that should run outside GWT 
but before the GWT compiler runs. In GWT 3 there are no generators anymore 
so you would need to run it externally anyways. So you better find a good 
external solution instead of hacking GWT.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using css autoprefixer with GWT

2017-01-18 Thread harshyadav
Thanks Jens,

I'll give file watcher a try.

However, could you give and example of how calling autoprefixer 
programmatically inside resource generator would look like?

Thanks!

On Wednesday, January 18, 2017 at 12:32:27 PM UTC-8, Jens wrote:
>
> I use GSS mixins. Works ok for me, usually you don't need a lot of 
> prefixes to maintain.
>
> To automate it you would need to call autoprefixer programmatically in a 
> resource generator or use a file watcher (IntelliJ has a plugin for it, 
> otherwise use grunt or so) that triggers autoprefixer whenever a *.css / 
> *.gss file changes.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using css autoprefixer with GWT

2017-01-18 Thread Jens
I use GSS mixins. Works ok for me, usually you don't need a lot of prefixes 
to maintain.

To automate it you would need to call autoprefixer programmatically in a 
resource generator or use a file watcher (IntelliJ has a plugin for it, 
otherwise use grunt or so) that triggers autoprefixer whenever a *.css / 
*.gss file changes.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Using css autoprefixer with GWT

2017-01-18 Thread harshyadav
Anyone using css autoprefixer?

On Monday, January 9, 2017 at 6:02:07 PM UTC-8, harshyadav wrote:
>
> Hi,
>
> We are trying to use autoprefixer in our GWT application for vendor 
> specific rules especially for flexbox support:
> https://github.com/postcss/autoprefixer
>
> We can run this independently and update each stylesheet manually, however 
> its not ideal solution and time consuming/error-prone.
>
> Does anyone has experience automating it with the GWT compiler?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Using css autoprefixer with GWT

2017-01-09 Thread harshyadav
Hi,

We are trying to use autoprefixer in our GWT application for vendor 
specific rules especially for flexbox support:
https://github.com/postcss/autoprefixer

We can run this independently and update each stylesheet manually, however 
its not ideal solution and time consuming/error-prone.

Does anyone has experience automating it with the GWT compiler?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: styling Uibinder with external css using background image

2017-01-06 Thread NewbieGwtUser
Any help please on this point ?

I know that my problem is resolvable using the simpliest manner of 
ClientBundle with both solutions of cssResource or ImageResource. But, I 
really want to optimize my gwt project with the use of gss since 
cssResource will completely disappear with the coming of GWT 3.0 as it's 
mentioned in this blog 
<http://blog.lteconsulting.fr/gwt/2015/06/10/gwt-meetup.html>.

big thanks for any helpful idea.




On Friday, January 6, 2017 at 12:50:01 PM UTC+1, NewbieGwtUser wrote:
>
> Hi ! thanks first for your reply.
>
> Actually, I've already investigated around this track using the gss 
> mechanism, following exactly what is mentioned in this tuto 
> <http://blog.arcbees.com/2015/04/14/getting-started-with-css-gss-gwt/#resource-loader-file>
> .
>
> So I created the gss file instead of the css and so... but, was blocked at 
> the ResourceLoader binding class (which has to be within the ClientModule 
> class extending the AbstractPresenterModule class of the gwtp framework), 
> since I'm using the mvp4g API instead.
>
> So I'm wondering if there is any way of replacing the ClientModule class 
> by the appropriate one in the mvp4g to get the ResourceLoader binding work?
>
> thanks a lot for your help !
>
>
> On Thursday, January 5, 2017 at 6:30:03 PM UTC+1, Juan Pablo Gardella 
> wrote:
>>
>> Did you check 
>> http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#ImageResource
>> ?
>>
>> On Thu, 5 Jan 2017 at 13:40 NewbieGwtUser  wrote:
>>
>>> Hello everyone,
>>>
>>> Since two days, i'm struggling to find a tip for showing an image as a 
>>> background within my uibinder file but I were unable to get it work.
>>>
>>> Actually I've a gwt-maven project with of course an src/main/java and 
>>> src/main/resources structure. In this latter, I've made a public directory 
>>> in which a set my images and external css files et defined a css class with 
>>> a background-image.
>>>
>>> Then, when I called this style within a uibinder .ui.xml file, and tried 
>>> to run it, the image used as the background fails to be loaded at the 
>>> browser page.
>>>
>>> (error msg when I inspect with developer tool: Failed to load resource: 
>>> the server responded with a status of 404 (Not Found))
>>>
>>> PS: I notice that external css file styles are already referenced in the 
>>> module configuration file (with .gwt.xml extension) and work fine.
>>>
>>> Any idea will be very appreciated.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "GWT Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-we...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: styling Uibinder with external css using background image

2017-01-06 Thread NewbieGwtUser
Hi ! thanks first for your reply.

Actually, I've already investigated around this track using the gss 
mechanism, following exactly what is mentioned in this tuto 
<http://blog.arcbees.com/2015/04/14/getting-started-with-css-gss-gwt/#resource-loader-file>
.

So I created the gss file instead of the css and so... but, was blocked at 
the ResourceLoader binding class (which has to be within the ClientModule 
class extending the AbstractPresenterModule class of the gwtp framework), 
since I'm using the mvp4g API instead.

So I'm wondering if there is any way of replacing the ClientModule class by 
the appropriate one in the mvp4g to get the ResourceLoader binding work?

thanks a lot for your help !


On Thursday, January 5, 2017 at 6:30:03 PM UTC+1, Juan Pablo Gardella wrote:
>
> Did you check 
> http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#ImageResource
> ?
>
> On Thu, 5 Jan 2017 at 13:40 NewbieGwtUser  > wrote:
>
>> Hello everyone,
>>
>> Since two days, i'm struggling to find a tip for showing an image as a 
>> background within my uibinder file but I were unable to get it work.
>>
>> Actually I've a gwt-maven project with of course an src/main/java and 
>> src/main/resources structure. In this latter, I've made a public directory 
>> in which a set my images and external css files et defined a css class with 
>> a background-image.
>>
>> Then, when I called this style within a uibinder .ui.xml file, and tried 
>> to run it, the image used as the background fails to be loaded at the 
>> browser page.
>>
>> (error msg when I inspect with developer tool: Failed to load resource: 
>> the server responded with a status of 404 (Not Found))
>>
>> PS: I notice that external css file styles are already referenced in the 
>> module configuration file (with .gwt.xml extension) and work fine.
>>
>> Any idea will be very appreciated.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: styling Uibinder with external css using background image

2017-01-05 Thread Juan Pablo Gardella
Did you check
http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#ImageResource
?

On Thu, 5 Jan 2017 at 13:40 NewbieGwtUser  wrote:

> Hello everyone,
>
> Since two days, i'm struggling to find a tip for showing an image as a
> background within my uibinder file but I were unable to get it work.
>
> Actually I've a gwt-maven project with of course an src/main/java and
> src/main/resources structure. In this latter, I've made a public directory
> in which a set my images and external css files et defined a css class with
> a background-image.
>
> Then, when I called this style within a uibinder .ui.xml file, and tried
> to run it, the image used as the background fails to be loaded at the
> browser page.
>
> (error msg when I inspect with developer tool: Failed to load resource:
> the server responded with a status of 404 (Not Found))
>
> PS: I notice that external css file styles are already referenced in the
> module configuration file (with .gwt.xml extension) and work fine.
>
> Any idea will be very appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


styling Uibinder with external css using background image

2017-01-05 Thread NewbieGwtUser
Hello everyone,

Since two days, i'm struggling to find a tip for showing an image as a 
background within my uibinder file but I were unable to get it work.

Actually I've a gwt-maven project with of course an src/main/java and 
src/main/resources structure. In this latter, I've made a public directory 
in which a set my images and external css files et defined a css class with 
a background-image.

Then, when I called this style within a uibinder .ui.xml file, and tried to 
run it, the image used as the background fails to be loaded at the browser 
page.

(error msg when I inspect with developer tool: Failed to load resource: the 
server responded with a status of 404 (Not Found))

PS: I notice that external css file styles are already referenced in the 
module configuration file (with .gwt.xml extension) and work fine.

Any idea will be very appreciated.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to get ride of gwt theme css

2016-10-27 Thread Ahamed
If you don't want to use GWT theme then comment the GWT theme from 
module.gwt.xml

  

The above 3 default theme will come with GWT application.

Comment this if you don't want to include. 
On Wednesday, October 26, 2016 at 5:39:40 AM UTC+5:30, David wrote:
>
> In my current project, I just use GWT compiler. I don't want GWT clean.css 
> file. How do I get ride of clean.css which is always generated?
>
>
> David
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to get ride of gwt theme css

2016-10-25 Thread Frank
Remove from your .gwt.xml file

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How to get ride of gwt theme css

2016-10-25 Thread David
In my current project, I just use GWT compiler. I don't want GWT clean.css 
file. How do I get ride of clean.css which is always generated?


David

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS exception compiling 2.7.0 app

2016-09-28 Thread Jens
Make sure gwt-dev.jar is first in class path. Most likely some other 
libraries you are using are also using flute but with a different/older 
version than GWT.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS exception compiling 2.7.0 app

2016-09-28 Thread Thomas Redman
Hello? Is anybody out there?

I have several GWT apps, I am having this issue with all of them, it's very 
freaky. The problem stems from one particular css file, 
 NativeHorizontalScrollbarTransparent.css, which has a defined attribute 
who's name includes a "_". I'm not a CSS guy, but this seems perfectly 
legal to me.

Changing this CSS file in the jar file fixes the issue, but that is a 
horrible solution, the parser appears to be broken(actually, the BNF used 
by the parser). The exception comes from the flute parser, and as I 
understand, the BNF does not include the "_", so I think flute is only 
doing what it knows to be right. So what's the deal? Why doesn't everybody 
see this issue? 


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CSS exception compiling 2.7.0 app

2016-09-26 Thread Thomas Redman
I reinstalled Eclipse and the GWT 2.7.0 plugin today, and I have not been 
able to "GWT compile" my app since. It is complaining about a css file("
/com/google/gwt/user/client/ui/NativeHorizontalScrollbarTransparent.css") in 
the gwt-users.jar file, but when I extract this file and look at it, I see 
nothing wrong, and there is fact very little in there. 

The exception looks like this:

   Computing all possible rebind results for 
'com.google.gwt.user.client.ui.NativeHorizontalScrollbar.ResourcesTransparant'
  Rebinding 
com.google.gwt.user.client.ui.NativeHorizontalScrollbar.ResourcesTransparant
 Invoking generator 
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
Preparing method nativeHorizontalScrollbarStyle
   The following problems were detected
  [WARN] Line 1 column 12: encountered "_". Was expecting 
one of: "}" "+" "-" "," ";" "/" 


 
   Parsing CSS stylesheet 
jar:file:/Users/redman/.p2/pool/plugins/com.google.gwt.eclipse.sdkbundle_2.7.0/gwt-2.7.0/gwt-user.jar!/com/google/gwt/user/client/ui/NativeHorizontalScrollbarTransparent.css
  [ERROR] Unable to parse CSS
org.w3c.css.sac.CSSException: @def rules must specify an identifier and one 
or more values
at 
com.google.gwt.resources.css.GenerateCssAst$GenerationHandler.parseDef(GenerateCssAst.java:369)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at 
com.google.gwt.resources.css.GenerateCssAst$GenerationHandler.ignorableAtRule(GenerateCssAst.java:257)
at org.w3c.flute.parser.Parser.atRuleDeclaration(Parser.java:1178)
at org.w3c.flute.parser.Parser.ignoreStatement(Parser.java:622)
at org.w3c.flute.parser.Parser.parserUnit(Parser.java:452)
at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:107)
at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:119)
at com.google.gwt.resources.css.GenerateCssAst.exec(GenerateCssAst.java:732)
at 
com.google.gwt.resources.rg.CssResourceGenerator.prepare(CssResourceGenerator.java:546)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1013)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1039)
at 
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:419)
at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:754)
at 
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:160)
at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
at 
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:87)
at 
com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:485)
at 
com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:443)
at 
com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:576)
at 
com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:306)
at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:248)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at 
com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
at 
com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)
at 
com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
at 
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
at com.google.gwt.dev.jjs.ast.JV

Re: if change css, need restart the server?

2016-06-12 Thread Dániel Hári
The problem is that in dev mode the src webapp folder copied to target only 
at startup, and DevMode does not refresh it. As a workaround you can use 
copy-resources 
,
 
that take care of applying changes on the fly.
here is the solution: http://stackoverflow.com/a/37774260/1386911 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot change CSS in dev mode

2016-06-12 Thread Dániel Hári
I found a way as a workaround use maven-resources-plugin copy-resources, this 
updates on the fly your target with every changes in src webapp.


maven-resources-plugin
3.0.1


copy-resources

validate

copy-resources


${project.build.directory}/gwt-webapp


src/main/webapp
true







-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Inject css into frame

2016-04-12 Thread David
Can somebody help me out? I do appreciate it.

On Sunday, April 10, 2016 at 10:10:13 AM UTC+8, David wrote:
>
> I have an original html like below:
>
> 
>   
>   
> 
>   
> 
>
> 
> 
> 
>  
>  
>   
> 
>
> 
> 
> 
>  
>  
>   
> 
>
> 
> 
> 
>  
> 
> 
>
> I must use GWT for this original html. I can use GWT.create() 
> and CssResource.ensureInjected() to inject css into top . Because the 
> injected css is not available for frame, I have to inject these css into 
> frame. I don't know why the following code doesn't work:
>
> ClientBundle globalClientBundle = GWT.create(GlobalClientBundle.class);
> globalClientBundle.css().ensureInjected();
> NodeList frameNodeList = document.getElementsByTagName("frame");
> int length = frameNodeList.getLength();
> logger.info("frame size=" + length);
> for (int i=0; i FrameElement frameElement = (FrameElement)frameNodeList.getItem(i);
> logger.info("Frame(id=" + frameElement.getId() + ", name=" + 
> frameElement.getName() + ")");
> Document ownerDocument = frameElement.getOwnerDocument();
> HeadElement head = ownerDocument.getHead();
> if (head != null) {
> StyleElement styleElement = ownerDocument.createStyleElement();
> HeadElement.as(head).appendChild(styleElement);
> String cssText = globalClientBundle.css().getText();
> styleElement.setInnerHTML(cssText);
>
> logger.info("Inject css into frame");
> }
> }
>
> The above code is executing well. But I cannot see any 

Inject css into frame

2016-04-09 Thread David
I have an original html like below:


  
  

  

   



 
 
  

   



 
 
  

   



 



I must use GWT for this original html. I can use GWT.create() 
and CssResource.ensureInjected() to inject css into top . Because the 
injected css is not available for frame, I have to inject these css into 
frame. I don't know why the following code doesn't work:

ClientBundle globalClientBundle = GWT.create(GlobalClientBundle.class);
globalClientBundle.css().ensureInjected();
NodeList frameNodeList = document.getElementsByTagName("frame");
int length = frameNodeList.getLength();
logger.info("frame size=" + length);
for (int i=0; i in html code.

Thanks,

David

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I am currently working on a GWT project and I am not able to understand how I can externalize CSS from a java file.

2016-03-01 Thread Thomas Broyer


On Tuesday, March 1, 2016 at 11:38:20 AM UTC+1, Ashwini wrote:
>
> I am supposed to separate styling part from a Java file (It doesn't have a 
> XML file layout for the UI) and I am not able to understand how to get this 
> done.
>
> Here's what I need to do:
> I should do it the UiBinder way, as the others are deprecated.
>

What do you mean by "the others"?
What do you mean by "the UiBinder way"? You said this is not using UiBinder 
currently, so do you want to migrate to using UiBinder or just using the 
"same underlying mechanism"?
In any case, have you 
read http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html 
(specifically the part about CssResource, and don't miss 
http://www.gwtproject.org/doc/latest/DevGuideGssVsCss.html, as the specific 
syntax described in the previous link *will be *deprecated in 2.8)

It's hard to help further without knowing what you currently have and what 
you want to change about it.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


I am currently working on a GWT project and I am not able to understand how I can externalize CSS from a java file.

2016-03-01 Thread Ashwini
I am supposed to separate styling part from a Java file (It doesn't have a 
XML file layout for the UI) and I am not able to understand how to get this 
done.

Here's what I need to do:
I should do it the UiBinder way, as the others are deprecated.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: migrating from css to gss (gwt 2.7) - CellWidgets compile errors ?

2016-01-17 Thread Julien Dramaix
The old CssResource (before GWT 2.7 or GWT 2.7+ without enabling GSS)
doesn't support several CSS3 syntax. If you want a full CSS3 support in
GWT, you have to turn GSS on.
That doesn't mean that you have to use GSS syntax because GSS is a superset
of CSS. It offers several additional features above CSS that you are not
obliged to use if you don't want them.

If you use SASS, LESS or other CSS preprocessor language, you have first to
compile it in pure CSS before to compile your GWT application (except if
you have a generator that is able to compile this preprocessor language).

Julien

On Sun, Jan 17, 2016 at 2:22 AM Stefan Falk  wrote:

> Hi!
>
> I just had the same issue using this Vaadin library, or rather say while
> testing it.
> What does this mean exactly? That GWT 2.8.0 won't support CSS at all and
> that I will have to convert all the CSS into GSS?
>
> I am asking because in that case I wouldn't even start to use CSS.
>
> BR; Stefan
>
>
> On Wednesday, 6 May 2015 17:38:22 UTC+2, Thomas Broyer wrote:
>>
>> Widgets have not yet been updated to GSS; it should be done by the 2.8
>> release (there was an attempt already –last week IIRC– but it had to be
>> reverted)
>>
>> On Wednesday, May 6, 2015 at 4:46:44 PM UTC+2, Thomas Lacroix wrote:
>>>
>>> Hi,
>>> I am migrating from css to gss using gwt 2.7 and the compile fails :
>>>
>>> Computing all possible rebind results for
>>> 'com.google.gwt.resources.client.CommonResources.Bundle'
>>> Rebinding
>>> com.google.gwt.resources.client.CommonResources.Bundle
>>>Invoking generator
>>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>>   Preparing method inlineBlockStyle
>>>  [ERROR] Your ClientBundle is referencing css files
>>> instead of gss. You will need to either convert these files to gss using
>>> the converter tool or turn on auto convertion in your gwt.xml file. Note:
>>> Autoconversion will be removed in the next version of GWT, you will need to
>>> move to gss.Add this line to your gwt.xml file to temporary avoid
>>> this:
>>>  [ERROR] Errors in
>>> 'com/google/gwt/resources/client/CommonResources.java'
>>> [ERROR] Line 57: Failed to resolve
>>> 'com.google.gwt.resources.client.CommonResources.Bundle' via deferred
>>> binding
>>>  Computing all possible rebind results for
>>> 'com.google.gwt.user.cellview.client.CellList.Resources'
>>> Rebinding
>>> com.google.gwt.user.cellview.client.CellList.Resources
>>>Invoking generator
>>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>>   Preparing method cellListStyle
>>>  [ERROR] Your ClientBundle is referencing css files
>>> instead of gss. You will need to either convert these files to gss using
>>> the converter tool or turn on auto convertion in your gwt.xml file. Note:
>>> Autoconversion will be removed in the next version of GWT, you will need to
>>> move to gss.Add this line to your gwt.xml file to temporary avoid
>>> this:
>>>  [ERROR] Errors in
>>> 'com/google/gwt/user/cellview/client/CellList.java'
>>> [ERROR] Line 147: Failed to resolve
>>> 'com.google.gwt.user.cellview.client.CellList.Resources' via deferred
>>> binding
>>>  Computing all possible rebind results for
>>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources'
>>> Rebinding
>>> com.google.gwt.user.cellview.client.CellBrowser.Resources
>>>Invoking generator
>>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>>   Preparing method cellBrowserStyle
>>>  [ERROR] Your ClientBundle is referencing css files
>>> instead of gss. You will need to either convert these files to gss using
>>> the converter tool or turn on auto convertion in your gwt.xml file. Note:
>>> Autoconversion will be removed in the next version of GWT, you will need to
>>> move to gss.Add this line to your gwt.xml file to temporary avoid
>>> this:
>>>  [ERROR] Errors in
>>> 'com/google/gwt/user/cellview/client/CellBrowser.java'
>>> [ERROR] Line 896: Failed to resolve
>>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources' via defe

Re: migrating from css to gss (gwt 2.7) - CellWidgets compile errors ?

2016-01-16 Thread Stefan Falk
Hi!

I just had the same issue using this Vaadin library, or rather say while 
testing it. 
What does this mean exactly? That GWT 2.8.0 won't support CSS at all and 
that I will have to convert all the CSS into GSS? 

I am asking because in that case I wouldn't even start to use CSS.

BR; Stefan

On Wednesday, 6 May 2015 17:38:22 UTC+2, Thomas Broyer wrote:
>
> Widgets have not yet been updated to GSS; it should be done by the 2.8 
> release (there was an attempt already –last week IIRC– but it had to be 
> reverted)
>
> On Wednesday, May 6, 2015 at 4:46:44 PM UTC+2, Thomas Lacroix wrote:
>>
>> Hi,
>> I am migrating from css to gss using gwt 2.7 and the compile fails :
>>
>> Computing all possible rebind results for 
>> 'com.google.gwt.resources.client.CommonResources.Bundle'
>> Rebinding 
>> com.google.gwt.resources.client.CommonResources.Bundle
>>Invoking generator 
>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>       Preparing method inlineBlockStyle
>>  [ERROR] Your ClientBundle is referencing css files 
>> instead of gss. You will need to either convert these files to gss using 
>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>> Autoconversion will be removed in the next version of GWT, you will need to 
>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>> this:
>>  [ERROR] Errors in 
>> 'com/google/gwt/resources/client/CommonResources.java'
>> [ERROR] Line 57: Failed to resolve 
>> 'com.google.gwt.resources.client.CommonResources.Bundle' via deferred 
>> binding
>>  Computing all possible rebind results for 
>> 'com.google.gwt.user.cellview.client.CellList.Resources'
>> Rebinding 
>> com.google.gwt.user.cellview.client.CellList.Resources
>>Invoking generator 
>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>   Preparing method cellListStyle
>>  [ERROR] Your ClientBundle is referencing css files 
>> instead of gss. You will need to either convert these files to gss using 
>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>> Autoconversion will be removed in the next version of GWT, you will need to 
>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>> this:
>>  [ERROR] Errors in 
>> 'com/google/gwt/user/cellview/client/CellList.java'
>> [ERROR] Line 147: Failed to resolve 
>> 'com.google.gwt.user.cellview.client.CellList.Resources' via deferred 
>> binding
>>  Computing all possible rebind results for 
>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources'
>> Rebinding 
>> com.google.gwt.user.cellview.client.CellBrowser.Resources
>>Invoking generator 
>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>   Preparing method cellBrowserStyle
>>  [ERROR] Your ClientBundle is referencing css files 
>> instead of gss. You will need to either convert these files to gss using 
>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>> Autoconversion will be removed in the next version of GWT, you will need to 
>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>> this:
>>  [ERROR] Errors in 
>> 'com/google/gwt/user/cellview/client/CellBrowser.java'
>> [ERROR] Line 896: Failed to resolve 
>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources' via deferred 
>> binding
>>
>> The errors goes away with the flag
>> 
>>
>> Am I doing something wrong or does it mean CellWidgets are not compatible 
>> with GSS for GWT 2.7 ? If do will it be for the next release ?
>> Thanks,
>> Thomas
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: migrating from css to gss (gwt 2.7) - CellWidgets compile errors ?

2015-11-05 Thread cellepo
Adding that in .gwt.xml fixed the same problem for me.

On Thursday, May 7, 2015 at 9:45:28 AM UTC-4, Julien Dramaix wrote:
>
> In GWT 2.7, you need to enable the automatic conversion of css file by 
> setting the configuration property CssResource.legacy to true:
>
> 
>
>
> In GWT 2.8, the compiler will choose the right resource file according to 
> your configuration (GSS enabled or not)
>
> On Wednesday, May 6, 2015 at 5:38:22 PM UTC+2, Thomas Broyer wrote:
>>
>> Widgets have not yet been updated to GSS; it should be done by the 2.8 
>> release (there was an attempt already –last week IIRC– but it had to be 
>> reverted)
>>
>> On Wednesday, May 6, 2015 at 4:46:44 PM UTC+2, Thomas Lacroix wrote:
>>>
>>> Hi,
>>> I am migrating from css to gss using gwt 2.7 and the compile fails :
>>>
>>> Computing all possible rebind results for 
>>> 'com.google.gwt.resources.client.CommonResources.Bundle'
>>> Rebinding 
>>> com.google.gwt.resources.client.CommonResources.Bundle
>>>Invoking generator 
>>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>>   Preparing method inlineBlockStyle
>>>  [ERROR] Your ClientBundle is referencing css files 
>>> instead of gss. You will need to either convert these files to gss using 
>>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>>> Autoconversion will be removed in the next version of GWT, you will need to 
>>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>>> this:
>>>  [ERROR] Errors in 
>>> 'com/google/gwt/resources/client/CommonResources.java'
>>> [ERROR] Line 57: Failed to resolve 
>>> 'com.google.gwt.resources.client.CommonResources.Bundle' via deferred 
>>> binding
>>>  Computing all possible rebind results for 
>>> 'com.google.gwt.user.cellview.client.CellList.Resources'
>>> Rebinding 
>>> com.google.gwt.user.cellview.client.CellList.Resources
>>>Invoking generator 
>>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>>   Preparing method cellListStyle
>>>  [ERROR] Your ClientBundle is referencing css files 
>>> instead of gss. You will need to either convert these files to gss using 
>>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>>> Autoconversion will be removed in the next version of GWT, you will need to 
>>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>>> this:
>>>  [ERROR] Errors in 
>>> 'com/google/gwt/user/cellview/client/CellList.java'
>>> [ERROR] Line 147: Failed to resolve 
>>> 'com.google.gwt.user.cellview.client.CellList.Resources' via deferred 
>>> binding
>>>  Computing all possible rebind results for 
>>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources'
>>> Rebinding 
>>> com.google.gwt.user.cellview.client.CellBrowser.Resources
>>>Invoking generator 
>>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>>   Preparing method cellBrowserStyle
>>>  [ERROR] Your ClientBundle is referencing css files 
>>> instead of gss. You will need to either convert these files to gss using 
>>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>>> Autoconversion will be removed in the next version of GWT, you will need to 
>>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>>> this:
>>>  [ERROR] Errors in 
>>> 'com/google/gwt/user/cellview/client/CellBrowser.java'
>>> [ERROR] Line 896: Failed to resolve 
>>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources' via deferred 
>>> binding
>>>
>>> The errors goes away with the flag
>>> 
>>>
>>> Am I doing something wrong or does it mean CellWidgets are not 
>>> compatible with GSS for GWT 2.7 ? If do will it be for the next release ?
>>> Thanks,
>>> Thomas
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CSS import without any prefix?

2015-10-01 Thread Marcin Okraszewski
Hi,
Is there any way to use @CssResource.Import but without applying any prefix 
to imported classes? So it behaves similar as extending the CSS interface 
with the base one annotated with @CssResource.Shared. The problem with 
extending the interface is that it requires to write all classes in CSS 
that were declared in the base interface. CssResource.ImportedWithPrefix 
with empty prefix ("") doesn't help - there is still "-" (dash) added in 
front. 

As of use case. We have a design team that is witting CSS that then are 
used directly in GWT. We still want to use advantages of CssResource, but 
it would be difficult to tell designers that here they should write the 
prefix and there not. Especially that they test CSS with a plain HTML, so 
that would not even work.

Thanks,
Marcin Okraszewski

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS ignored in SuperDev Mode GWT 2.6.1

2015-09-04 Thread Davide Micheletti
Hello Thomas,
the URL of my webapp is http://127.0.0.1:/Control_Panel.html.
i link the CSS in the HTML page with   and in the Control_Panel.gwt.xml with
 

2015-09-04 12:37 GMT+02:00 Thomas Broyer :

>
>
> On Friday, September 4, 2015 at 11:54:36 AM UTC+2, Davide Micheletti wrote:
>>
>> Hi all,
>> i just upgraded my GWT apps from 2.5.1 to 2.6.1 and i start the SuperDev
>> Mode.
>> It compile everything right but when i launch the app my CSS file is
>> ignored.
>> Here the Warn
>> [WARN] ignored get request: /MyStyle.css
>>
>> The strange thing is that not all the css is ignored but only the css
>> that overwrite the default widgets css.
>>
>> What can i do?
>>
>
> As I see it, the problem is that the request goes to the CodeServer rather
> than your web server (DevMode?)
> How do you launch the app (which URL), and what URL reference is used to
> link to the MyStyle.css (and by which mean is it loaded) ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CSS ignored in SuperDev Mode GWT 2.6.1

2015-09-04 Thread Thomas Broyer


On Friday, September 4, 2015 at 11:54:36 AM UTC+2, Davide Micheletti wrote:
>
> Hi all,
> i just upgraded my GWT apps from 2.5.1 to 2.6.1 and i start the SuperDev 
> Mode.
> It compile everything right but when i launch the app my CSS file is 
> ignored.
> Here the Warn
> [WARN] ignored get request: /MyStyle.css
>
> The strange thing is that not all the css is ignored but only the css that 
> overwrite the default widgets css.
>
> What can i do?
>

As I see it, the problem is that the request goes to the CodeServer rather 
than your web server (DevMode?)
How do you launch the app (which URL), and what URL reference is used to 
link to the MyStyle.css (and by which mean is it loaded) ?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


CSS ignored in SuperDev Mode GWT 2.6.1

2015-09-04 Thread Davide Micheletti
Hi all,
i just upgraded my GWT apps from 2.5.1 to 2.6.1 and i start the SuperDev
Mode.
It compile everything right but when i launch the app my CSS file is
ignored.
Here the Warn
[WARN] ignored get request: /MyStyle.css

The strange thing is that not all the css is ignored but only the css that
overwrite the default widgets css.

What can i do?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Set css from GWT (dynamically) to element with multiple styles associated.

2015-07-15 Thread Jan Zet


I have an instance of TabLayoutPanel where number of tabs would be set 
dynamically. Therefore to align tabs to fill whole width of the screen I 
need to

1) Override gwt-TabTayoutPanel default value width 16384px with auto 
!important (done);

2) Set width of gwt-TabTayoutPanel*Tab* to proper percentage value (e.g. 2 
tabs = 50%. 3 tabs = 33%, 4 tabs = 25% and so on). I have a simple function 
for that which goes like this (simplified):

Math.floor(getWidgetCount()/100 + "%");

(done)

3) Now here goes my question: how can i set the width of gwt-TabTayoutPanel
*Tab* from Java? I bolded *Tabs* because when i use this.getStyleName(); i 
got in return gwt-TabLayoutPanel not gwt-TabLayoutPanel*Tab* .

In sum, I can divide my question in two:

-how to access TabLayoutPanel*Tab* css class from GWT?;

-how to set said class width with my dynamically generated percentage 
number?;

My additional thought: Is GSS can do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: migrating from css to gss (gwt 2.7) - CellWidgets compile errors ?

2015-05-07 Thread Julien Dramaix
In GWT 2.7, you need to enable the automatic conversion of css file by 
setting the configuration property CssResource.legacy to true:




In GWT 2.8, the compiler will choose the right resource file according to 
your configuration (GSS enabled or not)

On Wednesday, May 6, 2015 at 5:38:22 PM UTC+2, Thomas Broyer wrote:
>
> Widgets have not yet been updated to GSS; it should be done by the 2.8 
> release (there was an attempt already –last week IIRC– but it had to be 
> reverted)
>
> On Wednesday, May 6, 2015 at 4:46:44 PM UTC+2, Thomas Lacroix wrote:
>>
>> Hi,
>> I am migrating from css to gss using gwt 2.7 and the compile fails :
>>
>>  Computing all possible rebind results for 
>> 'com.google.gwt.resources.client.CommonResources.Bundle'
>> Rebinding 
>> com.google.gwt.resources.client.CommonResources.Bundle
>>Invoking generator 
>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>   Preparing method inlineBlockStyle
>>  [ERROR] Your ClientBundle is referencing css files 
>> instead of gss. You will need to either convert these files to gss using 
>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>> Autoconversion will be removed in the next version of GWT, you will need to 
>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>> this:
>>  [ERROR] Errors in 
>> 'com/google/gwt/resources/client/CommonResources.java'
>> [ERROR] Line 57: Failed to resolve 
>> 'com.google.gwt.resources.client.CommonResources.Bundle' via deferred 
>> binding
>>  Computing all possible rebind results for 
>> 'com.google.gwt.user.cellview.client.CellList.Resources'
>> Rebinding 
>> com.google.gwt.user.cellview.client.CellList.Resources
>>    Invoking generator 
>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>   Preparing method cellListStyle
>>  [ERROR] Your ClientBundle is referencing css files 
>> instead of gss. You will need to either convert these files to gss using 
>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>> Autoconversion will be removed in the next version of GWT, you will need to 
>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>> this:
>>  [ERROR] Errors in 
>> 'com/google/gwt/user/cellview/client/CellList.java'
>> [ERROR] Line 147: Failed to resolve 
>> 'com.google.gwt.user.cellview.client.CellList.Resources' via deferred 
>> binding
>>  Computing all possible rebind results for 
>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources'
>> Rebinding 
>> com.google.gwt.user.cellview.client.CellBrowser.Resources
>>Invoking generator 
>> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>>   Preparing method cellBrowserStyle
>>  [ERROR] Your ClientBundle is referencing css files 
>> instead of gss. You will need to either convert these files to gss using 
>> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
>> Autoconversion will be removed in the next version of GWT, you will need to 
>> move to gss.Add this line to your gwt.xml file to temporary avoid 
>> this:
>>  [ERROR] Errors in 
>> 'com/google/gwt/user/cellview/client/CellBrowser.java'
>> [ERROR] Line 896: Failed to resolve 
>> 'com.google.gwt.user.cellview.client.CellBrowser.Resources' via deferred 
>> binding
>>
>> The errors goes away with the flag
>> 
>>
>> Am I doing something wrong or does it mean CellWidgets are not compatible 
>> with GSS for GWT 2.7 ? If do will it be for the next release ?
>> Thanks,
>> Thomas
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: migrating from css to gss (gwt 2.7) - CellWidgets compile errors ?

2015-05-06 Thread Thomas Broyer
Widgets have not yet been updated to GSS; it should be done by the 2.8 
release (there was an attempt already –last week IIRC– but it had to be 
reverted)

On Wednesday, May 6, 2015 at 4:46:44 PM UTC+2, Thomas Lacroix wrote:
>
> Hi,
> I am migrating from css to gss using gwt 2.7 and the compile fails :
>
>  Computing all possible rebind results for 
> 'com.google.gwt.resources.client.CommonResources.Bundle'
> Rebinding 
> com.google.gwt.resources.client.CommonResources.Bundle
>Invoking generator 
> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>   Preparing method inlineBlockStyle
>      [ERROR] Your ClientBundle is referencing css files 
> instead of gss. You will need to either convert these files to gss using 
> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
> Autoconversion will be removed in the next version of GWT, you will need to 
> move to gss.Add this line to your gwt.xml file to temporary avoid 
> this:
>  [ERROR] Errors in 
> 'com/google/gwt/resources/client/CommonResources.java'
> [ERROR] Line 57: Failed to resolve 
> 'com.google.gwt.resources.client.CommonResources.Bundle' via deferred 
> binding
>  Computing all possible rebind results for 
> 'com.google.gwt.user.cellview.client.CellList.Resources'
> Rebinding 
> com.google.gwt.user.cellview.client.CellList.Resources
>Invoking generator 
> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>   Preparing method cellListStyle
>  [ERROR] Your ClientBundle is referencing css files 
> instead of gss. You will need to either convert these files to gss using 
> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
> Autoconversion will be removed in the next version of GWT, you will need to 
> move to gss.Add this line to your gwt.xml file to temporary avoid 
> this:
>  [ERROR] Errors in 
> 'com/google/gwt/user/cellview/client/CellList.java'
> [ERROR] Line 147: Failed to resolve 
> 'com.google.gwt.user.cellview.client.CellList.Resources' via deferred 
> binding
>  Computing all possible rebind results for 
> 'com.google.gwt.user.cellview.client.CellBrowser.Resources'
> Rebinding 
> com.google.gwt.user.cellview.client.CellBrowser.Resources
>Invoking generator 
> com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
>   Preparing method cellBrowserStyle
>  [ERROR] Your ClientBundle is referencing css files 
> instead of gss. You will need to either convert these files to gss using 
> the converter tool or turn on auto convertion in your gwt.xml file. Note: 
> Autoconversion will be removed in the next version of GWT, you will need to 
> move to gss.Add this line to your gwt.xml file to temporary avoid 
> this:
>  [ERROR] Errors in 
> 'com/google/gwt/user/cellview/client/CellBrowser.java'
> [ERROR] Line 896: Failed to resolve 
> 'com.google.gwt.user.cellview.client.CellBrowser.Resources' via deferred 
> binding
>
> The errors goes away with the flag
> 
>
> Am I doing something wrong or does it mean CellWidgets are not compatible 
> with GSS for GWT 2.7 ? If do will it be for the next release ?
> Thanks,
> Thomas
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


migrating from css to gss (gwt 2.7) - CellWidgets compile errors ?

2015-05-06 Thread 'Thomas Lacroix' via Google Web Toolkit
Hi,
I am migrating from css to gss using gwt 2.7 and the compile fails :

 Computing all possible rebind results for 
'com.google.gwt.resources.client.CommonResources.Bundle'
Rebinding com.google.gwt.resources.client.CommonResources.Bundle
   Invoking generator 
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
  Preparing method inlineBlockStyle
 [ERROR] Your ClientBundle is referencing css files 
instead of gss. You will need to either convert these files to gss using 
the converter tool or turn on auto convertion in your gwt.xml file. Note: 
Autoconversion will be removed in the next version of GWT, you will need to 
move to gss.Add this line to your gwt.xml file to temporary avoid 
this:
 [ERROR] Errors in 
'com/google/gwt/resources/client/CommonResources.java'
[ERROR] Line 57: Failed to resolve 
'com.google.gwt.resources.client.CommonResources.Bundle' via deferred 
binding
 Computing all possible rebind results for 
'com.google.gwt.user.cellview.client.CellList.Resources'
Rebinding com.google.gwt.user.cellview.client.CellList.Resources
   Invoking generator 
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
  Preparing method cellListStyle
 [ERROR] Your ClientBundle is referencing css files 
instead of gss. You will need to either convert these files to gss using 
the converter tool or turn on auto convertion in your gwt.xml file. Note: 
Autoconversion will be removed in the next version of GWT, you will need to 
move to gss.Add this line to your gwt.xml file to temporary avoid 
this:
 [ERROR] Errors in 
'com/google/gwt/user/cellview/client/CellList.java'
[ERROR] Line 147: Failed to resolve 
'com.google.gwt.user.cellview.client.CellList.Resources' via deferred 
binding
 Computing all possible rebind results for 
'com.google.gwt.user.cellview.client.CellBrowser.Resources'
Rebinding 
com.google.gwt.user.cellview.client.CellBrowser.Resources
   Invoking generator 
com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
  Preparing method cellBrowserStyle
 [ERROR] Your ClientBundle is referencing css files 
instead of gss. You will need to either convert these files to gss using 
the converter tool or turn on auto convertion in your gwt.xml file. Note: 
Autoconversion will be removed in the next version of GWT, you will need to 
move to gss.Add this line to your gwt.xml file to temporary avoid 
this:
 [ERROR] Errors in 
'com/google/gwt/user/cellview/client/CellBrowser.java'
[ERROR] Line 896: Failed to resolve 
'com.google.gwt.user.cellview.client.CellBrowser.Resources' via deferred 
binding

The errors goes away with the flag


Am I doing something wrong or does it mean CellWidgets are not compatible 
with GSS for GWT 2.7 ? If do will it be for the next release ?
Thanks,
Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How to dynamically load css style in GWT-based application

2015-04-09 Thread Ltearno
Hi !

The tool HexaCss for GWT answers exactly your needs (as i understand them).

With it you can produce several CSS files for the same GWT application (and 
still using them in a type-safe way, like with CssResource) and you can 
then change them dynamically without reloading the application.

Here is the link to the tool (open source on github)
http://www.lteconsulting.fr/hexacss/

I hope this helps you !

Thanks
Arnaud

Le mercredi 12 décembre 2007 10:22:59 UTC+1, yadong a écrit :
>
> I am working on an web application in which the css style varies based 
> on different user, I am curious how to load css file dynamically. 
> Currently we use JSTL tag to access server side parameter to determine 
> which css file needs to be used.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-04 Thread Arnaud TOURNIER
Hi again Ed, sorry i realize i didn't really answer your question !

So as for the size, the generated CSS file size for the whole app is ~20ko
so i consider it is ok to download it from a  tag in the host page.

I see a potential optimization where the server could embed the default
theme in the host page, in order to avoid the network round-trip to load
the css file. But since the production application i made with this project
is accessed from a LAN, i didn't yet put any effort in that direction.

I shall soon produce a roadmap for this HexaCss, so that if people are
interested, i can prioriticize the features and organize contributions...

Thanks
Arnaud

Le sam. 4 avr. 2015 à 11:37, Arnaud TOURNIER  a écrit :

> Hi Ed,
>
> This project is indeed used in one big application in production (100k+
> loc on the client side).
> I use it mainly to maintain 3 different themes for the application
> (testing env, preproduction and production). This allows my users to
> visually know which platform they are using.
>
> Because it works well, i had the idea to extract it from the main project
> and give it to the community.
>
> So of course, there might be some work to be fully industrialized, in
> order to adapt to any context.
>
> Any contribution, idea and so on is of course welcome !
>
> Thanks
> Arnaud Tournier
>
>
> Le ven. 3 avr. 2015 à 14:57, Ed  a écrit :
>
>> Awesome work.
>> How is your experience with using it in production ? (Load/size/etc...)
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/
>> topic/google-web-toolkit/DWgZoxJyuFs/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-04 Thread Arnaud TOURNIER
Hi Ed,

This project is indeed used in one big application in production (100k+ loc
on the client side).
I use it mainly to maintain 3 different themes for the application (testing
env, preproduction and production). This allows my users to visually know
which platform they are using.

Because it works well, i had the idea to extract it from the main project
and give it to the community.

So of course, there might be some work to be fully industrialized, in order
to adapt to any context.

Any contribution, idea and so on is of course welcome !

Thanks
Arnaud Tournier

Le ven. 3 avr. 2015 à 14:57, Ed  a écrit :

> Awesome work.
> How is your experience with using it in production ? (Load/size/etc...)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/DWgZoxJyuFs/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-03 Thread Ed
I am curious to the reaction of the gwt dev team member.
Maybe you should drop this in the contributor gwt forum.

I like your approach but ..
In my experience css/html should be put as much as possible outside of gwt, 
and the html/css should by lazy loaded when needed, a bit like RedHat errai 
is using. Some advantages:
1) Flexibility: changing html/css with changing code. 
2) Css/Html experts are much easier to find.
3) Faster changing of css. Css changes in gwt are not always fast because 
java isn't well suited for it, java is verbose, especially when working 
with themes (references from css to static methods for example).
4) Better integration/binding of the html/css with existing published cms 
files (json/xml)
...

This results in a much higher productivity, especially when you have all 
clients wanting their own themes/styling, and gwt developers are very hard 
to find. (I tried different approaches: putting all css/html inside gwt 
(cssresource), outside, a mixture, etc..)

I would love to see that GWT core incorporate some of the Errai 
templating/binding mechanisms in the future.
(I am planning to play with some of the errai mechanism and make it work 
with my current cms xml files I use... I just have to find some time :(

just my 50 cents.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-03 Thread Ed
I am curious to the reaction of the gwt dev team member.
Maybe you should drop this in the contributor gwt forum.

I like your approach, especially in my experience of the last 7 years with 
gwt, css/html should be put as much as possible outside of gwt, a bit like 
RedHat errai is using. Some advantages:
1) Flexibility: changing html/css with changing code. 
2) Css/Html experts are much easier to find.
3) Faster changing of css. Css changes in gwt are not always fast because 
java isn't well suited for it, java is verbose, especially when working 
with themes (references from css to static methods for example).
4) Better integration/binding of the html/css with existing published cms 
files (json/xml)
...

This results in a much higher productivity, especially when you have all 
clients wanting their own themes/styling, and gwt developers are very hard 
to find.

I would love to see that GWT core incorporate some of the Errai 
templating/binding mechanisms in the future.
(I am planning to play with some of the errai mechanism and make it work 
with my current cms xml files I use... I just have to find some time :(

just my 50 cents.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-03 Thread Ed
Awesome work.
How is your experience with using it in production ? (Load/size/etc...)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-01 Thread Arnaud TOURNIER
Yes, i just realized it was April fool's day !!!

Really funny because it's been a long time i wanted to announce that, by
coincidence it happens today :)

I might re-announce it next week, just to kill the confusion !

Thanks !
Arnaud

Le mer. 1 avr. 2015 à 16:24, Vassilis Virvilis  a écrit :

> What a terrible day (April fools) to announce such an interesting library.
>
> On Wed, Apr 1, 2015 at 3:43 PM, David  wrote:
>
>> Very interesting, great work!
>>
>> On Wed, Apr 1, 2015 at 12:29 PM, Peter Donald 
>> wrote:
>>
>>> This is fantastic and something I have felt the need for. Looking
>>> forward to giving it a go.
>>>
>>> On Wed, Apr 1, 2015 at 8:08 PM, Ltearno  wrote:
>>> > Hello Everyone,
>>> >
>>> > I come up here to let you know about a library i build, aiming at
>>> > integrating efficiently any CSS framework with GWT.
>>> >
>>> > This allows your application to type-safely use Sass, Less, Susy, GSS,
>>> > vanilla css or any other.
>>> >
>>> > From the developper point of view, it works almost the same way as
>>> > CssResource which is the default in GWT.
>>> >
>>> > Link : http://www.lteconsulting.fr/hexacss/
>>> >
>>> > Benefits :
>>> >
>>> >  - you can use any css framework and not only GSS (especially Sass and
>>> Less
>>> > have a very good variable and mixin systems)
>>> >  - you can bind multiple CSS files to one GWT application. This allows
>>> you
>>> > to theme your application in a very effective way
>>> >  - you can then switch your application theme dynamically without
>>> reloading
>>> > the application
>>> >  - there is still optimization happening : non used CSS classes will be
>>> > pruned. Also there is name obfuscation, for reducing CSS file size
>>> >  - the API is very similar to CssResource so you don't have much to
>>> learn to
>>> > use it.
>>> >
>>> > The product page is here : http://www.lteconsulting.fr/hexacss/
>>> > The product page tells you how to use it, how to build it. It has
>>> three use
>>> > case demos.
>>> > The project is hosted on github :
>>> https://www.github.com/ltearno/hexa.tools
>>> >
>>> > Of course, it is open source and will stay so !
>>> >
>>> > Stay tuned, because i have other announcements to make soon
>>> >
>>> > Please tell me if you find the idea interesting and if it might help
>>> you. I
>>> > also very much welcome anyone wishing to contribute to this project !
>>> >
>>> > Thanks
>>> >
>>> > Arnaud Tournier
>>> > www.lteconsulting.fr
>>> > twitter : @ltearno
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "Google Web Toolkit" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> an
>>> > email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> > To post to this group, send email to
>>> google-web-toolkit@googlegroups.com.
>>> > Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>>> --
>>> Cheers,
>>>
>>> Peter Donald
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options

Re: New library to integrate any CSS framework with GWT

2015-04-01 Thread Vassilis Virvilis
What a terrible day (April fools) to announce such an interesting library.

On Wed, Apr 1, 2015 at 3:43 PM, David  wrote:

> Very interesting, great work!
>
> On Wed, Apr 1, 2015 at 12:29 PM, Peter Donald 
> wrote:
>
>> This is fantastic and something I have felt the need for. Looking
>> forward to giving it a go.
>>
>> On Wed, Apr 1, 2015 at 8:08 PM, Ltearno  wrote:
>> > Hello Everyone,
>> >
>> > I come up here to let you know about a library i build, aiming at
>> > integrating efficiently any CSS framework with GWT.
>> >
>> > This allows your application to type-safely use Sass, Less, Susy, GSS,
>> > vanilla css or any other.
>> >
>> > From the developper point of view, it works almost the same way as
>> > CssResource which is the default in GWT.
>> >
>> > Link : http://www.lteconsulting.fr/hexacss/
>> >
>> > Benefits :
>> >
>> >  - you can use any css framework and not only GSS (especially Sass and
>> Less
>> > have a very good variable and mixin systems)
>> >  - you can bind multiple CSS files to one GWT application. This allows
>> you
>> > to theme your application in a very effective way
>> >  - you can then switch your application theme dynamically without
>> reloading
>> > the application
>> >  - there is still optimization happening : non used CSS classes will be
>> > pruned. Also there is name obfuscation, for reducing CSS file size
>> >  - the API is very similar to CssResource so you don't have much to
>> learn to
>> > use it.
>> >
>> > The product page is here : http://www.lteconsulting.fr/hexacss/
>> > The product page tells you how to use it, how to build it. It has three
>> use
>> > case demos.
>> > The project is hosted on github :
>> https://www.github.com/ltearno/hexa.tools
>> >
>> > Of course, it is open source and will stay so !
>> >
>> > Stay tuned, because i have other announcements to make soon
>> >
>> > Please tell me if you find the idea interesting and if it might help
>> you. I
>> > also very much welcome anyone wishing to contribute to this project !
>> >
>> > Thanks
>> >
>> > Arnaud Tournier
>> > www.lteconsulting.fr
>> > twitter : @ltearno
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Google Web Toolkit" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to google-web-toolkit+unsubscr...@googlegroups.com.
>> > To post to this group, send email to
>> google-web-toolkit@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/google-web-toolkit.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Cheers,
>>
>> Peter Donald
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-01 Thread David
Very interesting, great work!

On Wed, Apr 1, 2015 at 12:29 PM, Peter Donald 
wrote:

> This is fantastic and something I have felt the need for. Looking
> forward to giving it a go.
>
> On Wed, Apr 1, 2015 at 8:08 PM, Ltearno  wrote:
> > Hello Everyone,
> >
> > I come up here to let you know about a library i build, aiming at
> > integrating efficiently any CSS framework with GWT.
> >
> > This allows your application to type-safely use Sass, Less, Susy, GSS,
> > vanilla css or any other.
> >
> > From the developper point of view, it works almost the same way as
> > CssResource which is the default in GWT.
> >
> > Link : http://www.lteconsulting.fr/hexacss/
> >
> > Benefits :
> >
> >  - you can use any css framework and not only GSS (especially Sass and
> Less
> > have a very good variable and mixin systems)
> >  - you can bind multiple CSS files to one GWT application. This allows
> you
> > to theme your application in a very effective way
> >  - you can then switch your application theme dynamically without
> reloading
> > the application
> >  - there is still optimization happening : non used CSS classes will be
> > pruned. Also there is name obfuscation, for reducing CSS file size
> >  - the API is very similar to CssResource so you don't have much to
> learn to
> > use it.
> >
> > The product page is here : http://www.lteconsulting.fr/hexacss/
> > The product page tells you how to use it, how to build it. It has three
> use
> > case demos.
> > The project is hosted on github :
> https://www.github.com/ltearno/hexa.tools
> >
> > Of course, it is open source and will stay so !
> >
> > Stay tuned, because i have other announcements to make soon
> >
> > Please tell me if you find the idea interesting and if it might help
> you. I
> > also very much welcome anyone wishing to contribute to this project !
> >
> > Thanks
> >
> > Arnaud Tournier
> > www.lteconsulting.fr
> > twitter : @ltearno
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to google-web-toolkit+unsubscr...@googlegroups.com.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > Visit this group at http://groups.google.com/group/google-web-toolkit.
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Cheers,
>
> Peter Donald
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: New library to integrate any CSS framework with GWT

2015-04-01 Thread Peter Donald
This is fantastic and something I have felt the need for. Looking
forward to giving it a go.

On Wed, Apr 1, 2015 at 8:08 PM, Ltearno  wrote:
> Hello Everyone,
>
> I come up here to let you know about a library i build, aiming at
> integrating efficiently any CSS framework with GWT.
>
> This allows your application to type-safely use Sass, Less, Susy, GSS,
> vanilla css or any other.
>
> From the developper point of view, it works almost the same way as
> CssResource which is the default in GWT.
>
> Link : http://www.lteconsulting.fr/hexacss/
>
> Benefits :
>
>  - you can use any css framework and not only GSS (especially Sass and Less
> have a very good variable and mixin systems)
>  - you can bind multiple CSS files to one GWT application. This allows you
> to theme your application in a very effective way
>  - you can then switch your application theme dynamically without reloading
> the application
>  - there is still optimization happening : non used CSS classes will be
> pruned. Also there is name obfuscation, for reducing CSS file size
>  - the API is very similar to CssResource so you don't have much to learn to
> use it.
>
> The product page is here : http://www.lteconsulting.fr/hexacss/
> The product page tells you how to use it, how to build it. It has three use
> case demos.
> The project is hosted on github : https://www.github.com/ltearno/hexa.tools
>
> Of course, it is open source and will stay so !
>
> Stay tuned, because i have other announcements to make soon
>
> Please tell me if you find the idea interesting and if it might help you. I
> also very much welcome anyone wishing to contribute to this project !
>
> Thanks
>
> Arnaud Tournier
> www.lteconsulting.fr
> twitter : @ltearno
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.



-- 
Cheers,

Peter Donald

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


New library to integrate any CSS framework with GWT

2015-04-01 Thread Ltearno
Hello Everyone,

I come up here to let you know about a library i build, aiming at* 
integrating efficiently any CSS framework with GWT*.

This allows your application to type-safely use *Sass, Less, Susy, GSS, 
vanilla css or any other*.

>From the developper point of view, it *works almost the same way as 
CssResource* which is the default in GWT.

Link : http://www.lteconsulting.fr/hexacss/

Benefits :

 - you can use *any css framework* and not only GSS (especially Sass and 
Less have a very good variable and mixin systems)
 - you can bind* multiple CSS files to one GWT application*. This allows 
you to theme your application in a very effective way
 - you can then *switch your application theme dynamically* without 
reloading the application
 - there is *still optimization happening* : non used CSS classes will be 
pruned. Also there is name obfuscation, for reducing CSS file size
 - the *API is very similar to CssResource* so you don't have much to learn 
to use it.

The product page is here : http://www.lteconsulting.fr/hexacss/
The product page tells you how to use it, how to build it. It has three use 
case demos.
The project is hosted on github : https://www.github.com/ltearno/hexa.tools

Of course, it is open source and will stay so !

Stay tuned, because i have other announcements to make soon

Please tell me if you find the idea interesting and if it might help you. I 
also very much welcome anyone wishing to contribute to this project !

Thanks

Arnaud Tournier
www.lteconsulting.fr
twitter : @ltearno

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Inject external css into Panel widget

2015-03-28 Thread corso321


Does anyone know how can I achieve that?

http://stackoverflow.com/questions/29321325/inject-external-css-into-panel-widget

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Simple tool for generating CssResource files from css/gss stylesheets

2015-03-21 Thread Ali Akhtar
Its often a pain to have to generate CssResource files from .css / .gss 
stylesheets.

Intellij has a tool that works reasonably well, but it seems unable to 
handle classes with hyphens or numbers in them. E.g it converts both 
"foo-bar-1" and "foo-bar-2" to "fooBar()", which results in compile errors 
due to duplicate methods.

This is especially a problem with Bootstrap and Foundation, where its very 
common to have classes in the "foo-bar-N" format. Intellij also seems quite 
slow at doing this for large files.

I've written a quick tool which should simplify the process, 
at: https://github.com/aliakhtar/EzGss . The readme file describes the 
usage + some examples/

It handles almost all formats in css class names, and it also handles 
reserved java keywords.

Feedback / pull requests welcome.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: cursor: pointer; css does not work with CustomWidget in GWT

2015-03-18 Thread Vikas Yadav
issue is resolved actually below line of HEADER VIEW cause the problem i 
don''t set the position and size of LayoutPanel





On Wednesday, March 18, 2015 at 1:12:40 PM UTC+5:30, Vikas Yadav wrote:
>
>
> .gwt-Label {
> cursor: pointer;
> cursor: hand;
> }
>
>
>
> .gwt-Label  style work with labels Which I add in SplitLayoutPanel in 
> below codes but I add same style in customwidget  *HeaderView*   .  it 
> will not work with * HeaderView* customWidget *logoutLabel* .
>
>
> Below is the code for* MAIN VIEW* and *HEADER VIEW*
>
>
> //MAIN VIEW CODE START
>
>
> 
> 
>
> 
> 
> 
>
> 
> 
> 
> 
> Application Footer
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
>
>
> 
>
> //MAIN VIEW CODE END
>
>
> // HEADER VIEW CODE START
>
>
>
> 
>
> 
> 
> 
>
> 
>  horizontalAlignment="ALIGN_RIGHT">
> 
>
> 
>  horizontalAlignment="ALIGN_LEFT" 
> addStyleNames="{style.gwt-Label}">
> 
>
> 
>  horizontalAlignment="ALIGN_CENTER">
> 
> 
>
> 
>  horizontalAlignment="ALIGN_CENTER" 
> addStyleNames="{style.gwt-Label}">
>
>
> 
>
>
> 
> 
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


cursor: pointer; css does not work with CustomWidget in GWT

2015-03-18 Thread Vikas Yadav

.gwt-Label {
cursor: pointer;
cursor: hand;
}



.gwt-Label  style work with labels Which I add in SplitLayoutPanel in below 
codes but I add same style in customwidget  *HeaderView*   .  it will not 
work with * HeaderView* customWidget *logoutLabel* .


Below is the code for* MAIN VIEW* and *HEADER VIEW*


//MAIN VIEW CODE START













Application Footer


















//MAIN VIEW CODE END


// HEADER VIEW CODE START



































-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode and CSS styleNames (GWT 2.7)

2015-03-10 Thread Thomas Broyer
Could you try with 2.8.0-SNAPSHOT? I read somewhere there's a bug in property 
resolution in 2.7 (same bug that affects logging too)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode and CSS styleNames (GWT 2.7)

2015-03-10 Thread Martin
Same problem here.  It looks like the CssResource.style property doesn't do 
its job anymore.  Any known workarounds?

Thanks.

On Friday, March 6, 2015 at 10:44:44 AM UTC-5, Alex Ph wrote:
>
> Hi,
> after recompiling my application through superDevMode it looks like the 
> CssResource.style property is not considered anymore. In normal mode, the 
> value is set to "stable-notype" and in superDevMode all css styles binded 
> with CssResource are displayed in "pretty" / "stable" mode. Could I "tell" 
> the superDevMode to use the "stable-notype" property again?
>
> Thnx
> Alex
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


SuperDevMode and CSS styleNames (GWT 2.7)

2015-03-06 Thread Alex Ph
Hi,
after recompiling my application through superDevMode it looks like the 
CssResource.style property is not considered anymore. In normal mode, the 
value is set to "stable-notype" and in superDevMode all css styles binded 
with CssResource are displayed in "pretty" / "stable" mode. Could I "tell" 
the superDevMode to use the "stable-notype" property again?

Thnx
Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-04 Thread Ed Bras
Ahhh, yes, you explained that before, sorry for that.
All clear now, I have to think about how to use it.

​

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-04 Thread Jens


> > Because GWT can not convert it on a file-by-file basis. 
> Why not ?
>

I have already said it before: in case of old css a constant might be used 
in one file but is defined in a different file. In case of gss you might 
use a @mixin in one file but that @mixin is defined in a different file. 

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-04 Thread Ed Bras
Thanks @Jens.

> Because GWT can not convert it on a file-by-file basis.
Why not ?
​

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-04 Thread Jens

>
>
> If I understand you correctly, I could be able to mix css and gss files by 
> using the correct extension. In case it concerns a css file, the gss 
> mechanism will sue the css2gss converter to create the gss file before 
> passing it to to the closure compiler. But that is what I am doing, so why 
> isn't that allowed?
>

Because GWT can not convert it on a file-by-file basis. All files need to 
be merged to get complete information for parsing. So all files need to be 
of the same type.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-04 Thread Ed Bras
Thanks for the explanation @Jens. I think I understand why the extension is
important. So we can't  let go if that requirement.
But let's go back to the original error (subject of the topic).
If I understand you correctly, I could be able to mix css and gss files by
using the correct extension. In case it concerns a css file, the gss
mechanism will sue the css2gss converter to create the gss file before
passing it to to the closure compiler. But that is what I am doing, so why
isn't that allowed?
- Ed
​

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-04 Thread Jens
What you are asking for is simply not possible in a reliable way under the 
requirement that old css syntax needs to be converted to gss syntax to 
avoid producing compile errors when activating GSS for a project.

When I give you (which is hopefully similar to your use case):

@Source({ app-constants.gss, library-constants.css, library-mywidget.css, 
app-mywidget.gss })

Then what should GWT do to produce valid GSS code that can be handed over 
to closure stylesheets? 

- The ordering of files is important as later files can override CSS rules 
in previous files (e.g. library-mywidget could produce a red widget by 
default and app-mywidget overrides it to a blue gradient)
- Any css file might be compatible with GSS as-is but maybe it is not. If 
you can not use the file extension to decide it you need to try parsing a 
css file using a GSS parser. If it fails it is incompatible and would need 
to be converted using the css2gss in-memory converter.
- app-mywidget.gss might reuse constants provided by library-constants.css 
as well use constants from app-constants.gss.


So what would you do now?

1.) You can not try parsing each file one-by-one to figure out if it is GSS 
compatible because each file might use constants provided by other files. 
If the parser does not see the constant definition it would fail even 
though the file might be GSS compatible. The parser needs complete 
knowledge.

2.) Because of the previous you need to merge all files before parsing so 
you have all information available. Parsing the merged data might work if 
the css files are GSS compatible in which case you would hand over the 
merge result to closure stylesheet to parse it again and produce the final 
css output. However if the merged data fails to parse then you know that 
some files are incompatible but not wich ones. So you don't know if its 
because of a GSS syntax error in one of the gss files (in which case you 
would fail the compile) or if its because one of the css files contain 
legacy syntax that needs to be converted using the in-memory converter.
To figure that out you would need to assume that css files are 
incompatible, merge just the css files (because of 1. and because the 
converter does not want gss input)), run them through the css2gss converter 
and finally merge the conversion result with the remaining gss files. 
However when doing so you might have changed the ordering of css rules that 
needs to be avoided as it changes rendering behavior.

So the only way to make it fool proof for GWT is to assume that *.css files 
must always be converted and that *.gss files can be used as-is and that 
you can never mix them for a given CssResource. And that is exactly what 
GWT does.



So in your case you need to provide gss and css files for your widgets. You 
can generate the gss files from the css files by using the css2gss tool 
provided in gwt-user.jar. GWT itself does the same for its widgets.



-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-04 Thread Ed Bras
Thanks @Jens, I understand what you mean.
However, I still not see a could reason to force the gss file extension. I
think we can assume that the developer knows what he is doing and it's his
responsibility to feed the gss engine with the correct files, giving him
the freedom to use any extension he wants.

I understand that it's a nice separation, and it's how other css generation
tools work.
But Gwt is a bit different and does more then just css generation, so in
this case it has some blocking disadvantages.
Advantages of allowing the css extension: shared code use, merging to gss
step by step.

Let me explain it through my use case:
I have a gwt code base that exists of many widget having their own resource
bundle and css files (empty mostly, following to the adapter pattern).
New projects want to use css3 features, as such need the gss mechanism.
However, these shared resource bundles can't be changed, as it results in
breaking other projects using them. Neither do I want to change them as
mostly they concern empty css files that aren't gss dependent, which they
would look like it if they have the gss extension.

To solve this I see 2 options: duplicating the shared css files and giving
them the gss extension -> a lot of work, messy maintainable code.
Patching the gwt gss engine to allow for css files with the css extension.
I think I go for the last option as it seems an easy one looking at the gss
code.

I would suggest to allow for the css extension. Optional with a console
warning that can be suppressed (like done in other parts of the gwt code).

I understand that the css files might contain some gwt syntax like @def
that might result in unwanted results when processed by gss. But isn't that
the same as letting Spring eat some hibernate syntax that it understands
and results in strange outcome It's the responsibility of the developer
to overcome that So give him that freedom

What do you think?
Just my 50 cents.


​

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-03 Thread Jens
Ok put differently:

When you enable GSS then GWT will use the GssResourceGenerator which 
accepts valid GSS and hands it over to the closure stylesheets backend to 
produce the final css output. Your css files could contain CssResource 
specific extensions like @def, conditionals, sprites, etc. and most of them 
work a bit differently in GSS. GWT can not assume your css file is a valid 
gss file, thus the css file must run through the css2gss converter before 
it will be handed over to the closure stylesheets backend.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-03 Thread Ed Bras
I am very sorry Jens, but don't really understand your explanation.
Why can't the css file be used as gss file?
If I look at the examples of gss files, they can contain standard css
content.
​

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [ERROR] Only either css files or gss files are supported on one interface

2015-03-03 Thread Jens
If you have a mixture of *.css and *.gss files referenced in @Source then 
you can not convert the css files one by one because a css file might not 
contain @def rules if they are defined in a different file. As you must 
also honor css rule ordering the only right thing to do is to merge all 
these referenced files in the same order they are referenced in the @Source 
annotation and then convert it.

However when doing so the in-memory css2gss converter would get a mixture 
of gss and css syntax as input but it only understands normal css as input 
(it builds a AST from the input and recognizes CssResource features during 
parsing). So at the end the converter requires pure css input. It does not 
understand any gss features.

I would create a branch, run the Css2Gss class to convert all css files to 
gss and then start updating @Source annotations and/or String constants 
pointing to old css files.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[ERROR] Only either css files or gss files are supported on one interface

2015-03-03 Thread Ed
Why does GSS throw the following error when combining CSS and GSS files? 
(latest GWT 2.7 version)
---
[ERROR] Only either css files or gss files are supported on one 
interface 
---

Why isn't it allowed to combine them ?
Combining it makes it much more friendly/easy to switch to GSS.
In my case it's a blocker to move to GSS. In my general components, that 
have their own resource bundle, I use adapter/empty css files that only 
contains the class names without any css rules. They are very handy to use 
and overcomes to having to add all class names to a css file.
They are empty so I don't see any problem that GSS can't process them.
Currently it's impossible to rename all the css files in general components 
to gss.

How to solve this ? Can't GSS not process CSS files as welll?


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GSS: Variable inside CSS 3 calc procudes compile error

2015-02-07 Thread Christian Walczyk
Created a new issue

https://code.google.com/p/google-web-toolkit/issues/detail?id=9118

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GSS: Variable inside CSS 3 calc procudes compile error

2015-02-06 Thread Julien Dramaix
That should work. Only variable that require runtime evaluation don't work.

Could you open an issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GSS: Variable inside CSS 3 calc procudes compile error

2015-02-06 Thread Christian Walczyk
Hello,

I'm using GWT 2.7 with the experimental GSS support turned on and most of 
the GSS features are working fine as expected. One thing which is not 
working for me is the CSS3 calc() together with variables. This gss source 
code part of my UiBinder file leads to a compile error with a 
GssParserException:


@def AAA 140px;

.content{
   height: calc(100% - AAA); 
}


Am I wrong with something?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSNI - how to reference a CSS client bundle?

2015-01-12 Thread Kushal Jain
Thanks Jens

I found my mistake on this line.

 var css = style.@com.ruchi.bundle.client.Button::gwtbutton()();
>>  
>>
>
I fixed the button thing, and i got the solution 
thanks.

http://www.enggheads.com/#!question/1421080044931

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSNI - how to reference a CSS client bundle?

2015-01-12 Thread Jens


> var lib = @com.ruchi.bundle.client.Resource::INSTANCE;
>  var style = lib.@com.ruchi.bundle.client.Resource::button()();
>  var css = style.@com.ruchi.bundle.client.Button::gwtbutton()();
>   
> i tried this but i got class cast exception. 
>

Why do you write: style.@com.ruchi.bundle.client.Button::gwtbutton()()  ?? 

Your style variable is not of type Button, its a MyCssResource instance. 
Also the gwtbutton() method is probably not defined on your Button class 
and I think Eclipse should have marked that red (if you use the Google 
Eclipse Plugin).

 

> hey i want to ask you one thing more while calling we have to write 
> button()() or button() ?
>

You always have to use ()(). The first parenthesis contain the parameter 
signature while the second parenthesis contain the actual parameters. So if 
you have a method that takes a String parameter it would look like 
myMethod(Ljava/lang/String;)(myStringInstance). Read: 
http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html 


Please write steps of code to explain exactly what should i do ?
>

No. If you fix the Button thing I mentioned above you are already done.


-- J.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSNI - how to reference a CSS client bundle?

2015-01-12 Thread Kushal Jain
Hey J

var lib = @com.ruchi.bundle.client.Resource::INSTANCE;
 var style = lib.@com.ruchi.bundle.client.Resource::button()();
 var css = style.@com.ruchi.bundle.client.Button::gwtbutton()();
  
i tried this but i got class cast exception. hey i want to ask you one 
thing more while calling we have to write button()() or button() ?

Please write steps of code to explain exactly what should i do ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSNI - how to reference a CSS client bundle?

2015-01-12 Thread Jens
Your "lib" variable is of type Resource but your gwtbutton() method is 
defined on MyCssResource. So you first have to call Resource.button() to 
get a MyCssResource and then call MyCssResource.gwtbutton().

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSNI - how to reference a CSS client bundle?

2015-01-12 Thread Kushal Jain

>
> Hey Magnus
>

are you got the solution ?

because i am stick at some point in jsni. I try to get the gwtbutton css 
from Resource interface but it not call

public native void jsni() 
/*-{
 var lib = @com.ruchi.bundle.client.Resource::INSTANCE;
  var style = 
lib.@com.ruchi.bundle.client.Resource.MyCssResource::gwtbutton();
 var sroot = $doc.getElementById("container");
sroot.className=style;
 }-*/; 



public interface Resource extends ClientBundle {
 public interface MyCssResource extends CssResource{
String gwtbutton();
}

public static Resource INSTANCE = GWT.create(Resource.class);
 @Source("com/ruchi/bundle/css/button.css")
MyCssResource button();

}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: change CSS style of a single GWT widget

2015-01-06 Thread Jens


> This one had no effect (why?):
>
> .myPanel .gwt-TabLayoutPanel .gwt-TabLayoutPanelContentContainer
>
>
Because .gwt-TabLayoutPanel is not assigned to a child element of the 
element that has .myPanel assigned.

To check if multiple classes are assigned to the same element you have to 
remove the whitespace:

.myPanel.gwt-TabLayoutPanel .gwt-TabLayoutPanelContentContainer


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: change CSS style of a single GWT widget

2015-01-06 Thread Magnus
Ok, I added a class name:

myTabLayoutPanel.addStyleName ("myPanel");


This produces the following HTML code:




Since I only want to style the content, I need to include 
.gwt-TabLayoutPanelContentContainer.

This one had no effect (why?):

.myPanel .gwt-TabLayoutPanel .gwt-TabLayoutPanelContentContainer


The only combination that worked for me was:

.myPanel .gwt-TabLayoutPanelContentContainer


Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   7   8   9   10   >