Re: SuperDevMode

2014-01-20 Thread Carlos Aguayo
Thanks so much for helping out!

I got things up and running, your explanations and the video were really 
clear, thanks!

On Monday, January 20, 2014 7:48:05 PM UTC-5, emurmur wrote:
>
> Carlos,
>
> You've gotten to the point of launching the SuperDevMode codeserver.  So  
> http://localhost:9876/ is the code server. At that point, you don't need 
> to have the SuperDevMode page open in the browser.  Now you need to load 
> the page the GWT app is hosted within..  I can often just go to my GWT 
> project's war file and double-click the html file to load it into chrome, 
> then choose the "Dev Mode On" bookmark to compile and run.  If your page 
> needs to talk to a server, then you'll want to launch from the server 
> address (like the hosted Jetty in the video).  In either case, once you 
> have the SuperDevMode code server running, you then want to load your GWT 
> host page then do the Dev Mode On compile.
>
> Ed
>
>
> On Sunday, January 19, 2014 3:16:32 PM UTC-8, Carlos Aguayo wrote:
>>
>> Hi, I don't seem to be able to get SuperDevMode to work. I'm following 
>> instructions from Brian's slides:
>>
>> https://docs.google.com/presentation/d/1DTWZ_06dQsTPhinIwzHSdoPMndRr92wpZoZWicK97YQ/edit?forcehl=1&hl=en#slide=id.g25a114ce1_2056
>> I can get to normal devmode with "ant devmode". But when I do "ant 
>> superdevmode", things seem to compile and start up fine, I then go to 
>> http://localhost:9876/ using Chrome (I tried both 32 and canary), I see 
>> the welcome screen to drag the "Dev mode on/off" buttons, I drag them to 
>> the toolbar, the welcome page says that the "hello" project is available, I 
>> click on that link and then I click on the "dev mode on" bookmark and I get 
>> the "Can't find any GWT Modules on this page.". What step am I missing or 
>> what am I doing wrong?
>> Thanks!
>> Carlos
>>
>

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

2014-01-20 Thread emurmur
Carlos,

You've gotten to the point of launching the SuperDevMode codeserver.  So  
http://localhost:9876/ is the code server. At that point, you don't need to 
have the SuperDevMode page open in the browser.  Now you need to load the 
page the GWT app is hosted within..  I can often just go to my GWT 
project's war file and double-click the html file to load it into chrome, 
then choose the "Dev Mode On" bookmark to compile and run.  If your page 
needs to talk to a server, then you'll want to launch from the server 
address (like the hosted Jetty in the video).  In either case, once you 
have the SuperDevMode code server running, you then want to load your GWT 
host page then do the Dev Mode On compile.

Ed


On Sunday, January 19, 2014 3:16:32 PM UTC-8, Carlos Aguayo wrote:
>
> Hi, I don't seem to be able to get SuperDevMode to work. I'm following 
> instructions from Brian's slides:
>
> https://docs.google.com/presentation/d/1DTWZ_06dQsTPhinIwzHSdoPMndRr92wpZoZWicK97YQ/edit?forcehl=1&hl=en#slide=id.g25a114ce1_2056
> I can get to normal devmode with "ant devmode". But when I do "ant 
> superdevmode", things seem to compile and start up fine, I then go to 
> http://localhost:9876/ using Chrome (I tried both 32 and canary), I see 
> the welcome screen to drag the "Dev mode on/off" buttons, I drag them to 
> the toolbar, the welcome page says that the "hello" project is available, I 
> click on that link and then I click on the "dev mode on" bookmark and I get 
> the "Can't find any GWT Modules on this page.". What step am I missing or 
> what am I doing wrong?
> Thanks!
> Carlos
>

-- 
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: seedTable error in web mode?

2014-01-20 Thread Ed Bras
Thanks, Let's hope you right (I first reviewed/improved the split points,
but that didn't help).
BTW: I found it a bit scary that this error doesn't show itself in dev mode.

-- 
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: seedTable error in web mode?

2014-01-20 Thread Jens
Personally I think its related to a code splitting bug that has been fixed 
in GWT 2.6. The bug causes the GWT compiler / code splitter to not emit 
some needed defineSeed() statements in split points. The symptoms mentioned 
in the below issue/discussion are not 100% your symptoms but I think it is 
somewhat related.

https://code.google.com/p/google-web-toolkit/issues/detail?id=7392
https://groups.google.com/forum/#!msg/google-web-toolkit-contributors/wCBk0qrM4n8/Rzami92kQfgJ

If you use GWT 2.5 and you are curious then temporary remove split points 
in your app. I would guess your issue will disappear.


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


Re: seedTable error in web mode?

2014-01-20 Thread Ed
I just upgraded to the latest 2.6. rc3 and it seems solved (currently), but 
no idea for how long. It probably will occur again, no idea why.
Can anybody tell me how to debug this? Or where to find this startup code?

-- 
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: Clear queue method invocations on RequestContext

2014-01-20 Thread Florian Felberbauer
Hello all.

The problem is that I need to call a domain method other dann persist,
where I need to pass parameters. For that reason, I cannot prepare the
request once (.to(new Receiver...)), but need to create it every time the
user presses the save-button (otherwise, I do not get changes from the view
to pass it to the server).

What solved my problem was to save the proxy I get from the server and
never edit it directly. Instead, I use something like:
myRequest = rf.getMyRequest();
MyProxy myProxy = myRequest.edit(proxyFromServer);

That way, my proxy from the server never gets edited by a request context
directly and thus I can clone it as often as I need to.
But for the case that one only has to call persist().using(myProxy),
setting up the request only once, with .to() instead of .fire() and fire it
as often as needed, your approach is correct.

Thanks anyway


2014/1/20 Thomas Broyer 

> You should queue the method invocation once only, at the time you receive
> the proxy to edit it, not at the time you want to fire() the prepared
> bacth-request.
>
>
> On Monday, January 20, 2014 9:32:02 AM UTC+1, Florian Felberbauer wrote:
>>
>> Hello Alex,
>> it's been a while since you posted your problem but as I have the same
>> problem now, I wanted to ask if you were able to fix it in the meantime.
>> As you said, the problem is that both onConstraintViolation(...) and -
>> after fixing the wrong data - even onSuccess(...) is fired multiple times
>> because the request needs to stay the same (otherwise I get an error when
>> trying to edit a proxy which has been edited by another request context).
>>
>> Thank you in advance!
>> best regards,
>> Flo
>>
>>
>> Am Freitag, 27. April 2012 11:59:28 UTC+2 schrieb Alex Vakaloudis:
>>>
>>> To perform a save  in a view I am using the RequestFactoryEditorDriver
>>> to flush any changes to a RequestContext and then I call save(the edited
>>> proxy).to(MyReceiver).fire();
>>>
>>> MemberRequest s = (MemberRequest)editorDriver.flush();
>>> MemberProxy sectorProxy = (MemberProxy)getProxy();
>>> s.saveMember(sectorProxy).to(new MyReceiver()).fire();
>>>
>>> MyReceiver has a onConstraintViolation method which displays violations
>>> generated in the server. I am using my own ServiceLayerDecorator.validate()
>>> to check for any business-related constraints.
>>>
>>> To this point it works fine. However when after more than one  attempts
>>> the user finally "fixes" all violations and the entity reaches the service
>>> layer, the save method is invoked multiple times (as many attempts it took
>>> to pass validation). I understand that this is because the request context
>>> is queuing all method invocations and by calling onConstraintViolation.
>>> this queue is not cleared. As a result, when it passes validation there is
>>> a number of onvocations for saving which all then succeed in inserting to
>>> the database.
>>>
>>> My question is how/where to clear the request context of any method
>>> invocations that have lead to the call of onConstraintViolation so the save
>>> to the service layer is called once only.
>>>
>>> thanks in Advance
>>> Alex
>>>
>>  --
> 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/nOsdq-gYwyE/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/groups/opt_out.
>



-- 

DI Florian Felberbauer
Software Developer
Cenarion Information Systems GmbH
Mariahilfer Straße 176, 1150 Wien
Handelsgericht Wien, FN 264084i

+43 1 522 1764 - 1180
   http://www.cenarion.com

-- 
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: Clear queue method invocations on RequestContext

2014-01-20 Thread Thomas Broyer
You should queue the method invocation once only, at the time you receive 
the proxy to edit it, not at the time you want to fire() the prepared 
bacth-request.

On Monday, January 20, 2014 9:32:02 AM UTC+1, Florian Felberbauer wrote:
>
> Hello Alex,
> it's been a while since you posted your problem but as I have the same 
> problem now, I wanted to ask if you were able to fix it in the meantime. 
> As you said, the problem is that both onConstraintViolation(...) and - 
> after fixing the wrong data - even onSuccess(...) is fired multiple times 
> because the request needs to stay the same (otherwise I get an error when 
> trying to edit a proxy which has been edited by another request context). 
>
> Thank you in advance! 
> best regards, 
> Flo 
>
>
> Am Freitag, 27. April 2012 11:59:28 UTC+2 schrieb Alex Vakaloudis:
>>
>> To perform a save  in a view I am using the RequestFactoryEditorDriver to 
>> flush any changes to a RequestContext and then I call save(the edited 
>> proxy).to(MyReceiver).fire();
>>
>> MemberRequest s = (MemberRequest)editorDriver.flush();
>> MemberProxy sectorProxy = (MemberProxy)getProxy();
>> s.saveMember(sectorProxy).to(new MyReceiver()).fire();
>>
>> MyReceiver has a onConstraintViolation method which displays violations 
>> generated in the server. I am using my own ServiceLayerDecorator.validate() 
>> to check for any business-related constraints.
>>
>> To this point it works fine. However when after more than one  attempts 
>> the user finally "fixes" all violations and the entity reaches the service 
>> layer, the save method is invoked multiple times (as many attempts it took 
>> to pass validation). I understand that this is because the request context 
>> is queuing all method invocations and by calling onConstraintViolation. 
>> this queue is not cleared. As a result, when it passes validation there is 
>> a number of onvocations for saving which all then succeed in inserting to 
>> the database.
>>
>> My question is how/where to clear the request context of any method 
>> invocations that have lead to the call of onConstraintViolation so the save 
>> to the service layer is called once only.
>>
>> thanks in Advance
>> 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/groups/opt_out.


Re: GWT Maven Install compile error java.lang.NullPointerException at com.google.gwt.dev.util.DiskCache.transferToStream(DiskCache.java:187)

2014-01-20 Thread Mihkel Lukats
Jens right. I'll just post the full configuration:



org.codehaus.mojo
gwt-maven-plugin
${gwtVersion}




compile




true
etsyheroku.html
${webappDirectory}



On Tuesday, December 3, 2013 10:05:08 PM UTC+2, umesh shaw wrote:
>
> I am having this error. tried all the option to delete gwt cache, temp 
> folder, etc from online. but still no luck
>
> Please help..
>
> [ERROR] Exception in thread "pool-1-thread-323" 
> *java.lang.NullPointerException*
>
> [ERROR]   at com.google.gwt.dev.util.DiskCache.transferToStream(
> *DiskCache.java:187*)
>
> [ERROR]   at com.google.gwt.dev.util.DiskCacheToken.writeObject(
> *DiskCacheToken.java:91*)
>
> [ERROR]   at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown 
> Source)
>
> [ERROR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> *DelegatingMethodAccessorImpl.java:25*)
>
> [ERROR]   at java.lang.reflect.Method.invoke(*Method.java:597*)
>
> [ERROR]   at java.io.ObjectStreamClass.invokeWriteObject(
> *ObjectStreamClass.java:940*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeSerialData(
> *ObjectOutputStream.java:1469*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeOrdinaryObject(
> *ObjectOutputStream.java:1400*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeObject0(
> *ObjectOutputStream.java:1158*)
>
> [ERROR]   at java.io.ObjectOutputStream.defaultWriteFields(
> *ObjectOutputStream.java:1518*)
>
> [ERROR]   at java.io.ObjectOutputStream.defaultWriteObject(
> *ObjectOutputStream.java:422*)
>
> [ERROR]   at 
> com.google.gwt.dev.javac.CachedCompilationUnit.writeObject(
> *CachedCompilationUnit.java:222*)
>
> [ERROR]   at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown 
> Source)
>
> [ERROR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> *DelegatingMethodAccessorImpl.java:25*)
>
> [ERROR]   at java.lang.reflect.Method.invoke(*Method.java:597*)
>
> [ERROR]   at java.io.ObjectStreamClass.invokeWriteObject(
> *ObjectStreamClass.java:940*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeSerialData(
> *ObjectOutputStream.java:1469*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeOrdinaryObject(
> *ObjectOutputStream.java:1400*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeObject0(
> *ObjectOutputStream.java:1158*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeObject(
> *ObjectOutputStream.java:330*)
>
> [ERROR]   at com.google.gwt.dev.javac.PersistentUnitCache$6.run(
> *PersistentUnitCache.java:446*)
>
> [ERROR]   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> *ThreadPoolExecutor.java:895*)
>
> [ERROR]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> *ThreadPoolExecutor.java:918*)
>
> [ERROR]   at java.lang.Thread.run(*Thread.java:662*)
>
> [ERROR] Exception in thread "pool-1-thread-322" 
> *java.lang.NullPointerException*
>
> [ERROR]   at com.google.gwt.dev.util.DiskCache.transferToStream(
> *DiskCache.java:187*)
>
> [ERROR]   at com.google.gwt.dev.util.DiskCacheToken.writeObject(
> *DiskCacheToken.java:91*)
>
> [ERROR]   at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown 
> Source)
>
> [ERROR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> *DelegatingMethodAccessorImpl.java:25*)
>
> [ERROR]   at java.lang.reflect.Method.invoke(*Method.java:597*)
>
> [ERROR]   at java.io.ObjectStreamClass.invokeWriteObject(
> *ObjectStreamClass.java:940*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeSerialData(
> *ObjectOutputStream.java:1469*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeOrdinaryObject(
> *ObjectOutputStream.java:1400*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeObject0(
> *ObjectOutputStream.java:1158*)
>
> [ERROR]   at java.io.ObjectOutputStream.defaultWriteFields(
> *ObjectOutputStream.java:1518*)
>
> [ERROR]   at java.io.ObjectOutputStream.defaultWriteObject(
> *ObjectOutputStream.java:422*)
>
> [ERROR]   at 
> com.google.gwt.dev.javac.CachedCompilationUnit.writeObject(
> *CachedCompilationUnit.java:222*)
>
> [ERROR]   at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown 
> Source)
>
> [ERROR]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> *DelegatingMethodAccessorImpl.java:25*)
>
> [ERROR]   at java.lang.reflect.Method.invoke(*Method.java:597*)
>
> [ERROR]   at java.io.ObjectStreamClass.invokeWriteObject(
> *ObjectStreamClass.java:940*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeSerialData(
> *ObjectOutputStream.java:1469*)
>
> [ERROR]   at java.io.ObjectOutputStream.writeOrdinaryObject(
> *ObjectOutputStream.java:1400*)
>
> [ERROR]   at java.io.Obj

Re: Clear queue method invocations on RequestContext

2014-01-20 Thread Florian Felberbauer
Hello Alex,
it's been a while since you posted your problem but as I have the same 
problem now, I wanted to ask if you were able to fix it in the meantime. 
As you said, the problem is that both onConstraintViolation(...) and - 
after fixing the wrong data - even onSuccess(...) is fired multiple times 
because the request needs to stay the same (otherwise I get an error when 
trying to edit a proxy which has been edited by another request context). 

Thank you in advance! 
best regards, 
Flo 


Am Freitag, 27. April 2012 11:59:28 UTC+2 schrieb Alex Vakaloudis:
>
> To perform a save  in a view I am using the RequestFactoryEditorDriver to 
> flush any changes to a RequestContext and then I call save(the edited 
> proxy).to(MyReceiver).fire();
>
> MemberRequest s = (MemberRequest)editorDriver.flush();
> MemberProxy sectorProxy = (MemberProxy)getProxy();
> s.saveMember(sectorProxy).to(new MyReceiver()).fire();
>
> MyReceiver has a onConstraintViolation method which displays violations 
> generated in the server. I am using my own ServiceLayerDecorator.validate() 
> to check for any business-related constraints.
>
> To this point it works fine. However when after more than one  attempts 
> the user finally "fixes" all violations and the entity reaches the service 
> layer, the save method is invoked multiple times (as many attempts it took 
> to pass validation). I understand that this is because the request context 
> is queuing all method invocations and by calling onConstraintViolation. 
> this queue is not cleared. As a result, when it passes validation there is 
> a number of onvocations for saving which all then succeed in inserting to 
> the database.
>
> My question is how/where to clear the request context of any method 
> invocations that have lead to the call of onConstraintViolation so the save 
> to the service layer is called once only.
>
> thanks in Advance
> 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/groups/opt_out.


Creating Tr and Td's in a div

2014-01-20 Thread Mac1980
Hi ,
  I am very new to GWT,
I wanted to create few  tr , td, and few links in a small div . This div 
will on be  on top of another content panel (map).
I would like to know whether I can create the above div as a innerHTML or 
should  I create another panel on top my parent panel and create TableData 
 in that panel.
Is there any best way to create tr td, div etc

Please advice me if any other options is there, or which option is correct.

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


getting com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.CKEDITOR is undefined error

2014-01-20 Thread Akshay Lokur
Hello,

I am trying to add CKEditor in my UiBinder based GWT app.

But getting following  exception:

00:00:05.216 [ERROR] Unable to load module entry point class 
com.lokur.admin.usp.motd.
client.MessageOfTheDay (see associated exception for details) 

com.google.gwt.user.client.ui.AttachDetachException: One or more exceptions 
caught, see full set in UmbrellaException#getCauses
at 
com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:87)


.
.
.

com.google.gwt.core.client.JavaScriptException: (TypeError): 
$wnd.CKEDITOR is undefined



Any clues why this happens???

Thanks in advance,
Akshay

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