Firefox / GWT plugin troubles

2013-11-21 Thread koma
Hi

Firefox updated to 25.0.1 today and GWT plugin got reinstalled. After 
re-installation of the GWT plugin, the browser needs restarting. But after 
restart, I still see the 'Update plugin'  screen.
I reinstalled - restarted - reinstalled - restarted  -reinstalled  no 
luck.

Then I completely removed the GWT plugin and reinstalled it. No luck.

Anybody else seeing this ?

thx

Koen

-- 
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: Firefox 17 dev plugin

2012-11-26 Thread koma
I tried to build - would be nice to master that because it will keep on 
happening every 6 weeks; Ubuntu updates FF even without asking and even 
without restarting FF;
I fiddled a bit with the Makefile to include ff170 and tried to find my way 
in the huge directory structure.

Finally it started to compile but no luck so far; 

Missing IOOPHM.h :


koen@n53sv:~/src/gwt-plugin/plugins/xpcom$ make BROWSER=ff170 
GECKO_PLATFORM=Linux_x86_64-gcc3
(cd ../common && make)
make[1]: Entering directory `/home/koen/src/gwt-plugin/plugins/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/koen/src/gwt-plugin/plugins/common'
Makefile:264: Using firefox libraries at 
../../../plugin-sdks/gecko-sdks/gecko-17.0.0/Linux_x86_64-gcc3/lib
[ ! -x ../../../plugin-sdks/gecko-sdks/gecko-17.0.0/bin/xpidl.py -o \( -e 
prebuilt/ff170/include/IOOPHM.h -a ! -w prebuilt/ff170/include/IOOPHM.h \) 
] || ../../../plugin-sdks/gecko-sdks/gecko-17.0.0/bin/header.py 
-I../../../plugin-sdks/gecko-sdks/gecko-17.0.0/idl -o 
prebuilt/ff170/include/IOOPHM.h IOOPHM.idl
g++   -O2 -fPIC 
-I../../../plugin-sdks/gecko-sdks/gecko-17.0.0/Linux_x86_64-gcc3/include 
-I../../../plugin-sdks/gecko-sdks/gecko-17.0.0/include 
-Iprebuilt/ff170/include/ -rdynamic -m64 -DBROWSER=ff170 
-DGECKO_VERSION=17000 -fshort-wchar -c -o 
build/Linux_x86_64-gcc3-ff170/ExternalWrapper.o -I. -I../common 
ExternalWrapper.cpp
In file included from ExternalWrapper.cpp:17:0:
ExternalWrapper.h:23:20: fatal error: IOOPHM.h: No such file or directory
compilation terminated.
make: *** [build/Linux_x86_64-gcc3-ff170/ExternalWrapper.o] Error 1

-- 
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/-/2XubcROLVB4J.
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.



Re: Firefox 17 dev plugin

2012-11-26 Thread koma
I can see here http://gwt-code-reviews.appspot.com/1870803/ that the plugin 
for FF17 Linux 64bit is ready for a couple of days; Are there any 
instructions availablle on how to build the plugin or is it available 
somewhere pre-built ? I feel kinda lucky as I am working on Ubuntu 64 bit, 
but it is an ambiguous feeling as I dont know how to get this running ...


On Thursday, November 22, 2012 2:09:12 PM UTC+1, Thomas Broyer wrote:
>
>
> On Thursday, November 22, 2012 1:31:21 PM UTC+1, Karl wrote:
>>
>> So here we go again, any idea when the dev mode plugin for firefox 17 
>> will be available?
>
>
> See https://code.google.com/p/google-web-toolkit/issues/detail?id=7801
> (and https://twitter.com/tbroyer/status/270971726853181443 ) 
>

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



Re: building a GWT project with fails due to dependency on GWT 2.4.0 (at least 2.5.0-rc1 required)

2012-09-01 Thread koma
@abraham, @hilco

Thx guys, that did the trick !!

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



Re: building a GWT project with fails due to dependency on GWT 2.4.0 (at least 2.5.0-rc1 required)

2012-08-31 Thread koma
Hi Hilco,

thx for the advice ...

I am anything but a maven expert, this is a 3rd party project I am trying 
to include.

Can you give me some pointers on how to do that ?
the pom is https://github.com/jDramaix/gwtchosen

or a sample of a GWT maven project done right ?

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



Re: building a GWT project with fails due to dependency on GWT 2.4.0 (at least 2.5.0-rc1 required)

2012-08-31 Thread koma
adding this :


gwt-maven-plugin
2.4.0


to the plugin section, does not help.

Still seeing this :

[INFO] --- gwt-maven-plugin:2.5.0-rc1:compile (default) @ chosen-sample ---


*MFG !!! (you do not want to know what that acronym means !)*

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



Re: building a GWT project with fails due to dependency on GWT 2.4.0 (at least 2.5.0-rc1 required)

2012-08-31 Thread koma
I can see I have two mvn plugins in my .m2 repo :

./org/codehaus/mojo/gwt-maven-plugin/2.4.0
 and
./org/codehaus/mojo/gwt-maven-plugin/2.5.0-rc1

How do I tell maven from taken the correct one ?
I guess that is just basic maven usage knowledge but ant never troubled me 
with this kind of @#!! (dirty words).

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



building a GWT project with fails due to dependency on GWT 2.4.0 (at least 2.5.0-rc1 required)

2012-08-31 Thread koma
Hi

I am trying to build a GWT project that is on github with maven, but I run 
into an error saying that the maven plugin requires at least 2.5.0-rc1 ... 
is that so ?

This is the project : https://github.com/jDramaix/gwtchosen
More info here : https://github.com/jDramaix/gwtchosen/issues/1

Can somebody shed some light on what might be going wrong locally for me, 
the project owner does not suffer from this problem.

My environment :

Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /home/koen/apache-maven-3.0.4
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/jdk1.6.0_31/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-29-generic", arch: "amd64", family: "unix"

This is the error that maven spits out :

[WARNING] You're project declares dependency on gwt-user 2.4.0. This plugin is 
designed for at least gwt version 2.5.0-rc1
[WARNING] Don't declare gwt-dev as a project dependency. This may introduce 
complex dependency conflicts
[WARNING] You're project declares dependency on gwt-user 2.4.0. This plugin is 
designed for at least gwt version 2.5.0-rc1
[ERROR] Unknown argument: -XfragmentCount
[ERROR] Google Web Toolkit 2.4.0
[ERROR] Compiler [-logLevel level] [-workDir dir] [-gen dir] [-style style] 
[-ea] [-XdisableClassMetadata] [-XdisableCastChecking] [-validateOnly] 
[-draftCompile] [-optimize level] [-compileReport] [-strict] [-localWorkers 
count] [-war dir] [-deploy dir] [-extra dir] module[s] 


PS: did I mention I hate maven for always being so self righteous...?

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



Re: any chance to get FF15 dev plugin

2012-08-30 Thread koma
confirmed working for FF15 on Linux 64-bit... thx !

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



any chance to get FF15 dev plugin

2012-08-28 Thread koma
using chrome for now...

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



Re: GwtChosen: make your select boxes much more user-friendly

2012-08-28 Thread koma
looks great.. will definitely try it!

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



Re: DevMode for Firefox 14

2012-07-19 Thread koma
thx a million !

On Thursday, July 19, 2012 3:23:43 AM UTC+2, Alan Leung wrote:
>
>
> any change for Linux 64bit ?
>>>
>>
> The 64bit Linux works now.
>
> http://acleung.com/ff14-linux64.xpi
>
> -Alan
>  
>
>>   -- 
>> 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/-/VNv09WK9dL4J.
>>
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/YZ9p9Yx_sF8J.
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.



Re: DevMode for Firefox 14

2012-07-18 Thread koma

>
> any change for Linux 64bit ?
>

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



Re: Firefox 13 DevMode Plugin

2012-06-08 Thread koma
that's my impression too... could be FF13 being faster?

On Friday, June 8, 2012 8:39:41 PM UTC+2, Yuri C wrote:
>
> I confirm 64bit linux is good. It even seems to run faster. Or is it just 
> me  :)
>
> On Thursday, June 7, 2012 3:46:49 PM UTC-4, koma wrote:
>>
>> working now fine on 64bit linux 
>> thx !
>>
>

-- 
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/-/0kxNvDEfD0kJ.
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.



Re: Firefox 13 DevMode Plugin

2012-06-07 Thread koma
working now fine on 64bit linux 
thx !

-- 
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/-/8dQJQ1FXteAJ.
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.



Re: Firefox 13 DevMode Plugin

2012-06-07 Thread koma


Just installed this :



But when I try to debug, it gives me :



I am on Linux 64bit, so I guess that's the problem ?

-- 
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/-/IBV-udjUWbwJ.
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.



Re: WARNING: failed _ah_ServeBlobFilter: java.lang.ClassCastException:

2012-01-12 Thread koma
same here !

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



Re: Validation framework fails to compile due to ScriptAssertValidator

2011-12-20 Thread koma
I found it... I started out with GWTVF (Gwt validation framework, another 
library. That one required this JVM setting :

"-Dgwt.validation.excluded.ValidatorClassesRegexp=^org.hibernate.*"

which was still set.
Removing it fixed my issue.

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



Re: Validation framework fails to compile due to ScriptAssertValidator

2011-12-18 Thread koma
In the HibernateValidator module i says clearly to exclude the problematic 
package... so obvious no source code available.
But how to use this module then ?




  
  
**

  
  




  
  


  
  
  

  


-- 
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/-/8qW31iR10IQJ.
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.



Validation framework fails to compile due to ScriptAssertValidator

2011-12-18 Thread koma
Hi

I have included 

 and now my 
project fails to compile with :

java.lang.ClassNotFoundException: 
org.hibernate.validator.constraints.impl.ScriptAssertValidator

I noticed in the GWT contributors group this thread, talking about the same 
issue. I am afraid that the introduction of maven support killed my compile 
?

https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/iHHz8NLcY8I


Anybody ?

-- 
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/-/4_yRDkd983QJ.
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.



Re: DataGrid in TabLayoutPanel is empty/filled depending on the order of the tabs

2011-12-06 Thread koma
Ok

this seems to fix it 

@UiHandler("tabLayoutPanel")
public void onClick(SelectionEvent event) {
table.onResize();
}

but i am not sure wether this is best practice ??

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



Re: DataGrid in TabLayoutPanel is empty/filled depending on the order of the tabs

2011-12-05 Thread koma
Somebody can have a look pls, driving me nuts.
Thinking the HTMLPanel might be the bad guy, I replaced this with a 
layoutpanel as well :


@def coloricons #33;
@def hovercolor orange;
body,html {
padding: 0;
border: 0;
margin: 0;
font-family: 'Droid Sans', sans-serif;
color: coloricons;
}
 .layoutpanel {
border: 1px solid red;
min-widht: 400px;
}
 .tablayoutpanel {
border: 1px solid green;
}






actions
* *
* *
* test*
* *
* *


history
* *





Still, the DataGrid remains empty while switching both tabs and the 
DataGrid is showing OK :





history
* *


actions
* *
* *
* test*
* *
* *








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



Re: DataGrid in TabLayoutPanel is empty/filled depending on the order of the tabs

2011-12-04 Thread koma
So for the red code : the DataGrid appears without data, only the header is 
displayed !

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



DataGrid in TabLayoutPanel is empty/filled depending on the order of the tabs

2011-12-04 Thread koma
Hey,

I posted before about my problems getting data to display after moving from 
CellTable to DataGrid. I investigated some more. I can get the data to 
display in the DataGrid when the DataGrid is in the first tab. Switching it 
to the second tab, the DataGrid appears empty with only the title 
displaying.
I removed all bells and whistles from the layout and this is what is 
working :



> .layoutpanel {
> border: 1px solid red;
> min-widht: 400px;
> }
> .tablayoutpanel {
> border: 1px solid green;
> }
> 
>  addStyleNames="{style.layoutpanel}">
> 
>  height="250px" addStyleNames="{style.tablayoutpanel}">
> 
> history
> 
> 
> 
> actions
> 
> actions
> 
> 
> 
> 
> 
> 



While exactly the same layout but the order of the tabs swichted is NOT 
working





actions

actions




history







Any ideas ?

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



Re: GWT for mobile.

2011-12-04 Thread koma
Been using MGWT and works great for Android and iPhone.
gwt4touch seems to be locked in with Sencha.

-- 
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/-/8V24I460BgYJ.
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.



Re: Troubles getting DataGrid to show

2011-12-01 Thread koma







screenshot 

-- 
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/-/t32-XVGNUDcJ.
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.



Re: Troubles getting DataGrid to show

2011-12-01 Thread koma
Thx Juan

I made sure now that from the outermost container upto my DataGrid, 
everything is using layoutpanel like this :


@def coloricons #33;
@def hovercolor orange;
body,html {
padding: 0;
border: 0;
margin: 0;
font-family: 'Droid Sans', sans-serif;
color: coloricons;
}
 #parent {
position: absolute;
background-color: #f2f2f2;
}
 .ticket {
margin-right: 3px;
display: inline-block;
font-size: 22px;
padding-right: 5px;
color: coloricons;
}
 .ticket:hover {
font-weight: bold;
font-size: 22px;
color: hovercolor;
cursor: pointer;
cursor: hand;
text-decoration: none;
}
 .ticketimage {
padding-right: 1px;
}
 .feedback {
position: absolute;
width: 30px;
left: 10px;
top: 10px;
}
 .action {
margin: 0px auto;
cursor: pointer;
cursor: hand;
}
 .container {
position: absolute;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
border: 1px solid #92C845;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;
background-color: white;
min-width: 600px;
}
 .blockLabel {
position: absolute;
top: 12px;
left: 28px;
min-width: 50px;
display: inline-block;
font-size: 12px;
font-weight: bold;
color: coloricons;
cursor: pointer;
cursor: hand;
}
 .blockLabel:hover {
color: hovercolor;
}
 .blockActions {
 }
 .blockActions:hover {
background-color: hovercolor;
}
 .blockTickets {
position: absolute;
top: 5px;
right: 10px;
display: inline-block;
}
 .details {
position: absolute;
left: 0px;
right: 0px;
top: 42px;
bottom: 200px;
}
 .buttonbar {
width: 100%;
height: 100px;
}
 .table {
width: 100%;
}
 .tablayoutpanel {
position: absolute;
left: 0px;
right: 0px;
top: 0px;
height: 156px;
}
 .top {
display: block;
border: 1px solid red;
}










details














actions

actions




history






The view is being added to the RootLayoutPanel but no luck. Only the 
DataGrid header is shown but no data itself. CellTable works fine.
Any thoughts ?

A

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



Troubles getting DataGrid to show

2011-12-01 Thread koma
Hi,

I have a TabLayoutPanel and in the second tab, I would like to display a 
DataGrid (the scrollable, fixed header version of CellTable). I have been 
reading here a bit about the requirement to put it in a LayoutPanel so I 
tried (among other things) this :




actions

actions




history







Unfortunately, only the header is showing, no data.
When I replace DataGrid with CellTable in both the uibinder xml and my 
code, the table displays without problems.

Anybody ?

-- 
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/-/knrykfdWM-UJ.
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.



Re: GWT Developer Plugin for Firefox 7

2011-10-10 Thread koma
works perfectly on my Ubuntu 64 bit
Linux N53SV 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 
x86_64 x86_64 x86_64 GNU/Linux
FF 7.0.1

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



Re: RequestFactoryServlet and security : passing sessionId back and forth

2011-09-27 Thread koma

Thx for the pointer. The Expenses/GAE example overwrites createCallback() to 
deal with Response.SC_UNAUTHORIZED responses.

I guess I will have to overwrite *configureRequestBuilder(RequestBuilder 
builder)* and add the SESSIONID in the header of each request. 

protected void configureRequestBuilder(RequestBuilder builder) {

builder.setHeader(CONSTANT_SESSION_ID, getCurrentUserSessionId());
super.configureRequestBuilder(builder);
}


Koen 

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



RequestFactoryServlet and security : passing sessionId back and forth

2011-09-27 Thread koma
Hi

As so many others before me, I went through the *LoginSecurityFAQ* and have 
been reading about *passing the SESSIONID from the client to the server in 
the payload for each and every request*. The message is that we cannot trust 
the HttpSession server side because of potential CSRF attacks.

Question : 


   - Do I have to *add an additional parameter SESSIONID to each and every 
   service call* that I am launching from GWT to the server ?
   - Or perhaps I can attach the *SESSIONID as request attribute*, so my 
   service interfaces stay clean of this extra parameter ?
   - I also noticed that in earlier versions of RfServlet there was a *init 
   parameter UserInfo* but this seems to have *disappeared*. I never used it 
   but I suspect this is some mechanism to address the above issues ? Is 
   there some replacement mechanism ? 


Old implementation (part of doPost) of RequestFactoryServlet :

// Check that user is logged in before proceeding
UserInformation userInfo = 
UserInformation.getCurrentUserInformation(request.getHeader("pageurl"));
if (!userInfo.isUserLoggedIn()) {
  response.setHeader("login", userInfo.getLoginUrl());
  response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
} else {
  response.setHeader("userId", String.format("%s", 
userInfo.getId()));
  response.setStatus(HttpServletResponse.SC_OK);
  RequestProcessor requestProcessor = new 
JsonRequestProcessor();
  requestProcessor.setOperationRegistry(new 
ReflectionBasedOperationRegistry(
  new DefaultSecurityProvider()));
  requestProcessor.setExceptionHandler(exceptionHandler);
  response.setContentType(RequestFactory.JSON_CONTENT_TYPE_UTF8);
  
writer.print(requestProcessor.decodeAndInvokeRequest(jsonRequestString));
  writer.flush();
}



Thx 

Koen

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



Re: EntityProxy injection with Guice - Guice-persist

2011-09-27 Thread koma
Ok, thx  I figured it out...

First I needed to inject a ServiceLayerDecorator to with Guice like this 
example project https://github.com/mgenov/injecting-request-factory
And indeed, the EntityManager must be passed as Provider 
otherwise it is not ThreadLocal and you run into closed EntityManager 
exception (because the trheads make concurrent use of the EntityManager).

I got it working.

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



EntityProxy injection with Guice - Guice-persist

2011-09-23 Thread koma
Hi

Starting up a new project using *RF* and *guice-persist* on the server-side 
to start JPA and provide transaction management.

I have a couple of tests going to inject the EntityManager into the services 
via the ServiceLocator :

public class *ApplicationServiceLocator* implements ServiceLocator {

Injector injector = null;

public ApplicationServiceLocator() {

injector = Guice.createInjector(new JpaPersistModule("Test"));

injector.getInstance(ApplicationInitializer.class);

}

@Override

public Object getInstance(Class clazz) {

*return injector.getInstance(clazz);*

}

}


This makes sure that is EntityManager injected into the service layers :

public class *WorkerServiceImpl* {

*@Inject* 
*private EntityManager em;*

@Transactional
public List getContracts(User user) {
*// I can us EntityManager now !! Injected because created this 
WorkerServiceImpl 
was created via injector.getInstance
* }


My question : what would be a good approach to inject the EntityManager into 
an entity class when implementing a service in an entity class ?
What hooks do I have available to do so ?


thx 

Koen

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



Re: RequestFactoryInterfaceValidator removed from GWT 2.4

2011-09-23 Thread koma
Ok, got it 

http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation

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



RequestFactoryInterfaceValidator removed from GWT 2.4

2011-09-23 Thread koma
Hi 

I noticed RequestFactoryInterfaceValidator disappeared from 2.4.
Googling around I came across this : 
http://gwt-code-reviews.appspot.com/1503804/

>From the comments I understand that I have to include requestfactory-apt.jar 
in my build path to get compile time errors on RF validation problems.

But when I comment out a function from my implementation, that does not seam 
to work :

@ServiceName(value = "xxx.UsersServiceImpl", locator = 
"xxx.ApplicationServiceLocator")
public interface UsersService extends RequestContext {

Request getUser();

Request login(String username, String password);
}



public class UsersServiceImpl {

/**
 * service implementation;
 */
public User getUser() {
return new User("koen", "xxx");
}
// REMOVING THIS METHOD IMPL INVALIDATES THE RF  
// public User login(String username, String password) {
// return new User("koen", "xxx");
// }
 }

Anybody?

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



Re: Disposable activities

2011-07-04 Thread koma
Thx for the comments.

I guess pragmatism is the rule that you never break :-)

For now, I turned one of  the Activties/presenters into a singleton, so no 
longer disposable. 
This presenter works with the main view of the app and would be (almost) 
always present anyway.
Since it is never disponsed, of, this presenter never misses any of the 
events it is subscribed for.
It takes me one extra call to "init" this activity. The activity mgr returns 
MainActvity.getInstance() when necessary.

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



Re: Disposable activities

2011-07-03 Thread koma
Another problem with disposable activities is that when sending out updates 
over the event bus, there is no activity to handle the event and update the 
view (which is hiding). 
When navigating to a place where the view shows up again, the view will be 
out of sync with the rest of the application because it missed some updates.
Yes, I can just minimize it to height/widht=0 and never dispose of the 
activity/view combination, but I feel the architecture is flawed if that is 
the solution.

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



Disposable activities

2011-07-03 Thread koma
Hi,

In the new Places/Activities paradigm, Activities are disposable objects 
that are constructed just-in-time when they are needed. 
Views are long lived because DOM manipulations are expensive in terms of 
performance of your app, as per the docs.
So Activities don't keep state and Views do.

My problem :

If an Activity is making a lot of expensive server calls to fill select 
boxes and more and it uses this information to configure its View. 
The user acts on the view and selections and text values change. This is 
communicated with its Activity (Presenter).
Next the user moves to a Place without this Activity/View pair present.

When later the users navigates to a place where the given Activity is 
present again, the changes made to the view are still present, but the 
Activity is a fresh copy without state.

Now I can take several roads to sync state of my Activity :

1- re-initiliaze the Activity, making all the calls again and then syncing 
with the View state.
2- try to reconstruct the data based on the state of the view
3- Use static functions on the Activity to keep state of appearances
4- Use a helper/singleton Manager object to keep state, which is initialized 
with requestfactory and clientfactory at application startup.

Each option has disadvantages ;

1- make the expensive calls again, still have to sync the Activitiy state 
with the View state.
2- this is a lot of code and the View becomes too heavy weight, holding too 
much logic
3- the problem here is that requestfactory and clientfactory are only passed 
to the Activity when the ActivityManager creates the Activity. I can only 
make the calls with a real instance, unless I break out of the standard 
pattern and pre-init the static part of the Activity.
4- this is working but the Activity ends up rather empty, most logic now 
shifts completely to the singleton object.

Did I miss something in working with Places / Activity / Views ?
How do you solve these issues ?

thx

Koen


 

-- 
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/-/5vFRBipwaIcJ.
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.



Re: Intercept basic authentication popup

2011-06-29 Thread koma
Not sure how this helps ?
Should I make a RPC call to the JSON service before each JSONP call ?

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



Re: Intercept basic authentication popup

2011-06-15 Thread koma
same prob.

Firefox supports something like *mozBackgroundRequest*
*Not sure how to set this property for a JSONP call though. Even then, only 
works for FF, chromium has a ticket 
open, 
found nothing about IE.
*
*
*
*
*
*I'd like to save my credentials locally (Gadget preferences) but the Basic 
auth dialog makes this impossible.*

*
*

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



Re: RequestFactory : InstanceRequest returns onSuccess but never calls operation implementation ??

2011-04-18 Thread koma
So the problem was ..

void persist() {
}

shouldve been 

*public* void persist() {
}

Live & learn ;)


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



Re: RequestFactory : InstanceRequest returns onSuccess but never calls operation implementation ??

2011-04-18 Thread koma
thx.

putting the receiver on the persist() makes the error bubble up :


Caused by: java.lang.RuntimeException: Server Error: Could not locate domain 
method persist
at 
com.google.gwt.requestfactory.shared.Receiver.onFailure(Receiver.java:36)
at 
com.mydomain.client.ui.Solve360ApiKeyActivity$1.onFailure(Solve360ApiKeyActivity.java:52)
at 
com.google.gwt.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:109)
at 
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(

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



Re: RequestFactory : InstanceRequest returns onSuccess but never calls operation implementation ??

2011-04-18 Thread koma
More debugging ... I have to folow the processInvocationMessages in 
SimpleRequestProcessor

There is a exception thrown :

*com.google.gwt.requestfactory.server.ReportableException: Could not locate 
domain method persist*


Still wondering :
- Why onSuccess is returned ?
- Why it cannot find my persist() method



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



RequestFactory : InstanceRequest returns onSuccess but never calls operation implementation ??

2011-04-18 Thread koma
I have an instance request defined in my 

public interface ApplicationRequestFactory extends RequestFactory {
.
@ServiceName("com.mydomain.server.domain.ApplicationUser")
public interface ApplicationUserRequest extends RequestContext {
*InstanceRequest persist();*
}
ApplicationUserRequest applicationUserRequest();
.
}


I am calling this instance request from my activity :

@Override
public void saveApiKey(String apiKey) {
 ApplicationUserRequest request = requestFactory.applicationUserRequest();
ApplicationUserProxy applicationUser = 
request.edit(clientFactory.getApplicationUser());
applicationUser.setSolve360ApiKey(apiKey);
request.persist().using(applicationUser);
request.fire(new Receiver() {
@Override
*public void onSuccess(Void response) {*
* Logger.getLogger(Solve360ApiKeyActivity.class.getName()).log(Level.INFO, 
"success saving API key");*
* }*
});

onSuccess is being called but the implementation is never executed. I put a 
breakpoint in the persist method and this point is never reached !!
The applicationUser is never persisted, no changes on my persistent storage 
!!
Still, onSuccess ???

The Instance request validates OK, here's the implementation : 

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = 
"true")
@Version(strategy = VersionStrategy.VERSION_NUMBER, column = "version")
public class ApplicationUser {
public ApplicationUser() {
}
   .
public static ApplicationUser findApplicationUser(String id) {
   ...
}
*void persist()* {
PersistenceManager pm = null;
try {
pm = PMF.getPersistenceManager();
pm.makePersistent(this);
} finally {
pm.close();
}
}
}


I can debug the call down to the RequestFactoryServlet where I find the 
following payload : 

{"I":[{"O":"com.mydomain.shared.request.ApplicationRequestFactory$ApplicationUserRequest::persist","P":[{"S":"ImtvZW5Aa29tYS5iZSI=","T":"com.mydomain.shared.request.ApplicationUserProxy"}]}],"O":[{"O":"UPDATE","S":"ImtvZW5Aa29tYS5iZSI=","T":"com.mydomain.shared.request.ApplicationUserProxy","V":"Mg==","P":{"solve360ApiKey":"dlaskjlskdjfsl;dkfjsdf"}}]}


Stepping/debugging deeper I end up in the  class 
com.google.gwt.requestfactory.server.SimpleRequestProcessor where the 
operation is processed :

{Invocations=[{Parameters=[{"T":"com.mydomain.shared.request.ApplicationUserProxy","S":"ImtvZW5Aa29tYS5iZSI="}],
 
Operation=com.mydomain.shared.request.ApplicationRequestFactory$ApplicationUserRequest::persist}],
 
Operations=[{PropertyMap={solve360ApiKey=djksahfgksdajhgdf}, 
ServerId=ImtvZW5Aa29tYS5iZSI=, Operation=UPDATE, Version=Mg==, 
TypeToken=com.mydomain.shared.request.ApplicationUserProxy}]}


The implementation for processing the operation uses an AutoBean visitor, 
and but I don't see a reference to my persist() method from that point on...
Stuck :-/






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



Re: Basic Editor/Sub-Editor question

2011-04-18 Thread koma
*object references an unsaved transient instance * typically happens using 
hibernate and is the fix is usually setting cascade-save on the parent child 
relation

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



Re: requestfactory... AutoBean has been frozen

2011-04-16 Thread koma
My mistake, need to use the returned proxy from edit()

ApplicationUserRequest request = requestFactory.applicationUserRequest();
ApplicationUserProxy applicationUser = 
request.edit(clientFactory.getApplicationUser());
applicationUser.setSolve360ApiKey(apiKey);
request.persist().using(applicationUser);
request.fire(new Receiver() {
..


thx 

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



Re: requestfactory... AutoBean has been frozen

2011-04-16 Thread koma
This is what I understand it should become ...
 

ApplicationUserRequest request = requestFactory.applicationUserRequest();
ApplicationUserProxy applicationUser = clientFactory.getApplicationUser();
request.edit(applicationUser);
*applicationUser.setSolve360ApiKey(apiKey);
* request.persist().using(applicationUser);
request.fire(new Receiver() {
   .

but still throwing AutoBean frozen upon setting the String ?

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



requestfactory... AutoBean has been frozen

2011-04-16 Thread koma
My app is storing the currently logged in user in the clientfactory. 
At startup in the EntryPoint, I retrieve the ApplicationUser through the 
RequestFactory and store the ApplicationUser in the clientFactory. That 
makes it easily accessible for all activities. 
So this piece of code is in the EntryPoint (creating a new ApplicationUser 
if a AppEngine user is already logged, but I dont have a ApplicationUser 
record for it yet) :

// check who's logged in and startup;
requestFactory.usersService().findOrCreateApplicationUser().with("email").fire(new
 
Receiver() {
@Override
public void onSuccess(ApplicationUserProxy applicationUser) {
clientFactory.setApplicationUser(applicationUser);
if (applicationUser!=null) {
historyHandler.handleCurrentHistory();
} else {
placeController.goTo(new LoginPlace());
}
}
@Override
public void onFailure(ServerFailure error) {
super.onFailure(error);
}
@Override
public void onViolation(Set errors) {
super.onViolation(errors);
}
});


To make sure the client factory is notified of changes to the 
ApplicationUser, make it implement the 
EntityProxyChange.Handler interface.
First thing I don't understand is that :

public void onProxyChange(EntityProxyChange event) {
Logger logger = Logger.getLogger(ClientFactoryImpl.class.getName());
logger.log(Level.INFO, "this message should get logged");
}


in the clientFactoryImpl is fired immediately at startup. I expect this only 
to fire when an update occurs, although for a already existing user, I only 
return an existing record. The version is not changing.
This left aside, my core problem is that later on in the app, I try to 
update the ApplicationUser object, setting a String property :

ApplicationUserProxy applicationUser = clientFactory.getApplicationUser();
*applicationUser.setSolve360ApiKey(apiKey);
* 
requestFactory.applicationUserRequest().persist().using(applicationUser).fire(new
 
Receiver() {
@Override
public void onFailure(ServerFailure error) {
Logger.getLogger(Solve360ApiKeyActivity.class.getName()).log(Level.SEVERE, 
"failure saving API key:" + error.getMessage());
super.onFailure(error);
}
@Override
public void onSuccess(Void response) {
Logger.getLogger(Solve360ApiKeyActivity.class.getName()).log(Level.INFO, 
"success saving API key");
}
@Override
public void onViolation(Set errors) {
Logger.getLogger(Solve360ApiKeyActivity.class.getName()).log(Level.SEVERE, 
"validation error saving API key:" + errors.toString());
super.onViolation(errors);
}


});


I run into this exception :

*Caused by: java.lang.IllegalStateException: The AutoBean has been frozen*
at 
com.google.gwt.autobean.shared.impl.AbstractAutoBean.checkFrozen(AbstractAutoBean.java:182)

This happens when I try to set the String property, not when firing the 
persist() method.

Anybody can help me on my way out of this ? 
Is my usage pattern flawed ?

thx

Koen

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



Re: RequestFactory EntityProxy.create with related ValueProxies ?

2011-03-07 Thread koma
* ServiceLocator eliminates the need for static methods
* Locator is great when you don't control the source code for the entities. 
In my case, the underlying entities are GData Contacts.

I cannot implement the EntityProxy interface in the server side object, 
because the server side object is *
com.google.gdata.data.contacts.ContactEntry*, external library.

*@ProxyForName(value = "com.google.gdata.data.contacts.ContactEntry", 
locator = "xxx.server.request.ContactLocator")*
*public interface ContactEntryProxy extends EntityProxy*

But because Locator's exist, I can use *
com.google.gdata.data.contacts.ContactEntry* as my server backed 
implemenation.
Locator would be a great place to implement 
*xxx.server.request.ContactLocator.setEmailAddresses, 
* since I have the same problem here : I cannot implement the setter because 
it is an external library.

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



Re: RequestFactory EntityProxy.create with related ValueProxies ?

2011-03-07 Thread koma

I was thinking about adding parameter List to persist :

*public String persist(ContactEntry contactEntry) { ... }*

would become :

*public String persist(ContactEntry contactEntry, List 
emailAddresses) { ... }*

and take care of the linking in one go.
It would be great if ContactEntryProxy would also try to match for 
getters/setters in its locator. Typically, you use a Locator if you don't 
control  all aspects of the underlying entity anyway. Or don't I see this 
correct ?

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



Re: RequestFactory EntityProxy.create with related ValueProxies ?

2011-03-07 Thread koma
This is a missing piece of code for the above question : 

*@ProxyForName(value = "com.google.gdata.data.contacts.ContactEntry", 
locator = "xxx.server.request.ContactLocator")*
*public interface ContactEntryProxy extends EntityProxy {*
*
*
* List getEmailAddresses();*
* *
* NameProxy getName();*
*
*
* void setName(NameProxy name);*
* *
* void setNickname(NicknameProxy nicknameProxy);*
*
*
* NicknameProxy getNickname();*
* *
*
*
*}*

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



RequestFactory EntityProxy.create with related ValueProxies ?

2011-03-07 Thread koma
I have a working request context :
public interface ContactsService extends RequestContext {
Request> getContacts(int offset, int pageLength);
Request persist(ContactEntryProxy entry);
Request remove(ContactEntryProxy entry);
Request> findContacts(String search);
}

When I create a ContactEntryProxy like this :
** ContactEntryProxy contactEntryProxy = 
contactsService.create(ContactEntryProxy.class);*

Then the getter for emailAddresses of this newly created contactEntryProxy
** ListcontactEntry.getEmailAddresses; *
*
*
always returns NULL, while on the server the value is empty list.
I cannot do something like 
*contactsService.create(ContactEntryProxy.class).with("emailAddresses") 
*?
Problem is that the underlying EntityObject does not have a 
setEmailAddresses;
So I have no way to populate the email addresses on the client because :
- I cannot add to a null list
- I cannot set to a new list.

Koen

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



Re: creating ValueProxies on the client

2011-03-07 Thread koma
Ok figured it out :

requestFactory().contactsService().create(EmailProxy.class) works;

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



Re: creating ValueProxies on the client

2011-03-07 Thread koma
and each backed by interface method...

(i now I finish this conversation with myself)

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



Re: creating ValueProxies on the client

2011-03-07 Thread koma
So I will need methods :

public Email createEmail() {
return new Email();
}

public Name createName() {
return new Name();
}

public GivenName createGivenName() {
return new GivenName();
}

public FamilyName createFamilyName() {
return new FamilyName();
}

public FullName createFullName() {
return new FullName();
}

public Nickname createNickname() {
return new Nickname();
}
and many many more

that's so much boilerplate

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



Re: creating ValueProxies on the client

2011-03-07 Thread koma
I see that in the DynaTableRF example, creating value proxies is done 
through the service

  @Service(value = ScheduleService.class, locator = 
ScheduleServiceLocator.class)
  interface ScheduleRequest extends RequestContext {
Request createTimeSlot(int zeroBasedDayOfWeek, int 
startMinutes,
int endMinutes);
  }


I guess that's the way to go.

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



creating ValueProxies on the client

2011-03-07 Thread koma
Hi,

My ValueProxy looks like this :

@ProxyForName("com.google.gdata.data.extensions.FamilyName")
public interface FamilyNameProxy extends ValueProxy {
 public String getValue();
public void setValue(String familyName);

}
I have similar proxies for EmailProxy, FullNameProxy, GivenNameProxy etc 
etc.
If I want to create a new ContactEntry (=EntityProxy) on the client side, I 
need to populate this entity with a number of ValueProxies.

I can of course create a service method that can be used on the client side 
to get a new FamilyNameProxy() and others...
But this requires a async call of the service.

ContactEntryProxy.create() is implemented for the EntityProxy through a 
Locator
Can I implement this for ValueProxies too ?
Do I return simply null for getId() and related functionality that does not 
apply to value proxies ?


thx,

koen

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



Re: RequestFactory fails validation, but I don't see why ?

2011-03-07 Thread koma
Thx Thomas,

I thought that using a Locator for an entity means that all calls to that 
entity are directed to its Locator.
My entity type is "com.google.gdata.data.contacts.ContactEntry", so I cannot 
implement methods for this class unless I start wrapping it, which I would 
like to avoid.
That is why I decided to group all methods in my service object and my 
service extends Locator.

The Editor framework will work fine using just Request's instead of 
InstanceRequest's in terms of calculation diffs, batching calls and emitting 
change events ?



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



RequestFactory fails validation, but I don't see why ?

2011-03-07 Thread koma
The code below fails to validate the InstanceRequests defined  - here's the 
exception - I have been staring at it for a couple of hours now but failed 
to find the problem.

*Mar 7, 2011 9:19:48 AM 
xxx.shared.request.ApplicationRequestFactory.ContactsService 
com.google.gwt.requestfactory.shared.InstanceRequest persist()*
*SEVERE: Could not find matching method in 
xxx.server.request.ContactsServiceImpl.*
*Possible matches:*
*  java.lang.String persist(com.google.gdata.data.contacts.ContactEntry )*
*
*
*Mar 7, 2011 9:19:48 AM 
xxx.deferredgmail.shared.request.ApplicationRequestFactory.ContactsService 
com.google.gwt.requestfactory.shared.InstanceRequest remove()*
*SEVERE: Could not find matching method in 
xxx.server.request.ContactsServiceImpl.*
*Possible matches:*
*  void remove(com.google.gdata.data.contacts.ContactEntry )*
*
*
*
*

*
**@ProxyForName*(value = "com.google.gdata.data.contacts.ContactEntry", 
locator = "xxx.deferredgmail.server.request.ContactsServiceImpl")
public interface *ContactEntryProxy* extends *EntityProxy* {
List getEmailAddresses();
NameProxy getName();
NicknameProxy getNickname();
}
*@ServiceName*("xxx.server.request.ContactsServiceImpl")
public interface *ContactsService* extends *RequestContext* {
 Request> getContacts(int offset, int pageLength);
 InstanceRequest persist();
 InstanceRequest remove();
}
public class *ContactsServiceImpl* extends *Locator* {
public String *persist*(ContactEntry contactEntry) {
String ret = null;
(implementation details)
return ret;
}
public void *remove*(ContactEntry contactEntry) {
  (implementation details)
}
@Override
public ContactEntry *find*(Class clazz, String id) {
(implementation details)
}
@Override
public Class *getDomainType*() {
(implementation details) 
}
@Override
public String *getId*(ContactEntry contactEntry) {
(implementation details)
}
@Override
public Class *getIdType*() {
(implementation details)
}
@Override
public Long *getVersion*(ContactEntry contactEntry) {
(implementation details)
}
public static List *getContacts*(int startIndex, int 
maxResults) throws OAuthException, IOException,
(implementation details)
}
}


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



Re: RequestFactory and GData glue

2011-03-04 Thread koma
Locator.create()

Thomas' replied me :
"I believe you should do it in some kind of "persist" method in a service 
instead. create() is called when sending to the server a proxy that was 
created on the client-side (for EntityProxy-s; for ValueProxy-s, it's called 
for any object sent from the client to the server, whether it was created on 
the client or just edited there)."

* Does the Locator.create function just returns a not-persisted entity ? Is 
the implementation in my case simply 'return new ContactEntry()' ?
* I am not getting it. Actually, how does the RequestFactory know that I 
updated, deleted etc an entity. Does it check the version to see if updates 
occurred ? How about deletes ?


any gurus out here ?

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



Re: Best practice for to maintain Big project

2011-03-03 Thread koma
During client-side development, you can just make code changes, reload your 
browser and see the impact of your changes;

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



Re: Using HashMap with ValueProxy

2011-03-02 Thread koma
Not supported, my guess :

Requests can be parameterized with the following types:

   - Built-in value types: BigDecimal, BigInteger, Boolean, Byte, Enum, 
   Character, Date, Double, Float, Integer, Long, Short, String, Void
   - Custom value types: any subclass of ValueProxy
   - Entity types: any subclass of EntityProxy
   - Collections: List or Set, where T is one of the above value or 
   entity types

Note that primitive types are not supported. Instead, use the corresponding 
wrapper types. Instance methods that operate on an entity itself, like 
persist() and remove(), return objects of type InstanceRequest rather than 
Request. This is explained further in the next section.


http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

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



Re: Example to test RequestFactory in JRE

2011-03-02 Thread koma
Yes, but it's got more the unresolved dependies.
Why is this not in the GWT jars ?
Are the test classes omitted from the packaged jar ?

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



Re: Example to test RequestFactory in JRE

2011-03-01 Thread koma
where do i find RequestFactoryJreTest ?

That class is not available in the jars of my GWT 2.2 project?

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



Re: RequestFactory and GData glue

2011-03-01 Thread koma
OK

Spotted stupid typo :
applicationRequestFactory.contactsService().getAllContacts().with("emailAddre
*sss*es").fire(new Receiver>() {

Not checking or throwing exceptions over this - something we learned today 
;-)
But it is working  now !



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



Re: RequestFactory and GData glue

2011-03-01 Thread koma
Thx Thomas -  I was hoping you would pick this up ;)

I was hopefull for the .with(...) solution; But it doesn't do much. I 
changed the call to :

public void queryContacts() {
applicationRequestFactory.contactsService().getAllContacts().with("emailAddressses").fire(new
 
Receiver>() {
@Override
public void onSuccess(List contacts) {
clientFactory.getHelloView().setContacts(contacts);
}
@Override
public void onFailure(ServerFailure error) {
super.onFailure(error);
}
@Override
public void onViolation(Set errors) {
super.onViolation(errors);
}
});
}



The Entity is defined like this :

public class ContactEntry extends BasePersonEntry
and the getter for getEmailAddresses is defined in the supertype 
BasePeronEntry :

  public List getEmailAddresses() {
return getRepeatingExtension(Email.class);
  }


Can this be problematic ?

The full implemenation of my proxies look like this :

@ProxyForName(value = "com.google.gdata.data.contacts.ContactEntry", locator 
= "be.koma.domain.ContactEntryLocator")
public interface ContactEntryProxy extends EntityProxy {
// NameProxy getName();

List getEmailAddresses();
}
@ProxyForName("com.google.gdata.data.extensions.Email")
public interface EmailProxy extends ValueProxy {

  /** The email type. */
  public String getRel();
  public void setRel(String v);
  /** Label. */
  public String getLabel();
  public void setLabel(String v);
  /** Email address. */
  public String getAddress();
  public void setAddress(String v);
  /** Email quota. */
  public String getQuota();
  public void setQuota(String v);
  /** Whether this is the primary email address */
  public boolean getPrimary();
  public void setPrimary(boolean p);
  /** Display name of the email address */
  public String getDisplayName();
  public void setDisplayName(String n);
}








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



RequestFactory and GData glue

2011-03-01 Thread koma
Hi,

I am working on a GWT 2.2 application and the server side connects to the 
GData Contacts Feed.

First implementation  was sending wrapped GData contacts as ValueProxy over 
to the client.

Coming to the think about it, a GData ContactEntry is actually an entity, 
but not the typical database entity.
So it would be great to work on a contact list with RequestFactory and 
eventbus dispatchen updates to the editors and managing a cache.

So I implemented a Locator for a ContactEntry :

public class ContactLocator extends Locator {
@Override
public ContactEntry create(Class clazz) {
ContactEntry contactEntry = null;
try {
contactEntry = new ContactEntry();
Name name = new Name();
contactEntry.setName(name);
// Ask the service to insert the new entry
URL postUrl = new URL("https://www.google.com/m8/feeds/contacts/default/id/"; 
+ contactEntry.getId());
contactEntry = ContactsServiceImpl.getContactsService().insert(postUrl, 
contactEntry);
} catch (Exception e) {
// TODO: deal with this;
}
return new ContactEntry(contactEntry);
}

@Override
public ContactEntry find(Class clazz, String id) {
ContactEntry contactEntry = null;
try {
// Build the GData URL for the contact entry and retrieve;
contactEntry = ContactsServiceImpl.getContactsService().getEntry(
new URL(id), ContactEntry.class);
} catch (Exception e) {
// TODO: deal with this;
}
return contactEntry;
}

@Override
public Class getDomainType() {
return ContactEntry.class;
}

@Override
public String getId(ContactEntry contactEntry) {
String ret = null;
if (contactEntry != null) {
ret = contactEntry.getEditLink().getHref();
}
return ret;
}

@Override
public Class getIdType() {
return String.class;
}

@Override
public Long getVersion(ContactEntry contactEntry) {
if (contactEntry != null) {
return contactEntry.getUpdated().getValue();
} else {
return null;
}
}
}


I setup ContactProxy as EntityProxy for GDATA ContactEntry

@ProxyForName(value = "com.google.gdata.data.contacts.ContactEntry", locator 
= "com.example.domain.ContactLocator")
public interface ContactProxy extends EntityProxy {
NameProxy getName();
List getEmailAddresses();
}


NameProxy and EmailProxy are ValueProxies mapping the properties from the 
respective Name and Email extension in GData.

One question, one problem :

PROBLEM :
- I make a service call to query for all contacts. The list with contact 
proxies is correctly returned to the client. But all value proxies (getName, 
getEmailAddresses) are NULL, so I can't access the information. 
QUESTION 
- After the query for all contacts, the locator find by Id methods are 
called for each ContactEntry. This seems like a lot of overkill - why does 
it do so ?

Maybe my approach is total overkill, don't hesitate to question it;


cheers,

Koen



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



JSONP and single signon (JOSSO)

2010-12-15 Thread koma
Hi

I am developing a GWT app that talks to a JSONP service.

The HTML host page is on a different domain from the JSONP service.

The HTML host page is protected by a single signon service JOSSO (
http://www.josso.org)
The JSONP service is protected by the same single signon service.
The results from the JSONP vary depending on the user that is logged in.

Upon retrieving the HTML host page the first time, the user is redirected to 
the JOSSO login page. After authentication, a cookie keeps the JOSSO session 
alive.
The problem is that the JSONP calls don't seem propagate this cookie.

Can somebody confirm this ? Is there a workaround ?

thx,

Koen


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



Re: Question for GWT users who use Maven

2010-12-13 Thread koma
This is the last thing I'll say about maven, I don't want to start a
flame war :

Version numbers : how about a manifest file ??
Ant builds are almost always horrific ? Apparently, all example code
from Google works out of the box, expect for the maven builds. But
surely, my environment is to blame.
"why doesn't GWT follow established Maven conventions?" => Maybe the
world doesn't revolve around maven ?
"GWT likes to do everything in unconventional ways." => maybe the tool
of your choice isn't that flexible after all ?

People who love Maven, love the theory behind it. And I sure can see
the theory too. But this thing got stuck where old school Linux
dependency hell once made me loose hair. We were told it is the
learning curve back then too!! Yes, I've been running in-house maven
repos to fix all that madness. Time I should've spent coding!
People who hate Maven, hate the reality it brings. I'm with them. Now
start yelling you're doing the *big* projects, and all non-Maven are
only doing toy projects. Right, we're the newbies, not aware of the
world around us.

http://www.alittlemadness.com/2007/08/01/the-problem-with-maven/

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



Re: Question for GWT users who use Maven

2010-12-12 Thread koma
Really, tell me : what does Maven bring you expect for the above
problems ?

- dependency management : Is is really easier ? what's so hard about
downloading a jar and setting the build path ? sure you're not
spending more time adjusting the pom ?
- Large existing repository : in my experience, more often than not,
some transitive dependency is screwed and you're overwriting it in
your pom;
- consistent layout : isn't GWT suggesting a layout already ?
- Setting up a project is really fast :  isn't the GWT plugin doing
that really nice for you ?

browse this group and you'll notice so many folks struggling with
maven instead of struggling with code!
and didn't maven promise to get you coding in the first place ?

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



Re: Announcing Chrome Developer Plugin support for Mac and Linux

2010-12-10 Thread koma
Same here, not usable; switched back to FF.

On Dec 10, 12:19 pm, Vagner Araujo  wrote:
> Hello Friends,
>
> gwt plugin work in my google-chrome 8.0.552.215. But in development mode
> It's very very very slow.
>
> I'm using Slackware Linux Current 32bits with xfce4, eclipse Helios and 2GB
> ram.
>
> Thanks,
> --
> *
> Vagner Araujo
>
> O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E
> ALÉM... !!
> *

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



Re: design pattern for common functionality between Activities

2010-11-22 Thread koma
No, places and activities are orthogonal to each other

a webpage consists of many display regions
every display region is managed by a activity manager

when a place change occurs, the activity managers are notified and
they decide the activity to live inside the display region

I tried to explain this in more elaborate earlier in this thread, but
here's where i got my insights from  : 
http://tbroyer.posterous.com/gwt-21-activities

good luck,
K.

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



Re: design pattern for common functionality between Activities

2010-11-22 Thread koma
Not really, but it is not that hard to modify HelloMVP to make it
work.

Actually HelloMVP is a really confusing example, because

- the activities are called HelloActivity and GoodbyeActivity
- the places are called HelloPlace and GoodbyePlace

but the activities and places are orthogonal to each other. That
doesn't help to get a clearer understanding.

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



OAuth and development

2010-11-20 Thread koma
Hi,

I am developing an application for GAE that uses OAuth to access GData
feeds.
OAuth needs a static, public ip (domain) to callback to. I can manage
my way around this by using dynamic dns and port forwarding on my
router.
But this is not possible behind a corporate firewall ! Any advise
here ?
Debugging is impossible. Opening a browser to

http://myname.no-ip.com/index.html?gwt.codesvr=127.0.0.1:9997 says
that 127.0.0.1 is unreachable.

Opening a additional port 9997 and forwarding that to my development
machine like this :

http://myname.no-ip.com/index.html?gwt.codesvr=myname.no-ip.com:9997
does not work either. The development plugin keeps on looking for a
connection that never happens.

How to go about here ?


thx,

koen

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



Re: design pattern for common functionality between Activities

2010-11-19 Thread koma
How I understand things, a display region is a dynamic part of a
webpage;

Depending on the place you're at, a display region is populated with a
specific activity.
A activity manager is the manager of a display region and decides the
right activity to show up for a given display region when a certain
page is showing.

So, in terms of your question : a display region can be a dynamic
menu, a sidebar, a logout/login link not the entire group.
An example

page with menu displayregion, maincontent displayregion, sidebar
displayregion

example page #ContactDetailsPage:FooBar
+> sidebar display region will be instructed by the sidebar-
activitymanager to start the activity GrandChildrenActivity (display
grandchildren in side bar)
+> maincontact display region will be instructed by the
maincontentarea-activitymanager to start the activity
ContactDetailsActivity (display contact details in main content area)
+> menu display region will be instructed by the menu-activitymanager
to start the activity MenuActivity (show the menu)

example page #Login
+> sidebar display region will be instructed by the sidebar-
activitymanager to display nothing (NULL)
+> maincontact display region will be instructed by the
maincontentarea-activitymanager to start the activity LoginActivity
(display login page)
+> menu display region will be instructed by the menu-activitymanager
to start the activity WelcomeActivity (show a welcome msg)

etc etc.

So far my understanding.

Koen

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



Re: Request Factory Entity Relationships Lazy Loading

2010-11-18 Thread koma
IMO, this problem is not really GWT related but standard hibernate/jpa
behaviour.
Either you define your relationships as lazy, which means that they
are not loaded when the parent object is loaded, or you define the
relations as eager fetch.
The best practice is lazy load and then load the needed relationships
on a adhoc basis using Hibernate.initialize(donor.getDonations()) to
fetch them.

So you want the donations to come with the donor, initialize that
relation during the transaction.
Outside the transaction, any relation that was not loaded will throw a
lazy load exception when you read any out of these related objects.

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



Re: design pattern for common functionality between Activities

2010-11-17 Thread koma
hi Nicolas & others,

I understand how you work with the dynamic hosted page, but how do you
throw the remote exception like you describe here :

On server side, I use a security framework that check permission on
rpc
call. If user is not logged in (session has expired) but want to
access to a
"secured method" -> I throw a special remote exception. This
exceptions is
handled by a custom AsyncCallback that will redirects the user to a
login
page + sends a new LoginStatusEvent(false)

I am using Requestfactory and I have "/gwtRequest" behind a security
constraint; so I can block unauthorized request, but I am not
receiving a RemoteException; Neither is 'onViolation' or 'onFailure'
triggered; My console displays just a JSON exception that occurs.

thx

Koen


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



Re: GWT+Roo a few days later

2010-11-16 Thread koma
Completely following Amir's conclusion... don't go the Spring Roo way.
Finding some useful code after the clutter is the main challenge;

Moreover, the dependencies on Maven - yikes

Try to get deeper understanding programming GWT 2.1 by hand - this
blog series is great : http://tbroyer.posterous.com/

K.

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



Re: Eclipse plugin reports problem with EntityProxy referencing server class

2010-11-12 Thread koma
opened issue :

http://code.google.com/p/google-web-toolkit/issues/detail?id=5587

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



Re: design pattern for common functionality between Activities

2010-11-12 Thread koma
I think i start to understand, after reading the blog posts from
Thomas Broyer here: http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni
and the other posts in this series

Looking at a host page, you can identify different display areas.
Every "dynamic" area - not the static part of the host page - is
managed by an activity manager, which decides the activity to live in
the display area.
The applications switches between places and changing places triggers
each activity manager to update its part of the display area;

So I think I have to create a
- menu activity manager
- main content activity manager
- login/logout link activity manager
- sidebar activity manager.


What do think ? Is my understanding of the "big picture" correct ?

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



Re: Eclipse plugin reports problem with EntityProxy referencing server class

2010-11-12 Thread koma
At runtime, everything works just fine

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



Eclipse plugin reports problem with EntityProxy referencing server class

2010-11-12 Thread koma
eclipse is reporting an error like this :

"com.example.server.domainmodel.SomeEntity" can not be found in source
packages. Check the inheritance chain from your module; it may not be
inheriting a required module or a module may not be adding its source
path entries properly.

in the class

package com.example.shared.proxies;

@ProxyFor(com.example.server.domainmodel.SomeEntity.class)
public interface SomeEntityProxy extends EntityProxy {

public Date getMemberSince();

public void setMemberSince(Date scheduled);
}

My module defines "client" and "shared" as source paths

SomeEntity.class is on the server path, outside the source paths;
SomeEntityProxy is on the shared path, for both client and server

I think this problem is a false positive reported by the Eclipse
Plugin ?

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



Re: GWT 2.1 RequestFactory and complex properties on my DTO (Entity proxies)

2010-11-09 Thread koma
I guess this is the relevant part :

A new "Proxy" interface will be added as a superclass of ValueProxy
and EntityProxy to allow RequestFactory.create to operate on both
value and entity types.
Because ValueProxy doesn't have a stableId() method, there's no way to
use a VP with a call to find() or with any other service method that
has an EntityProxyId argument.
If you think about a Date object, there's no real meaning in giving a
Date an id.
If an EntityProxy has a value property, all of the properties of the
VP are checked for mutations and sent to the server.
The value in the domain object will be replaced if anything in the
VP's state has changed.

http://code.google.com/p/google-web-toolkit/issues/detail?id=5522
http://code.google.com/p/google-web-toolkit/issues/detail?id=5357


On Nov 9, 10:19 am, Thomas Broyer  wrote:
> On 9 nov, 03:01, David Chandler  wrote:
>
> > It's still too early to call a release date. The RequestFactory
> > enhancements are in code review and should be going into trunk
> > shortly. Seehttp://gwt-code-reviews.appspot.com/1062801/show
>
> Or maybe they're already 
> there:http://code.google.com/p/google-web-toolkit/source/detail?r=9189
> The commit log references a different code review though, I don't know
> what the differences are, maybe Bob could give details?

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



design pattern for common functionality between Activities

2010-11-08 Thread koma
Hi GWT gurus,

Learning the new GWT 2.1 framework and I got security up&running on my
GAE application.
Now working with the new Activities/Places.

My applicaiton will have a login/logout link in the top right of the
website/app.

How do I keep this link in sync with the security status of the
current visitor/user.
Will every activity have to check for the status of the of current
user ?

Do I create a super class AbstractMyApplicationActivity that
implements this functionality and then call this in start() for each
child activity ?

like this
public AbstractMyApplicationActivity extends AbstractActivity {
public void updateLoginLogoutLink() {
   // set the login/logout link correctly
}
}

public SomeActivity extends AbstractMyApplicationActivity {
public void start(AcceptsOneWidget containerWidget, EventBus
eventBus)  {
 updateLoginLogoutLink()
 ... some other activity specific stuff.
}
}

Is there a more elegant pattern for implementing this? Now the
responsibility of making this calling is present in every activity
feels uncomfortable;

thx,

koen

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



GWT 2.1 RequestFactory and complex properties on my DTO (Entity proxies)

2010-11-08 Thread koma
Hi,

My entities are persisted via JDO in the Datastore (GAE). I can
transfer DTOs to the client by creating EntityProxy objects that match
the entity's properties (getters/setters).
But how do I transfer the more complex values like
com.google.appengine.api.datastore.Email with my DTO object to the
client ?
these classes com.google.appengine.api.datastore.* are not on the
classpath for the client and result in ClassNotFoundExceptions;

thx,

koen

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



Re: GWT 2.1.0 maven asks for com.google.gwt:gwt-dev:jar:windows:2.1.0??

2010-11-08 Thread koma

worst decision ever to get on the maven/spring-roo boat.
after 25 mins of waiting while maven is downloading after issuing
"perform eclipse" for a basic spring-roo, maven stumbles with an error
because JAVA_HOME is not properly set.
after fixing that, "perform eclipse" works but the resulting project
is in conflict with the Google Plugin
and running the apps fails due to missing dependencies that maven
apparently overlooked

and maven is supposed to make life easier, well, not mine for sure.

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