Re: jsInterop cast to JavaScriptObject

2016-09-19 Thread Pablo Nussembaum
Hi Marcio,
You can check: https://github.com/GWTReact/gwt-interop-utils that several 
helper to convert java to js and back.
Regards,
-- 
Bauna

On 16/09/16 15:47, Marcio Alves wrote:
> Hi, 
>
>Is it possible to casto a jsInterop object to a JavaScriptObject? 
>
>I am trying to use GWT-Polymer's IronList, but it requires a 
> JsArray.
>
>I managed to create my JsArray from a JSNI code, but I don't know how to 
> create it in Java, since the class do not extends from JavaScriptObject.
>
> Thanks,
> Marcio Alves
>
>
> -- 
> 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.


Re: Is GWT is Dead?

2016-09-09 Thread Pablo Nussembaum
Google Inbox is 70% GWT code:

https://gmail.googleblog.com/2014/11/going-under-hood-of-inbox.html

https://news.ycombinator.com/item?id=8554339


On 06/09/16 17:06, Vassilis Virvilis wrote:
> ok then gmail being written in GWT is urban myth.
>
> However looks like google group is written in GWT 
> https://groups.google.com/forum/#!msg/google-web-toolkit/Mjjk5y9RQbw/hCWzIrZ1vzcJ
> 
>
> On Tue, Sep 6, 2016 at 10:38 PM, Alain Ekambi  > wrote:
>
> Gmail was created waaayyy before GWT was created.
>
> On 6 September 2016 at 21:31, Vassilis Virvilis  > wrote:
>
> About 1) Isn't gmail written in GWT? I think I have read it 
> somewhere...
>
> About 7) There is GWTcon2016 http://www.gwtcon.org/
>
> GWT doesn't look dead to me - but your questions have valid points.
>
>Vassilis
>
> On Tue, Sep 6, 2016 at 2:38 PM, Ali Jalal  > wrote:
>
> Hi,
>
> I think GWT is not dead, but its development rate is decreased. I 
> think that last public product of Google which written in GWT was Inbox
> 
>  which 
> announced in late 2014. But AdWords
> 
>  
> (one of main GWT applications in Google) were re-written by Dart and 
> AngularJS (which announced in March 2016).
>
> There are some good points about GWT which mentioned in this post 
>  and some 
> pretty works about 2.8-RC2 release,
> JsInterop, GWTPolymer, GWTMaterial, Angular2Boot, ...
>
> But there are some vague points about GWT:
>
> 1. Which projects in Google written based on GWT in 2015-2016?
> 2. Were there any change in steering committee 
>  members (companies) in last two 
> years?
> 3. New GWT compiler (J2CL) when will be released? Is its 
> development started yet?
> 4. Why there is no official Java (GWT) version of Angular2 
>  (while there are JS, 
> TypeScript & Dart versions)?
> 5. How many people in Google work in GWT team (compared to Dart & 
> AngularJs teams)?
> 6. What is other companies roadmap about investment & development 
> based on GWT (like Vaadin, Sencha, ...)?
> 7. Is there any planned GWT Con or GWT Create conferences?
>
> I'm developing various applications with GWT for about 8 years 
> and I really enjoy it. It seems GWT development rate is not good enough 
> compared to other Google or Web tools and it makes
> me worried about its future.
>
> Is that correct?
>
> Regards.
>
>
> On Tue, Sep 6, 2016 at 10:26 AM, Ignacio Baca Moreno-Torres 
> mailto:igna...@bacamt.com>> wrote:
>
> Just curious, what and why are you waiting GWT 3? GWT is 
> pretty awesome right now…
>
> On Tue, Sep 6, 2016 at 8:39 AM Ahamed  > wrote:
>
> Team,
>   My Apologies for asking this question again.
>
> Is GWT is Dead or Alive ? From past 2 years i am waiting 
> for GWT 3.0 but still is not released? Can any one from Steering committee 
> explain whats going on or Any progress on GWT
> 3.0 .   
> -- 
> 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 
> .
>  

Re: Completable Future in GWT 2.8-rc1

2016-08-23 Thread Pablo Nussembaum
Hi Zakaria,
Do you have any example of how do you use Promises from GWT?


On 23/08/16 06:07, zakaria amine wrote:
> Thanks for the info. rxjava-gwt sounds promising, it does add some complexity 
> though...I will do with Promise for now.
>
>
> -- 
> 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.


Re: Parsing URI components

2016-08-17 Thread Pablo Nussembaum
You can also use: 
http://www.gwtproject.org/javadoc/latest/com/google/gwt/http/client/RequestBuilder.html

On 17/08/16 16:35, Jens wrote:
> http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/Window.Location.html
>
> Should help you.
>
> -- 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: Guava

2016-08-10 Thread Pablo Nussembaum
Not sure, but you can try ;-)


On 10/08/16 10:30, Velusamy Velu wrote:
> Thanks Bauna - does your response apply even if I use GWT 2.7?
>
> On Tuesday, August 9, 2016 at 4:27:59 PM UTC-4, Velusamy Velu wrote:
>
> I started using Guava with my GWT application and ran into this benign 
> message when starting the server in Eclipse.
>Ignored 28 units with compilation errors in first pass.
>
> These two inherits were added my gwt.xml file
> |
>  
>  
> |
>
> Any idea why?
>
> 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.

-- 
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: Guava

2016-08-10 Thread Pablo Nussembaum
Hey,

You need to use guava version 20-SNAPSHOT.

This is the maven entry:


  com.google.guava
  guava
  20.0-SNAPSHOT



On 09/08/16 17:46, Velusamy Velu wrote:
> The errors became serious when attempted to build the project. Here is a 
> sample subset of errors-
> [java]Tracing compile failure path for type 
> 'com.google.common.collect.LinkedHashMultimap'
> [java]   [ERROR] Errors in 
> 'jar:file:/I:/Code/Labs/war/WEB-INF/lib/guava-gwt-19.0.jar!/com/google/common/collect/super/com/google/common/collect/LinkedHashMultimap.java'
> [java]  [ERROR] Line 25: The import com.google.j2objc cannot 
> be resolved
> [java]  [ERROR] Line 303: WeakOuter cannot be resolved to a 
> type
> [java]Tracing compile failure path for type 
> 'com.google.common.collect.FilteredMultimapValues'
> [java]   [ERROR] Errors in 
> 'jar:file:/I:/Code/Labs/war/WEB-INF/lib/guava-gwt-19.0.jar!/com/google/common/collect/FilteredMultimapValues.java'
> [java]  [ERROR] Line 40: Weak cannot be resolved to a type
> [java]  [ERROR] Line 23: The import com.google.j2objc cannot 
> be resolved
> [java]Tracing compile failure path for type 
> 'com.google.common.collect.StandardTable'
> [java]   [ERROR] Errors in 
> 'jar:file:/I:/Code/Labs/war/WEB-INF/lib/guava-gwt-19.0.jar!/com/google/common/collect/StandardTable.java'
> [java]  [ERROR] Line 202: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 569: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 853: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 453: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 767: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 818: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 923: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 542: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 34: The import com.google.j2objc cannot 
> be resolved
> [java]  [ERROR] Line 513: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 614: WeakOuter cannot be resolved to a 
> type
> [java]  [ERROR] Line 743: WeakOuter cannot be resolved to a 
> type
>
>
> On Tuesday, August 9, 2016 at 4:27:59 PM UTC-4, Velusamy Velu wrote:
>
> I started using Guava with my GWT application and ran into this benign 
> message when starting the server in Eclipse.
>Ignored 28 units with compilation errors in first pass.
>
> These two inherits were added my gwt.xml file
> |
>  
>  
> |
>
> Any idea why?
>
> 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.

-- 
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: jsinterop: converting a jre collection to a jsArray

2016-05-18 Thread Pablo Nussembaum
If you have a JsInterop object that returns an []
you can do:

Object o = jsInteropObject.method(); //this in declared as "public Object 
method();" in your @JsType object
JsArray  array = JsInteropHelper.cast(o);


On 18/05/16 11:38, Vassilis Virvilis wrote:
> Hi
>
> @Pablo, I don't see how the example you gave relates to arrays and jsinterop
>
> @Thomas
> I am not exactly sure about but looks like that String[] is an array of char 
> arrays instead of native javascript Strings. For example this also works.
>
>
> config.buttons = new JsString[] {Util.getString("copyHtml5")};
>
> Where JsString and Util.getString are:
>
> @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "String")
> public static interface JsString {
> }
>
> public static native JsString getString(String string) /*-{
> var l = string.length;
> var s = "";
> for (var i = 0; i < l; i++) {
> s += string[i];
> }
> return s;
> }-*/;
>
> Thanks in advance.
>
>
>
>
>
> On Thu, May 12, 2016 at 2:46 PM, Pablo Nussembaum  <mailto:bau...@gmail.com>> wrote:
>
> Hi Vassilis,
> I have been using JsInterop for managing IndexedDB stores and I have 
> created this [1] helper class for casting back and forth js to java. The main 
> issue is that in GWT there are two Object
> hiearchies one from java and js, GWT makes are really job hiding that 
> detail, but with JsInterop the difference leaks ;-)
>
> [1] 
> https://github.com/bauna/gwt-indexeddb/blob/devel/gwt-indexeddb-core/src/main/java/org/nuvola/indexeddb/client/JsInteropHelper.java
>
> Let me know if want examples where I'm using this helper class.
>
> Regards,
> -- 
> Pablo
>
>
> On 12/05/16 07:43, Vassilis Virvilis wrote:
>> Thanks for all the answers
>>
>> The Collection#toArray does not work in my case because dataTables.net 
>> are a bit sensitive in the input. It stumbles upon java.lang stuff later on.
>> Here
>>
>> buttons = new String[] {"copyHtml5"};
>>
>> while buttons2 is the correct one created with your previous suggestion.
>>
>>  1. buttons:
>>  1. 0:"copyHtml5"
>>  2. __elementTypeCategory$:6
>>  3. __elementTypeId$:2
>>  4. java_lang_Object__1_1_1clazz:java_lang_Class_Class__V
>>  5. java_lang_Object_castableTypeMap:Object
>>  6. 
>> java_lang_Object_typeMarker:com_google_gwt_lang_Runtime_typeMarkerFn__V()
>>  7. length:1
>>  8. __proto__:Array[0]
>>  2. buttons2:Array[1]
>>  1. 0:"copyHtml5"
>>  2. length:1
>>  3. __proto__:Array[0]
>>
>> About Array vs []
>> I am not js expert and looking for the difference I hit this 
>> http://stackoverflow.com/questions/931872/what-s-the-difference-between-array-and-while-declaring-a-javascript-ar
>> Check this answer 
>> http://stackoverflow.com/questions/931872/what-s-the-difference-between-array-and-while-declaring-a-javascript-ar/1273936#1273936
>>
>> So I though if that could work with GWT and I tried it.
>>
>> Also thanks for the link I bookmarked it.
>>
>>
>> On Thu, May 12, 2016 at 1:20 PM, Thomas Broyer > <mailto:t.bro...@gmail.com>> wrote:
>>
>>
>>
>> On Thursday, May 12, 2016 at 11:51:11 AM UTC+2, Vassilis Virvilis 
>> wrote:
>>
>> Thomas thanks,
>>
>> Wow I did this and it works. But it is crazy. Cr is for crazy. 
>> Kudos to jsinterop guys though.
>>
>> @JsType(isNative = true, namespace = JsPackage.GLOBAL, name 
>> = "[]")
>>
>>
>> You should probably use "Array" rather than "[]"
>>  
>>
>> public interface CrJsArray {
>>
>> public void push(T value);
>>
>> @JsProperty
>> public int getLength();
>> }
>>
>>
>> I tried your suggestion to cast and __also works__ (eclipse 
>> complains about but with (JavaScriptObject) (Object) my_native_object) it 
>> works and it is definitely better.
>>
>>
>> Also, for converting from a java.util.Collection to an array, how 
>> about simply using Collection#toArray? (and then passing the array to JS 
>> through JsInterop)
&g

Re: jsinterop: converting a jre collection to a jsArray

2016-05-12 Thread Pablo Nussembaum
Hi Vassilis,
I have been using JsInterop for managing IndexedDB stores and I have created 
this [1] helper class for casting back and forth js to java. The main issue is 
that in GWT there are two Object hiearchies
one from java and js, GWT makes are really job hiding that detail, but with 
JsInterop the difference leaks ;-)

[1] 
https://github.com/bauna/gwt-indexeddb/blob/devel/gwt-indexeddb-core/src/main/java/org/nuvola/indexeddb/client/JsInteropHelper.java

Let me know if want examples where I'm using this helper class.

Regards,
-- 
Pablo

On 12/05/16 07:43, Vassilis Virvilis wrote:
> Thanks for all the answers
>
> The Collection#toArray does not work in my case because dataTables.net are a 
> bit sensitive in the input. It stumbles upon java.lang stuff later on.
> Here
>
> buttons = new String[] {"copyHtml5"};
>
> while buttons2 is the correct one created with your previous suggestion.
>
>  1. buttons:
>  1. 0:"copyHtml5"
>  2. __elementTypeCategory$:6
>  3. __elementTypeId$:2
>  4. java_lang_Object__1_1_1clazz:java_lang_Class_Class__V
>  5. java_lang_Object_castableTypeMap:Object
>  6. 
> java_lang_Object_typeMarker:com_google_gwt_lang_Runtime_typeMarkerFn__V()
>  7. length:1
>  8. __proto__:Array[0]
>  2. buttons2:Array[1]
>  1. 0:"copyHtml5"
>  2. length:1
>  3. __proto__:Array[0]
>
> About Array vs []
> I am not js expert and looking for the difference I hit this 
> http://stackoverflow.com/questions/931872/what-s-the-difference-between-array-and-while-declaring-a-javascript-ar
> Check this answer 
> http://stackoverflow.com/questions/931872/what-s-the-difference-between-array-and-while-declaring-a-javascript-ar/1273936#1273936
>
> So I though if that could work with GWT and I tried it.
>
> Also thanks for the link I bookmarked it.
>
>
> On Thu, May 12, 2016 at 1:20 PM, Thomas Broyer  > wrote:
>
>
>
> On Thursday, May 12, 2016 at 11:51:11 AM UTC+2, Vassilis Virvilis wrote:
>
> Thomas thanks,
>
> Wow I did this and it works. But it is crazy. Cr is for crazy. Kudos 
> to jsinterop guys though.
>
> @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = 
> "[]")
>
>
> You should probably use "Array" rather than "[]"
>  
>
> public interface CrJsArray {
>
> public void push(T value);
>
> @JsProperty
> public int getLength();
> }
>
>
> I tried your suggestion to cast and __also works__ (eclipse complains 
> about but with (JavaScriptObject) (Object) my_native_object) it works and it 
> is definitely better.
>
>
> Also, for converting from a java.util.Collection to an array, how about 
> simply using Collection#toArray? (and then passing the array to JS through 
> JsInterop)
>  
>
> Questions
> 1) Is JavaScriptObject scheduled for deprecation?
>
>
> Yes, it'll be replaced with JsInterop.
>  
>
> 2) Should a native type be able to extend JavascriptObject. Because 
> right now (2.8pre1) fails at run time. That would make casting a bit saner. 
> Should I report it somewhere?
>
>
> This is probably on-purpose.
>  
>
> I tried to look for the reference you gave but I didn't find it. 
> Wrong keywords maybe...
>
>
> I found this: 
> https://groups.google.com/d/topic/google-web-toolkit/nmBAOX4vcSo/discussion
> Not exactly what I remembered, but touches similar points.
>  
>
>
> On Thu, May 12, 2016 at 12:20 PM, Thomas Broyer  > wrote:
>
> That question came up already in the forum or in GWT-Contrib (try 
> to search the archive), and I seem to recall that Goktug said you could cast 
> @JsType(isNative=true) objects to/from
> JavaScriptObject, so you could use JsArray (and 
> JsonUtils.safeEval). I think you can also cast to/from an array of 
> @JsType(isNative=true), so if you don't need to alter the size of the
> JS array you can then use the bracket operators on a Java array 
> (and cast from/to a JavaScriptObject).
> This is only out of memory, please double check from the forum 
> archives.
>
>
> On Thursday, May 12, 2016 at 10:47:51 AM UTC+2, Vassilis Virvilis 
> wrote:
>
> Hi again,
>
> I am trying to convert a jre collection or build a jsArray 
> with a isNative=true type.
>
> Unfortunately this is not possible because JsArray requires 
> JavascriptObject which is invcompatible (complie time error) with native 
> classes.
>
> Any ideas?
>
> I looked on deep dive jsinterop from Ray Cromwell and it says 
> that there is not a clean way for jsinterop1 to align collections. Ok I get 
> that - but there must be a way even if not
> the nicest/cleanest one.
>
> Otherwise looks like I have to create my own @jsinteroped 
> MyJsArray which l

SDM in GWT 2.8-SNAPSHOT is super slow since yesterday

2016-03-19 Thread Pablo Nussembaum
Hey Guys,
Since yesterday in SDM it takes 17 minutes to compile[1], it used to last less 
30 seconds the first time.
I don't know what to check, I have deleted every temp files (ie gwt-unitCache) 
and using the same version of java, eclipse, eclipse plugin and nothing changed 
pom.xml project.
Is someone experiencing the same issue?

[1]
Link succeeded
Linking succeeded -- 51.559s
1042.484s total -- Compile completed

Thanks and regards,
-- 
Pablo

-- 
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: SDM in GWT 2.8-SNAPSHOT is super slow since yesterday

2016-03-19 Thread Pablo Nussembaum
I reimported everything in eclipse and now works fine.

Sorry for the noise

On 17/03/16 11:25, Pablo Nussembaum wrote:
> Hey Guys,
> Since yesterday in SDM it takes 17 minutes to compile[1], it used to last 
> less 30 seconds the first time.
> I don't know what to check, I have deleted every temp files (ie 
> gwt-unitCache) and using the same version of java, eclipse, eclipse plugin 
> and nothing changed pom.xml project.
> Is someone experiencing the same issue?
>
> [1]
> Link succeeded
> Linking succeeded -- 51.559s
> 1042.484s total -- Compile completed
>
> Thanks and regards,

-- 
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 2.8-SNAPSHOT has broken JSP support in SDM & DM

2016-02-29 Thread Pablo Nussembaum

  
  
Hi Guys,
After updating to Jetty 9.2 in GWT 2.8 the JSP support is not
working any more during debug (it doesn't matter if you use SDM o
DM).
It seems that since Jetty 9.2[1] jsp support is not enabled by
default and need to enabled when embedding. As a workaround you can
add this snippet[2] to web.xml.
I don't know if I this expected or I should fill a bug.

[1]
http://www.eclipse.org/jetty/documentation/current/configuring-jsp.html


[2] Code Snippet
 
    jsp
   
org.apache.jasper.servlet.JspServlet
    
   
  logVerbosityLevel
    DEBUG
    
    
    fork
    >false
    
    
    keepgenerated
    >true
    
    0
  
 
  
    jsp
    *.jsp
    *.jspf
    *.jspx
    *.xsp
    *.JSP
    *.JSPF
    *.JSPX
    *.XSP
  
  




-- 
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: GWT 2.8 Compiler Question for Streams

2015-12-29 Thread Pablo Nussembaum
You can still use Guava functional idioms in particular FluentIterable [1] 
gives you a more java8 feeling

[1] 
http://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/FluentIterable.html

On 29/12/15 15:43, Paul Mazzuca wrote:
> It appears that you are correct.  I misread the posts the first time I 
> searched. Thanks for the quick clarification.
>
> On Tue, Dec 29, 2015 at 10:38 AM, Juan Pablo Gardella 
> mailto:gardellajuanpa...@gmail.com>> wrote:
>
> I think it's not supported in GWT 2.8:
> - https://groups.google.com/forum/#!topic/google-web-toolkit/SuLcOTeJkyo 
> 
> - http://stackoverflow.com/questions/15693169/java-8-support-in-gwt
>
> On 29 December 2015 at 12:30, Paul Mazzuca  > wrote:
>
> That reference is for the "latest", which I am assuming is still for 
> 2.7, not 2.8?
>
> On Tue, Dec 29, 2015 at 10:26 AM, Juan Pablo Gardella 
> mailto:gardellajuanpa...@gmail.com>> wrote:
>
> stream() method is not mentioned in 
> http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_util. 
> Maybe this is the reason.
>
> On 29 December 2015 at 12:22, Paul Mazzuca 
> mailto:paul.j.mazz...@gmail.com>> wrote:
>
> Any reason why I would be receiving a compiler error in the 
> code below?
>
>
> //compiles
>
> this.mybutton.addClickHandler(c -> _dosomething()_);
>
>
>
> //does not compile
> Arrays.asList("one", "two").stream();
>
>
> I am using the beta Maven release of GWT 2.8 with jdk 
> 1.8.0_60  and am using super dev mode.  
>
>
> This is either a compiler bug or a Generator has legitimately 
> stopped creating these types.
> [INFO]  Compiling 1 permutation
> [INFO] Compiling permutation 0...
> [INFO] [ERROR] An internal compiler exception 
> occurred
> [INFO] com.google.gwt.dev.jjs.InternalCompilerException: 
> Unexpected error during visit.
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:730)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:722)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:142)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1288)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1253)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.execImpl(ControlFlowRecorder.java:163)
> [INFO] at 
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.exec(ControlFlowRecorder.java:46)
> [INFO] at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:474)
>   

Re: SEO Google Crawlable experience ?

2015-11-16 Thread Pablo Nussembaum
@Ed, pushState and semanatic route tokens are implemented in GWTP Framework [1]
It has its own concepts for moving between "places" (there are not even called 
places ;-)). I have been using GWTP in production for long time and simplifies 
several rough edges of using plain GWT.

[1] http://dev.arcbees.com/gwtp/core/navigation/token-formats.html#configure

On 16/11/15 13:12, Ed Bras wrote:
> @Thomas: thanks for your input.  Yes, I remember I also looked at your 
> Html5Historian code as example. 
> Do you know if or how, the Html5 pushState will be supported in the gwt core?
> I think it should be possible to support it the way I implemented it: use 
> pushState if the browser supports it, else the old hash fragment method is 
> used.
>
> ​
> -- 
> 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: How to support new version and old version like Google Inbox?

2015-09-15 Thread Pablo Nussembaum
Take a look at HTML5 appcache: 
http://www.html5rocks.com/en/tutorials/appcache/beginner/
And the great library for GWT: http://realityforge.org/gwt-appcache/

-- 
Bauna

On 15/09/15 10:30, Shawn Johnson wrote:
> I'd like to have smoother updates to our GWT application, and not break 
> client's that are actively on the site.  We are using GWT 2.7, RPC, and code 
> splitting features.  I'd like to give users an
> experience similar to Google's Inbox (GWT) application - where a nice, 
> non-intrusive notification appears notifying the user of a new version of the 
> application - and allows them to reload when they
> get to a good point.  Currently we see errors in the logs after a deployment, 
> indicating users' client application is attempting to make an RPC call to an 
> outdated endpoint, or trying to load a .js
> fragment (code-split) that no longer exists.  I'd almost like to see a 
> versioning of the relevant parts, so maybe the build process and linkers(?) 
> might be more version aware.  
>
> Something like:
>
> war/v1.1/MyAppModule/
> war/v1.2/MyAppModule/
>
> Any thoughts or ideas?
>
> -- 
> 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: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Pablo Nussembaum
Thomas is rigth, using lambdas is are really game changer for subscribing (you 
have 6 lines less on each one) to handlers and also you can use guava Optional 
class and functional idioms until idioms
until we have fully java8 streams.

Be aware that current GWT-2.8.0-SNAPSHOT compiler doesn't support mixing 
inner-classes and lambdas.

On 06/15/2015 11:01 AM, Thomas Broyer wrote:
>
>
> On Monday, June 15, 2015 at 3:49:10 PM UTC+2, Ivan Hetman wrote:
>
> Thanks, got it. But why don't release special GWT 2.8 version with source 
> level 1.8 only? Without improved collection API Java 8 benefits in GWT are 
> low.
>
>
> You can write lambdas and use defender methods in your own interfaces, that's 
> not nothing.
> Re. a special Java-8-only version of gwt-user, one of the main issues which 
> has still not been solved is that of dependency managers relying on Maven 
> metadata (most dependency managers). Gradle is
> apparently working on it 
> https://discuss.gradle.org/t/variant-aware-dependency-management/115, and I 
> think Ivy has it for years, but it's not there yet (particularly for Maven 
> users).
> -- 
> 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.


GWT 2.8.0 Snapshots are not published

2015-05-14 Thread Pablo Nussembaum
I've been using that repo for about a month without issues. 
Do anybody know why snapshots are not generated anymore?

On 05/14/2015 05:34 PM, Thad Humphries wrote:
> There are no jar files in the 2.8.0-SNAPSHOT directories at this time. The 
> last modified timestamp is Tue May 12 03:54:28 CDT 2015.
>
> On Thursday, May 14, 2015 at 2:46:06 PM UTC-4, Bauna wrote:
>
> Yes, it works fine with maven.
> Add this repository:
> 
>   google-snapshots
>   Google Snapshots
>   
> https://oss.sonatype.org/content/repositories/google-snapshots/ 
> 
>   false
>   true
> 
>
> -- 
> Bauna
>
> On 05/14/2015 10:54 AM, Michael Joyner wrote:
> > On 05/14/2015 09:26 AM, Patrick Tucker wrote:
> >> Why not use the 2.8 snapshot?
> >
> > Does it work well via Maven?
> >
>
> -- 
> 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: GWT 2.8.0 ?

2015-05-14 Thread Pablo Nussembaum
Yes, it works fine with maven.
Add this repository:

  google-snapshots
  Google Snapshots
  https://oss.sonatype.org/content/repositories/google-snapshots/
  false
  true


-- 
Bauna

On 05/14/2015 10:54 AM, Michael Joyner wrote:
> On 05/14/2015 09:26 AM, Patrick Tucker wrote:
>> Why not use the 2.8 snapshot?
>
> Does it work well via Maven?
>

-- 
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 reproduce.cache.html error in dev

2013-12-05 Thread Pablo Nussembaum
Hi Bhumika,
You can take a look to:
http://www.gwtproject.org/javadoc/latest/com/google/gwt/logging/server/StackTraceDeobfuscator.html
It can be used to de-obfuscate the stacktrace.

also check:
https://groups.google.com/forum/#!topic/google-web-toolkit/jikvFQUJYjk

Regards,
-- 
Pablo

On 12/05/2013 03:42 AM, Bhumika Thaker wrote:
> Hi All,
>
> In my gwt application, I am facing below error in war but not in
> development. 
> This error is not understandable 
> can any body suggest how can I reach to this error in development.
>
> com.google.gwt.core.client.JavaScriptException: (TypeError): a.b.k.j
> is null stack: GXd([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7116
> HNi([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:3830
> JNi([object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7919
> cG([object Object],[object
> Object],null)@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10218
> NF([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9321
> gYd([object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7030
> s_d([object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7919
> gC([object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10553
> cG([object Object],[object
> Object],null)@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10218
> SF([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9833
> If([object Object],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:6980
> IB([object MouseEvent],[object Object],[object
> HTMLDivElement])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9516
> Lf([object Object],[object
> MouseEvent])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9286
> Yf([object
> MouseEvent])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10553
> DBc([object MouseEvent],[object HTMLDivElement],[object
> Object])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9128
> ([object
> MouseEvent])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:10481
> Mp((function (a) {var b, c = this;while (c && !(b = c.__listener)) {c
> = c.parentNode;}c && c.nodeType != 1 && (c = null);b && fDc(b) &&
> DBc(a, c, b);}),[object HTMLDivElement],[object
> Arguments])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:7802
> Pp((function (a) {var b, c = this;while (c && !(b = c.__listener)) {c
> = c.parentNode;}c && c.nodeType != 1 && (c = null);b && fDc(b) &&
> DBc(a, c, b);}),[object HTMLDivElement],[object
> Arguments])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9876
> ([object
> MouseEvent])@http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html:9061
> fileName:
> http://espo.etenders.uk:8081/uk/v4workflow/EEE53ADF84875B770BBA391E60B8948D.cache.html
> lineNumber: 7116
>
> Thanks,
> Bhumika
> -- 
> 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/groups/opt_out.

-- 
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/groups/opt_out.


Re: CSS

2013-05-16 Thread Pablo Nussembaum

  
  
I agree with Timothy that GWT as a
  framework makes almost impossible to create "runtime themeable" 
  application. While doing with plain js is pretty straight forward,
  here is what we did:
  
  in the index.html
  
   
  
  then in code:
  eventBus.addHandler(SelectViewTypeEvent.TYPE, new
SelectViewTypeEvent.Handler() {
      @Override
      public void onViewTypeChanged(SelectViewTypeEvent
event) {
          final int viewTypeOrdinal =
event.getViewType().ordinal();
          Scheduler.get().scheduleDeferred(new
ScheduledCommand() {
              @Override
              public void execute() {
                  Document doc = Document.get();
                  for(ViewType vt : ViewType.values()) {
                      LinkElement link =
doc.getElementById("vt" + vt.ordinal()).cast();
                      link.setDisabled(vt.ordinal() !=
viewTypeOrdinal);
                  }
              }
          });
      }
  });
  
  to properly work on IE browsers, before render anything:
  private void disableAllStylesheetsForIE() {
      final Document doc = Document.get();
      for(ViewType vt : ViewType.values()) {
          LinkElement link = doc.getElementById("vt" +
vt.ordinal()).cast();
          link.setDisabled(true);
      }
      LinkElement link = doc.getElementById("vt0").cast();
      link.setDisabled(false);
}
  
  
  My wish is that some day, I'll would be able to use all GWT-CSS
  goodies like image bundles/sprites and css class hashing, etc for
  this kind of apps.
  
  IMHO css should be orthogonal to the actual html generated.
  Although, in the current times of HTML5 apps, css is part of the
  behavior of widgets, so in widgets based frameworks we have a
  tension between how a widget should look (web designer job) and
  its behavior that is some cases also partly implemented in css
  (mostly because css is hardware accelerated, like css3
  transformation or animations, and plain js doesn't). 
  
  Regards,
  -- 
  Bauna
  
  
  On 05/16/2013 06:00 AM, Thomas Broyer wrote:


  
  On Thursday, May 16, 2013 10:44:33 AM UTC+2, Timothy Spear wrote:
  Inline
style in each UiBinder xml file will not be maintainable.

From a code maintenance perspective stylesheets should be used
extensively.
  
  
  
  I find it much better for maintainability if the styles for a
given "widget" is close to that widget, and there's nothing
closer than "in the same file".
  Let's just agree that we disagree on this point.
   
  The
suggested solution for this is to include the css as part of the
ClientBundle as a resource.

This suggested solution is predicated on the following
assumptions:

-- a single CSS file (yes you can have multiple files, but this
is MX nightmare. Which variable.

-- User does not have the ability to change/select alternate CSS
files

-- Prevents the application from being re-labeled by an OEM SaaS
unless you also provide source code

-- Now you have to maintain and keep in sync three separate
items. Class name in CSS, Variable Names in CssResource file,
declarations in UiBinder XML File


Now explain all the linkages to a junior developer who needs to
change one minor thing in a complex app.
  
  
  Nothing prevents you from using "plain old CSS": link to the
stylesheet from your HTML host page (and use SASS/LESS/whatever
if you like) and use your class names in your UiBinder.
  That's the only way to have swappable/updatable styles
without handing out the source code; and it's not different than
how you'd do it if you were using a pure-JS framework. GWT
doesn't make anything "more complicated" here.
  -- 
  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?hl=en.
  For more options, visit https://groups.google.com/groups/opt_out.
   
   


  




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

Re: Is it possible to make css attributes dynamic in java backing class?

2013-03-01 Thread Pablo Nussembaum
Hi,
If you use a cssResource you can use runtime substitution:
https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle?hl=es-#Runtime_substitution


On 03/01/2013 10:18 AM, membersound wrote:
> Hi,
>
> how can a css attribute made dynamically read from the java backend class?
>
> 
>  .size {
> width: 100px; //can I get the 100 from java backing and change it
> dynamically?
>  }
> 
>
> I know I can set the styles programatically from java code and might
> thereby change the width. But are things like this also possible?
> -- 
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Error processing @WithTokenizers, cannot find type

2012-12-20 Thread Pablo Nussembaum
I have a similar problem with @WithTokenizers and I used some the 
workarounds from this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5658

On Tue 18 Dec 2012 07:01:42 PM ART, Tony B wrote:
> Sadly, not yet.   If I found out something, I will update this thread.
>
> On Tuesday, December 18, 2012 9:51:26 AM UTC-5,
> sean.l...@perceptivesoftware.com wrote:
>
> Hi Tony,
>
> Having same problem - did you find a resolution to this?
>
> Thanks
>
> Sean
>
> On Monday, December 17, 2012 5:00:25 PM UTC-5, Tony B wrote:
>
> Hello,
>I have a weird situation.  I am getting the following error
> in my
>
> 16:48:34.027 [ERROR] [wmsapp] Error processing
> @WithTokenizers, cannot find type
> 
> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer
>
>
> The problem is that I know this exists.   First of all, this
> happens in the following code:
>
> package com.wmsvision.wmsapp.client;
>
> import com.google.gwt.place.shared.PlaceHistoryMapper;
> import com.google.gwt.place.shared.WithTokenizers;
> import
> 
> com.wmsvision.wmsapp.client.activities.HomePlace.HomePlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.WmsListPlace.WmsListPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.about.AboutPlace.AboutPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.configuration.ConfigPlace.ConfigPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.login.LoginPlace.LoginPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace.ProductSummaryMasterPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryPlace.ProductSummaryPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.receiving.ReceivingPlace.ReceivingPlaceTokenizer;
> import
> 
> com.wmsvision.wmsapp.client.activities.relocation.RelocationPlace.RelocationPlaceTokenizer;
>
> @WithTokenizers({ HomePlaceTokenizer.class,
> LoginPlaceTokenizer.class,
> AboutPlaceTokenizer.class,
> WmsListPlaceTokenizer.class,
> ReceivingPlaceTokenizer.class,
> RelocationPlaceTokenizer.class,
> ProductSummaryPlaceTokenizer.class,
> ProductSummaryDetailPlaceTokenizer.class,
> ProductSummaryMasterPlaceTokenizer.class,
> ConfigPlaceTokenizer.class})
> public interface AppPlaceHistoryMapper extends
> PlaceHistoryMapper {
> }
>
>
> I have a similar place defined in the same package that seems
> to work fine ( it is called "import
> 
> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace"
> ).  Anyway, the "DetailPlace" should only be accessible from
> the "MasterPlace", so maybe I don't need it in my
> AppPlaceHistoryMapper above.  But I would still like to
> understand why it is not working.
>
> Here is the class file in question, the one it cannot seem to
> find:
>
> package com.wmsvision.wmsapp.client.activities.productsearch;
>
> import com.google.gwt.place.shared.Place;
> import com.google.gwt.place.shared.PlaceTokenizer;
>
> public class ProductSummaryDetailPlace extends Place {
> private String product;
> private long index;
> private String id;
> private final String separator = "#:PRODUCTINDEX:#";
>
> public ProductSummaryDetailPlace(String product, long
> index) {
> super();
> this.product = product;
> this.index = index;
>
> createId();
> }
>
> public ProductSummaryDetailPlace( String id ) {
> this( "", 0 );
>
> String tokens[] = ( id != null ?
> id.split(separator) : null );
>
> if( tokens != null && tokens.length >= 1 ){
> this.product = tokens[0];
>
> if( tokens.length >= 2 ){
> this.index = Long.getLong( tokens[1] );
> }
>
> createId();
>

Re: Still problems with com.google.gwt.core.client.GWTBridge

2012-10-31 Thread Pablo Nussembaum
Moritz,
Until you find the actual problem you can use this jar.

Regards,
-- 
Bauna

On 10/31/2012 09:08 AM, Moritz wrote:
> Hi all,
>
> I get a NoClassDefFoundError for com.google.gwt.core.client.GWTBridge
> when I throw a RuntimeException on a server RPC. When I do not throw
> the RuntimeException and the RPC completes fine also no
> NoClassDefFoundError is thrown.
> As a workaround, I created an abstract
> com.google.gwt.core.client.GWTBridge which simply extends the
> ...shared.GWTBridge class. I read about
> http://code.google.com/p/google-web-toolkit/issues/detail?id=7527 but
> it seems that this is something different, or not? Any solution?
>
> Cheers,
> Moritz.
>
> PD, here comes the full stack trace, the exception seems to be related
> to the Guice filters:
>
> SEVERE: javax.servlet.ServletContext log: Exception while dispatching
> incoming RPC call
> java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:186)
> at
> com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
> at
> com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)
> at
> com.google.gwt.user.client.rpc.core.java.util.Arrays$ArrayList_CustomFieldSerializer.serialize(Arrays.java:64)
> at
> com.google.gwt.user.client.rpc.core.java.util.Arrays$ArrayList_CustomFieldSerializer.serializeInstance(Arrays.java:94)
> at
> com.google.gwt.user.client.rpc.core.java.util.Arrays$ArrayList_CustomFieldSerializer.serializeInstance(Arrays.java:34)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:786)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:667)
> at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:755)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:794)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:667)
> at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
> at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:605)
> at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:393)
> at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
> at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
> at
> com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
> at
> com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
> at
> com.googlecode.objectify.cache.AsyncCacheFilter.doFilter(AsyncCacheFilter.java:59)
> at
> com.googlecode.objectify.ObjectifyFilter.doFilter(ObjectifyFilter.java:49)
> at
> com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
> at
> com.MYPROJECT.server.NamespaceFilter.doFilter(NamespaceFilter.java:22)
> at
> com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
> at
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
> at
> com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
> at
> com.google.inje

Re: GWT 2.5 GA is Here!

2012-10-26 Thread Pablo Nussembaum
Hey Guys,
The issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=7527 is
still not fixed in version 2.5.0
Since the bug was already fixed but not merged properly can re-release
it or release version 2.5.1.

Thanks,
-- 
Pablo "Bauna" Nussembaum

On 10/25/2012 07:14 PM, unnurg wrote:
> Hey all,
>
> We're excited to announce the GWT 2.5 Release! There will be an
> announcement soon on the GWT Blog
> , and you can
> download it here
>  (bottom of the
> page). The GA has been uploaded to Maven Central with the version
> string of 2.5.0
>
> -Unnur, on behalf of the GWT team
> -- 
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/vnZVYxNAHnYJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.