GWT 2.7 and GSS

546 views
Skip to first unread message

Patrice De Saint Steban

unread,
Nov 24, 2014, 5:59:09 AM11/24/14
to google-we...@googlegroups.com
Hello,

Is there a documentation of the new GSS feature ?

Is-there changes since this documentation :


Thanks,

Patrice

Julien Dramaix

unread,
Nov 24, 2014, 8:26:35 AM11/24/14
to google-we...@googlegroups.com
I will work on that and provide documention asap.

You can reuse some parts of  https://github.com/jDramaix/gss.gwt/wiki/GssResource-user-guide (mainly on the GSS syntax) The big difference is that the GssResource interface doesn't exist anymore. You have simply to use CssResource and turn on GSS: <set-configuration-property name="CssResource.enableGss" value="true" />

I've made a summary on GSS on the contributor list that can be helpful: 

Also, you can read the GSS documentation to know more about GSS syntax : https://code.google.com/p/closure-stylesheets/

Ashton Thomas

unread,
Nov 24, 2014, 11:05:57 AM11/24/14
to google-we...@googlegroups.com

I have some documentation linked below FWIW. This may not be perfect, but it may help you along your way. Obviously, you will want to refer to Julien's documents. However, feel free to open an issue with my wiki if you would like some other notes.

https://github.com/ashtonthomas/gwt-bike-shop/wiki/GssResource

- Ashton

Slava Pankov

unread,
Nov 24, 2014, 10:26:20 PM11/24/14
to google-we...@googlegroups.com
What about syntax highlighting for *.gss files in Eclipse? *.css where supported by GPE CSS Resource Editor, but it does NOT support *.gss

Slava Pankov

unread,
Nov 24, 2014, 11:50:10 PM11/24/14
to google-we...@googlegroups.com
Another problem:
@def CONTENT_HEADER literal("\27A1");
It was unicode character constant before gss, now I'm getting string literal("\27A1") instead of unicode symbol.

Slava Pankov

unread,
Nov 25, 2014, 4:03:06 PM11/25/14
to google-we...@googlegroups.com
OK, one of my issues is resolved, so answering to myself :-) For *.gss highlighting in Eclipse see attached screenshot.

But still no luck with unicode symbol in @def.
GSS_highlighting.png

Julien Dramaix

unread,
Nov 25, 2014, 4:07:18 PM11/25/14
to google-we...@googlegroups.com
literal method is not needed anymore (and is not supported by GSS).

Just try:

@def CONTENT_HEADER"\27A1";

And yes for syntax highlighting, you need to add .gss as extension of css file.

--
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/hpb1sz9CPsM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Julien Dramaix

unread,
Nov 25, 2014, 4:07:56 PM11/25/14
to google-we...@googlegroups.com
A space is missing in my previous post:

@def CONTENT_HEADER "\27A1";

On Tue Nov 25 2014 at 10:07:49 PM Julien Dramaix <julien....@gmail.com> wrote:
literal method is not needed anymore (and is not supported by GSS).

Just try:

@def CONTENT_HEADER"\27A1";

And yes for syntax highlighting, you need to add .gss as extension of css file.

On Tue Nov 25 2014 at 10:03:35 PM Slava Pankov <pan...@gmail.com> wrote:
OK, one of my issues is resolved, so answering to myself :-) For *.gss highlighting in Eclipse see attached screenshot.

But still no luck with unicode symbol in @def.



On Monday, November 24, 2014 8:50:10 PM UTC-8, Slava Pankov wrote:
Another problem:
@def CONTENT_HEADER literal("\27A1");
It was unicode character constant before gss, now I'm getting string literal("\27A1") instead of unicode symbol.

On Monday, November 24, 2014 7:26:20 PM UTC-8, Slava Pankov wrote:
What about syntax highlighting for *.gss files in Eclipse? *.css where supported by GPE CSS Resource Editor, but it does NOT support *.gss

--
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/hpb1sz9CPsM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.

Slava Pankov

unread,
Nov 25, 2014, 5:56:20 PM11/25/14
to google-we...@googlegroups.com
:-) That's exactly what I did, but it's not working. In Java code I'm getting it exactly as String with value "\27a1" (length == 5).


On Tuesday, November 25, 2014 1:07:56 PM UTC-8, Julien Dramaix wrote:
A space is missing in my previous post:

@def CONTENT_HEADER "\27A1";

On Tue Nov 25 2014 at 10:07:49 PM Julien Dramaix <julien....@gmail.com> wrote:
literal method is not needed anymore (and is not supported by GSS).

Just try:

@def CONTENT_HEADER"\27A1";

And yes for syntax highlighting, you need to add .gss as extension of css file.

On Tue Nov 25 2014 at 10:03:35 PM Slava Pankov <pan...@gmail.com> wrote:
OK, one of my issues is resolved, so answering to myself :-) For *.gss highlighting in Eclipse see attached screenshot.

But still no luck with unicode symbol in @def.



On Monday, November 24, 2014 8:50:10 PM UTC-8, Slava Pankov wrote:
Another problem:
@def CONTENT_HEADER literal("\27A1");
It was unicode character constant before gss, now I'm getting string literal("\27A1") instead of unicode symbol.

On Monday, November 24, 2014 7:26:20 PM UTC-8, Slava Pankov wrote:
What about syntax highlighting for *.gss files in Eclipse? *.css where supported by GPE CSS Resource Editor, but it does NOT support *.gss

--
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/hpb1sz9CPsM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.

Julien Dramaix

unread,
Nov 26, 2014, 7:37:54 AM11/26/14
to google-we...@googlegroups.com
Ok you try to access the value of the constant via a method of your cssResource interface. Yes unfortunately there is bug there and the generator escape the content of the constant. Please open an issue (https://code.google.com/p/google-web-toolkit/issues/entry) for that and I will fix it.

Otherwise, if you use the constant in your css, it works as expected:

@def CONTENT_HEADER literal("\27A1");

.header:before {
   content: CONTENT_HEADER;
}


To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.

Slava Pankov

unread,
Nov 26, 2014, 2:54:20 PM11/26/14
to google-we...@googlegroups.com

Slava Pankov

unread,
Nov 26, 2014, 4:32:01 PM11/26/14
to google-we...@googlegroups.com
Also I've added comment about unicode symbols higher than U+FFFF to issue#9022
Reply all
Reply to author
Forward
0 new messages