Re: Include a GSS file in another GSS file?

2015-05-22 Thread Jens
Maybe I am wrong but as far as I know closure-stylesheets does only parse 
CSS @Import statements but will not process them. That means it will not 
follow/download any @Import files and will not use them during processing. 
So you can not do @import url(constants.gss).

Also @provide and @require is more for better error messages in case you 
forgot to provide a gss file. @require does not import anything.

So if you want smaller .gss files then you have to include these 
smaller files in all @Source annotations of CssResources that want to use 
them. You can not group them in a general.gss via CSS imports.

Alternatively you might be able to use an external tool that processes a 
general-with-imports.gss file to produce a general.gss file that does not 
contain @Imports anymore (replace @Import with their imported content).


-- 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: Include a GSS file in another GSS file?

2015-05-22 Thread Ed Bras
Thanks, I know the construction, but how does this solve my issue ?
(including a gss file in another gss file like an import mechanism, such
that others only include one gss file)

​

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


Issue with Generated Sources (by RestyGWT) not Compiling, When including a class from an external GWT module.

2015-05-22 Thread Thomas Broyer
Does it work better if you use a real dependency on your sources jar 
(java-source or sources) rather than the 
 hack?

-- 
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: Include a GSS file in another GSS file?

2015-05-22 Thread Slava Pankov
@provide and @require. See 
http://blog.arcbees.com/2015/04/28/managing-your-css-files-with-variables-and-a-theme/


On Friday, May 22, 2015 at 5:53:10 AM UTC-7, Ed wrote:
>
> How can I include a GSS file in another GSS file ?
>
> I have mixin and other gss variable declarations in a General.gss file, 
> that is included at many places.
> I want to split this file up in multiple files, but still include it in 
> General.gss, so it wont' break code and overcomes many fragmented @Imports.
>
>

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


Issue with a modified interface not beeing updated to the code generator (GWT 2.7.0)

2015-05-22 Thread Gilberto
Hi,

A user of a framework I'm maintaining (gwt-view 
) reported a weird bug with 
one of the code generators, when using the super dev mode with incremental 
compile: when he updates an interface, used by the generator to generate 
the output code, the modified version is not updated, and the generator 
generates a wrong output.

Basically, imagine this interface:


@GinModules(BackOfficeModule.class)public interface BackOfficeInjector extends 
Ginjector {
>
> LoginView getLoginView();
>
> }
>
>
... and then he updates it, inserting a new method:
 

@GinModules(BackOfficeModule.class)public interface BackOfficeInjector extends 
Ginjector {
> 
> NotFoundView getNotFoundView();
>
> LoginView getLoginView();
>
> }
>
>
... the interface used by the code generator to create new classes is the 
old one (without the getNotFoundView method). The PresenterGenerator of 
gwt-views doesn't see the new method and can't produce the presenter for 
the new View. Restarting the code server solves the problem, but it is 
quite annoying.

Do you have any idea of what is going on here?

The full bug report is available at: 
https://github.com/gilberto-torrezan/gwt-views/issues/3

Thanks in advance.

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


Issue with Generated Sources (by RestyGWT) not Compiling, When including a class from an external GWT module.

2015-05-22 Thread Mário Costa
Hi!

After fighting with this, issue in all possible dimensions, hope to find 
some one who've manage to solved something similar ...

I'm using RestyGWT, to implemente a GWT app "RPC".

I've defined a service, 

class MyService extends RestService {

 @GET
 public void getResults(MethodCallback callback);
}

The class Result, is a DTO, which I've built into a separate GWT module, 
added the gwt.xml, stuff, configured the maven-source-plugin, 
to create the module source jar ... added the


org.my.data:my-data


My class Result:

public class Result {

String r1;
String r2;

public Result() {}
}


Every this is fine, the restygwt generates the 
org.my.data.Result_Generated_JsonEncoderDecoder_.java, into the .generated 
dir, after that fail with the error:

 Added 1 units to cache since last cleanup.
   Tracing compile failure path for type 
'org.mydata.data.Result_Generated_JsonEncoderDecoder_'
  Errors in 
'/target/.generated/org/mydata/data/Result_Generated_JsonEncoderDecoder_.java'
 Line 28: The constructor Result() is undefined
Wrote 1 units to persistent cache.
   See snapshot: 
/tmp/org.mydata.data.Result_Generated_JsonEncoderDecoder_953900780088454604.java
   Removing invalidated units

The issue, is the GWT Compiler, when compiling the generated stub, cannot 
find the Result class, and fails ...

Thanks in advance!
Cheers,
mc

-- 
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: Determine widget size after load

2015-05-22 Thread Blaze
You need to initiate the sizing of the canvas after the real sizing fo the 
wrapper components is done.

What I mean is, this wrapp has some kind of layout logic(usually this 
layouts are not happening before the comp becomes attached and visible) . 
So u need to lesten for this "event", and after this is done to use 
wrap.getSize and set this size on the canvas. In this moment the wrap.size 
will have the correct values...




On Thursday, May 21, 2015 at 11:39:25 PM UTC+2, eho...@usdataworks.com 
wrote:
>
> The deferred command works most of the time, but not always.  I'm seeing a 
> zero height and width about 5% of the time in Chrome.
>
> Anyone have other ideas?
>

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


HTML generated for RIchTextArea:how to configure

2015-05-22 Thread Bheku Msimanga


Simply put, is there any way to control or configure the HTML tags used to 
generate the HTML for the getHTML() method?

After much searching on the internet and here as well, I haven't found a 
satisfactory answer. I am aware that you could possibly extend 
RichTextArea, but before I go that route, I would just like to be sure that 
there isn't something that I've missed.

Currently, when I use getHTML(),  and  are used as way to 
essentially create line breaks and paragraphs. I would like to change this 
to use  instead, and most likely get rid of the  tag altogether.

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


Include a GSS file in another GSS file?

2015-05-22 Thread Ed
How can I include a GSS file in another GSS file ?

I have mixin and other gss variable declarations in a General.gss file, 
that is included at many places.
I want to split this file up in multiple files, but still include it in 
General.gss, so it wont' break code and overcomes many fragmented @Imports.

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