Re: Eclipse hosted mode in Facebook iframe

2011-06-21 Thread Peter
Thanks! Editing the hosted.html file works. I can also use 127.0.0.1 in the 
iframe URL, but then I haven't enabled any cross-site request forgery 
measures.

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



Post upgrade problems with GWT 2.3.0

2011-06-21 Thread mohit
Hi all,

I have just update my GWT 2.1.1 to GWT 2.3.0
Initially I was having problems with smartGWT which I resolved by
replacing old SmartGWT
jar with the latest nightly build of SmartGwt.
I had to add two more jars namely,

validation-api-1.0.0.GA.jar
&
validation-api-1.0.0.GA-sources.jar

Now my application compiles perfectly, at least I am not getting any
compilation errors.

My Application displays a Table similar to JTable.

But the problem is that it is not displaying any data.

When I ran the exact same application using GWT 2.1.1 it worked just
fine as always.

I am using ANT 1.7, GWT 2.3.0, JBoss 4.0.5.GA & Eclipse Java EE IDE
for Web Developers.

Version: Helios Service Release 2
Build id: 20110218-0911

Guys please help,

Thanks a lot,
Mohit

-- 
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: Eclipse hosted mode in Facebook iframe

2011-06-21 Thread A. Stevko
I answered this question at stackoverflow
http://stackoverflow.com/questions/2646544/debug-gwt-inside-facebook-iframe/3283940#3283940

As it is, you cannot use 127.0.0.1 as the url hostname  for your facebook
app - you'll have to use a dns hostname pointing to the public ip address of
your computer.

On Tue, Jun 21, 2011 at 7:12 AM, Peter  wrote:

> Hi,
>
> We're developing a Facebook app with GWT but can't get the hosted mode
> in Eclipse to work inside Facebook's iframe. Have anyone got this
> working? It would make it simpler to debug some issues.
>
> We've tried using the dev plugins for Firefox 4, Explorer 7 and Chrome
> 12. Firefox and Explorer only shows the last cached, GWT compiled
> page. Chrome says "Plugin failed to connect to Development Mode
> server...".
>
> We've tried adding "gwt.codesvr=127.0.0.1:9997" to both the iframe URL
> and to the top window URL.
>
> Anyone else who's made a Facebook app with GWT, please make a comment.
>
> --
> 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.
>
>


-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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: Eclipse hosted mode in Facebook iframe

2011-06-21 Thread Peter
I think you misunderstood. We don't want to create an iframe in GWT code. 
Our GWT page is loaded in an iframe. The URL of the iframe is 
"http://127.0.0.1:/Page.html?gwt.codesvr=127.0.0.1:9997";. But this 
doesn't work with the development mode in Eclipse. 

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



onCellClicked alternative?

2011-06-21 Thread Navindian
PFA class.

I am able to implement onCellClicked event with this. Looks like with the
latest gwt 2.3.3, it is deprecated. Please suggest alternate way of
implementing this in the flextable.

Thanks
navindian

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



McintoshEntryPoint.java
Description: Binary data


Re: Apache Shiro or Spring Security??

2011-06-21 Thread Elhanan Maayan
 we are exploring apache shiro with gwt integration, the reason is first of
all, you don't spring beans for it, and 2nd is that also provides for
session management which spring security does not.
even folks at spring forums say shiro has much broader scope then security
..


On Wed, Jun 22, 2011 at 6:17 AM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> I do a simple sample
> that
> integrate with spring security, but is very basic. Have server side
> protected method too with jsr-250.
>
> I can't said anything about apache shiro, but if you choose spring security
> you will no have problems
>
>
> 2011/6/21 Juan Pablo Gardella 
>
>> good luck
>>
>>
>> 2011/6/21 Fabricio Pizzichillo 
>>
>>> thanks, I'll do some research on how to integrate
>>>
>>>
>>> 2011/6/21 Juan Pablo Gardella 
>>>
 I use spring security and works. Is robust and mature.

 2011/6/21 Fabricio Pizzichillo 

>  Hello everyone.
> What security and authentication framework works well with a GWT
> application?
> Someone used some as Apache-Shiro or Spring-Security?
> What do you recommend?
>
> thanks
> Fabricio
>
>  --
> 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.
>

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

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

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



customize animation effect of Tree/TreeItem

2011-06-21 Thread karthik reddy
I went through the code in Tree/TreeItem and seems like the animation 
duration( I think this governs how slow/fast the the tree collapses with the 
slide down effect) is hard-coded and set to "private":

private static final int  ANIMATION_DURATION = 200;

Hoping against hope: Is there any other way this duration be customized???

FYI:I still have not taken the plunge into Cell-based widgets yet. So, 
CellTree is offlimits to me.

thanks


-- 
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/-/MJT1z55Yt84J.
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: Apache Shiro or Spring Security??

2011-06-21 Thread Juan Pablo Gardella
I do a simple sample
that integrate
with spring security, but is very basic. Have server side protected method
too with jsr-250.

I can't said anything about apache shiro, but if you choose spring security
you will no have problems

2011/6/21 Juan Pablo Gardella 

> good luck
>
>
> 2011/6/21 Fabricio Pizzichillo 
>
>> thanks, I'll do some research on how to integrate
>>
>>
>> 2011/6/21 Juan Pablo Gardella 
>>
>>> I use spring security and works. Is robust and mature.
>>>
>>> 2011/6/21 Fabricio Pizzichillo 
>>>
  Hello everyone.
 What security and authentication framework works well with a GWT
 application?
 Someone used some as Apache-Shiro or Spring-Security?
 What do you recommend?

 thanks
 Fabricio

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

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

-- 
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: Apache Shiro or Spring Security??

2011-06-21 Thread Juan Pablo Gardella
good luck

2011/6/21 Fabricio Pizzichillo 

> thanks, I'll do some research on how to integrate
>
>
> 2011/6/21 Juan Pablo Gardella 
>
>> I use spring security and works. Is robust and mature.
>>
>> 2011/6/21 Fabricio Pizzichillo 
>>
>>>  Hello everyone.
>>> What security and authentication framework works well with a GWT
>>> application?
>>> Someone used some as Apache-Shiro or Spring-Security?
>>> What do you recommend?
>>>
>>> thanks
>>> Fabricio
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: השב: Re: building custom event differently to avoid boiler plate coding?

2011-06-21 Thread Elhanan Maayan
first off  you probably mean the strong type definitions provided by GWT,
not java right?

second, that's not what i'm suggesting, i don't want to use events for
enable disable buttons, but i  do want to use to create logical
messages, that a work process has ended/started, or basically whatever
causes you to leave a view and enter another one.

i'm also not working with just Object or string, i'm doing exactly the same
thing gwt does only with less code, i'm providing strong typed events, with
generics, only without the need to actually create a new class for it every
single time

i can do this:

private final MessageFactory ENTITY_CREATED=new
MessageFactory()
private final MessageFactory ENTITY_DELETED  =new
MessageFactory();

...
addHandler(ENTITY_CREATED=new MessageHandler{
}

fire(ENTITY_CREATED.fire(entity))

i get a strong typed custom event just like before, only with much less
code..

On Tue, Jun 21, 2011 at 10:46 PM, Alex D.  wrote:

> You shouldn't use custom events for every possible event in your app, imo
> -- or, even better, identify the best events that match as much as possible.
>
>
> What you're suggesting by this is removing the strong-type event
> definitions provided by Java.
>
> Of couse, you can work with a class called Event, that merely has a "String
> name" and "Object data", but this defeats the purpose of what GWT is
> suggesting
>
> --
> 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/-/Y_ZKLyl29DkJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re : @ImageOptions

2011-06-21 Thread Thomas Broyer
Could it rather be about how you *use* the ImageResource? 
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6145

-- 
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/-/Uifwj_2ZtLgJ.
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: Apache Shiro or Spring Security??

2011-06-21 Thread Fabricio Pizzichillo
thanks, I'll do some research on how to integrate

2011/6/21 Juan Pablo Gardella 

> I use spring security and works. Is robust and mature.
>
> 2011/6/21 Fabricio Pizzichillo 
>
>>  Hello everyone.
>> What security and authentication framework works well with a GWT
>> application?
>> Someone used some as Apache-Shiro or Spring-Security?
>> What do you recommend?
>>
>> thanks
>> Fabricio
>>
>>  --
>> 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.
>>
>
>  --
> 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.
>

-- 
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: Apache Shiro or Spring Security??

2011-06-21 Thread Juan Pablo Gardella
I use spring security and works. Is robust and mature.

2011/6/21 Fabricio Pizzichillo 

> Hello everyone.
> What security and authentication framework works well with a GWT
> application?
> Someone used some as Apache-Shiro or Spring-Security?
> What do you recommend?
>
> thanks
> Fabricio
>
>  --
> 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.
>

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



Apache Shiro or Spring Security??

2011-06-21 Thread Fabricio Pizzichillo
 Hello everyone.
What security and authentication framework works well with a GWT application
?
Someone used some as Apache-Shiro or Spring-Security?
What do you recommend?

thanks
Fabricio

-- 
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: השב: Re: building custom event differently to avoid boiler plate coding?

2011-06-21 Thread Alex D.
You shouldn't use custom events for every possible event in your app, imo -- 
or, even better, identify the best events that match as much as possible.

What you're suggesting by this is removing the strong-type event definitions 
provided by Java.

Of couse, you can work with a class called Event, that merely has a "String 
name" and "Object data", but this defeats the purpose of what GWT is 
suggesting

-- 
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/-/Y_ZKLyl29DkJ.
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: RadioButton exception on create in IE9

2011-06-21 Thread Benju
I also have this problem with GWT 2.3.0 and creating buttons.

On May 13, 7:13 am, piXi  wrote:
> Helow,
>
> First my develop enviroment :
> Windows 7 x64
> Netbeans 7.0 ( tried also 6.9.1)
> Gwt4nb 2.10
> GWT2.2.0
>
> today I have upgraded my html to HTML5 and have encountered this
> error:
>
> 00:01:30,687 [ERROR] Uncaughtexceptionescaped
> com.google.gwt.core.client.JavaScriptException: 
> (null):DOMException:INVALID_CHARACTER_ERR(5)  code: 5  ABORT_ERR: 20
> ...
> WRONG_DOCUMENT_ERR: 4   at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
> elServer.java:
> 237)    at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 129)    at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)    at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)    at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
> ava:
> 91)     at
> com.google.gwt.dom.client.DOMImplTrident.createInputRadioElement(DOMImplTri 
> dent.java)
>         at com.google.gwt.dom.client.Document$.createRadioInputElement$
> (Document.java:961)     at
> com.google.gwt.user.client.DOM.createInputRadio(DOM.java:214)   at
> com.google.gwt.user.client.ui.RadioButton.(RadioButton.java:64)
> at com.google.gwt.user.client.ui.RadioButton.(RadioButton.java:
> 100)    at
> si.tridens.esmserver.client.common.CPM.createFilterRadio(CPM.java:525)
>         at
> si.tridens.esmserver.client.widget.FilterPanel.addFilterColumn(FilterPanel. 
> java:
> 65)     at
> si.tridens.esmserver.client.page.ProcessesTab.initTab(ProcessesTab.java:
> 96)     at
> si.tridens.esmserver.client.MainEntryPoint.addProcessesTab(MainEntryPoint.j 
> ava:
> 335)    at si.tridens.esmserver.client.MainEntryPoint
> $3.execute(MainEntryPoint.java:504)     at
> com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$
> (SchedulerImpl.java:50)         at
> com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerIm 
> pl.java:
> 229)    at
> com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(Sc 
> hedulerImpl.java:
> 389)    at com.google.gwt.core.client.impl.SchedulerImpl
> $Flusher.execute(SchedulerImpl.java:78)         at
> com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:
> 139)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)     at java.lang.reflect.Method.invoke(Method.java:597)     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 157)    at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
> rReturn(BrowserChannelServer.java:
> 326)    at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
> elServer.java:
> 207)    at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 129)    at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)    at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)    at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
> ava:
> 91)     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)        at
> com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)      at
> sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)     at java.lang.reflect.Method.invoke(Method.java:597)     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 157)    at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
> lServer.java:
> 281)    at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 531)    at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 352)    at java.lang.Thread.run(Thread.java:662)
>
> I get thisexceptiononly on IE9, Firefox and Chrome are working
> perfect.
> I have upgraded to HTML5 because of rounded edges in IE. With debuging
> I have located problem, and it occours on RadioButton create. I have
> also tested this with fresh dummy project showing only one radio
> button and I got same error than in my project.
>
> Have anyone expirienced similar problem ? I haven't found any solution
> for my problem using 'mr.google'.
>
> Any help will be appriciate.

-- 
You received this message because yo

Re: Context Menu in CellTable

2011-06-21 Thread André Salvati
Should I use EventBus even when the event is generated by an inner
component?

What would be a good design?

Thanks.

-- 
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: Context Menu in CellTable

2011-06-21 Thread André Salvati
Ok, following 1) I've got the code bellow.

Now, how can I define an event handler on a view which wraps this
CellTable??

These handlers are suposed to be defined by view and not by cells!!


public class TextCellNX extends AbstractSafeHtmlCell {

public TextCellNX() {
super(SimpleSafeHtmlRenderer.getInstance(), "contextmenu");
}

public TextCellNX(SafeHtmlRenderer renderer) {
super(renderer);
}

@Override
public void render(Context context, SafeHtml value, SafeHtmlBuilder
sb) {
if (value != null) {
sb.append(value);
}
}

@Override
public void onBrowserEvent(Context context, Element parent, String
value, NativeEvent event, ValueUpdater valueUpdater) {
String eventType = event.getType();

if ("contextmenu".equals(eventType)) {

event.preventDefault();

MenuBar popupMenuBar = new MenuBar(true);
MenuItem acao1 = new MenuItem("Ação 1", true,  new 
Command() {

@Override
public void execute() {
Window.alert("clicado");
//placeController.goTo(new 
ProxyListPlace(ClienteProxy.class));
}

});

popupMenuBar.addItem(acao1);
popupMenuBar.setVisible(true);

PopupPanel popupPanel = new PopupPanel(true);
popupPanel.add(popupMenuBar);
popupPanel.setPopupPosition(event.getClientX(),
event.getClientY());
popupPanel.show();

}
}
}

-- 
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: Pluggable modules

2011-06-21 Thread lemaiol
Hi Mike,

> I am growing to believe I need to deploy each plug-in as a separate
> WAR on a web-server. Is this true, or have I missed something?

In the case of my architecture, it is even a requirement that every
plugin will be deployed as an own WAR file. It allows different teams
working in parallel in completely independent applications (plugins)
which have a common "message data model". When inside the plugins
container, they receive messages with this "common data model". When
out of the plugins container, the show a simplified UI to let the
developer pass a "message" generated by hand and therefore test the
application.

> I am also using gwt-exporter to make the JSNI messaging mechanism;
> i.e. I just write an "Exportable" class and use the resulting JS API
> from my plugins. I am hoping to use gwt-api-interop to remove the need
> to use the JS API.

I have seen gwt-exporter but do not know gwt-api-interop.

> I assume the JS "bridge" between GWT applications handles the
> messaging between them (i.e. plugins register callbacks to handle
> messages sent from the "host"?)

Yes.

> If I understand correctly, adding additional script tags to my
> "loader" page and having each plug-in as a separate WAR I avoid the
> need to inherit in my gwt.xml file?

My common model and plugin base classes live in a common GWT module
that each plugin inherits.

> An example of your use of JavaScriptObject in your messaging sub-
> system would be interesting

// Application specific common model
 public final class CustomerInfo extends ModuleInfo {
protected CustomerInfo() {
}

public native String getId() /*-{
return this.id;
}-*/;

public native void setId(String id) /*-{
this.id = id;
}-*/;
}

// Base class for common models - no functionality as of now
public class ModuleInfo extends JavaScriptObject {
protected ModuleInfo() {
}
}

// To be implemented by every module
public interface IModule {
public String getName();
public void dispatch(String containerId, T moduleInfo);
}

// To be implemented by the main module or classes interested in
module lifecycle events
public interface IModuleAware {
public void onModuleAttached(Module module);
}

// Durable callback implementation - Because it uses JSNI, can be
inherited from GWT modules but it is interoperable. Avoids using gwt-
exporter
public final class ModuleListener extends
JavaScriptObject {
protected ModuleListener() {
}

public void onModuleAttached(Module module) {
invokeCallback(getCallback(), module);
}

private native void invokeCallback(JavaScriptObject callback,
Module module) /*-{
this.callback(module);
}-*/;

private native JavaScriptObject getCallback() /*-{
return this.callback;
}-*/;

public native void setCallback(JavaScriptObject callback) /*-{
this.callback = callback;
}-*/;
}

// Support for common modules functionality (static methods)
public abstract class ModulesSupport {
public static  boolean
registerAsListener(IModuleAware instance) {
ModulesConfig modulesConfig = getModulesConfig();
boolean result = null != modulesConfig;
if (result) {
modulesConfig.registerListener(createListener(instance));
}
return result;
}

public static  boolean
registerAsModule(IModule module) {
ModulesConfig modulesConfig = ModulesConfig.get();
boolean result = null != modulesConfig;
if (result) {
modulesConfig.attach(module.getName(),
createDispatchCallback(module));
}
return result;
}

public static  ModulesConfig
getModulesConfig() {
return ModulesConfig.get();
}

private static  ModuleListener
createListener(IModuleAware instance) {
ModuleListener result =
JavaScriptObject.createObject().cast();
result.setCallback(createListenerCallback(instance));
return result;
}

private static native JavaScriptObject
createListenerCallback(IModuleAware instance) /*-{
return function(module) {
 
instance.@org.myexample.modules.client.IModuleAware::onModuleAttached(Lorg/
myexample/modules/client/Module;)(module);
};
}-*/;

private static native JavaScriptObject
createDispatchCallback(IModule instance) /*-{
return function(containerId, moduleInfo) {
 
instance.@org.myexample.modules.client.IModule::dispatch(Ljava/lang/
String;Lorg/myexample/modules/client/ModuleInfo;)(containerId,
moduleInfo);
};
}-*/;
}

Hope it helps,
Berto

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



Aw: How to call a rest web service from gwt mobile application

2011-06-21 Thread Jens
Is the web service you want to call accessible on the same 
protocol://domain:port as your GWT app? Normally RequestBuilder should work 
fine for requesting rest web services but maybe you have been run into the Same 
Origin Policy ? If thats 
the case I think you have to use GWT's JsonpRequestBuilder to access the 
external web service.

-- J.

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



@ImageOptions

2011-06-21 Thread Hilco Wijbenga
Hi all,

I've been using @ImageOptions to scale (PNG) images. This mostly
worked in GWT 2.2 but now that I've moved to GWT 2.3 most images fail
quietly and don't display (meaning that src="#" instead of the inlined
image at runtime).

public interface MyResources
  extends
ClientBundle
{
  @Source("org/example/my-image-a.png")
  @ImageOptions(width = 118, height = 156)
  ImageResource myImageA();
:
  @Source("org/example/my-image-b.png")
  @ImageOptions(width = 130)
  ImageResource myImageB();
}

There does not seem to be any rule (AFAICT) that determines which
images work and which don't. What always seems to work is
@ImageOptions (i.e. no scaling) and @ImageOptions(width = W, height =
H) (where H and W are the actual height and width of the image). Other
values might or might not work. (It's quite deterministic though, the
same number(s) for the same image either work or they don't, it
doesn't change from run to run).

I intend to scale the images myself to work around the problem but I
would like to understand what the root cause is and why there are no
error messages. Any ideas?

Cheers,
Hilco

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



Standard vs Quirks mode also use of DecoratorPanel in Standard mode

2011-06-21 Thread Myth17
Hello
Can someone describe the advantages/disadvantages of Standard vs Quirks 
mode. Also when to use which?
(I googled around but couldnt not find something describing the issue in 
detail)

Also I have an app in standard mode and I want to use something like 
DecoratorPanel for the Stylized boxes. Any alternatives?

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



GWT and CORS with file uploads

2011-06-21 Thread Alan Chaney

Hi

My company is developing a REST API for an asset management system and 
we wish to add support for CORS both in the server (comparatively easy) 
and also in GWT client applications.


One use case for this API is a GWT application where the user uploads a 
file from their local filing system. So far, we've done this using the 
GWT FormPanel and FileUpload classes. AFAIKS from looking at the code, 
FileUpload uses a  element in an iframe. Experiments indicate that 
cross-site uploads actually perform the transfer of data to the server, 
but cookies and special headers are not sent, and the result comes out 
as null. This is exactly as would be expected from reading the Mozilla 
development docs.


As a simple test, I tried adding the Access-Control-Allow-Origin header, 
but, of course, the '' post doesn't generate the required OPTIONS 
header and as far as firefox 4 is concerned, this is not a CORS request.


It seems to me that to properly support POST and PUT with content types 
other than text/plain we need to properly implement an HTML5 form upload 
script which uses the new FormData object. Does anyone have any 
experience of AJAX support for CORS within GWT? If so, can they point me 
to/share with me the code that they used?


Thanks in advance

Alan

--
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: Error while updating/installing the Eclipse plugin

2011-06-21 Thread Piro
Are you installing over internet? You can try installation from packed
installation site.
http://code.google.com/intl/en-EN/eclipse/docs/install-from-zip.html

On 20. Jún, 20:00 h., ToddySM  wrote:
> I am hitting an error while updating/installing the plugin. Here the
> details:
>
> An error occurred while collecting items to be installed
> session context was:(profile=epp.package.jee,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> action=).
> Artifact not found: osgi.bundle,com.google.appengine.eclipse.core,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine
> Unable to read repository 
> athttp://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips
> Invalid argument: setsockopt
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.maven,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.platform,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found:
> osgi.bundle,com.google.gdt.eclipse.platform.e36,2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.platform.shared,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.suite,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> Artifact not found: osgi.bundle,com.google.gwt.eclipse.oophm,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> Artifact not found: osgi.bundle,com.google.appengine.eclipse.sdkbundle,
> 1.5.0.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.appengine
> Artifact not found:
> org.eclipse.update.feature,com.google.appengine.eclipse.sdkbundle.e36.featu 
> re,
> 1.5.0.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/features/com.google.appengine...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found:
> osgi.bundle,com.google.gdt.eclipse.gph.e36,2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph.hge,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph.subclipse,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.gph.subversive,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.login,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found: osgi.bundle,com.google.gdt.eclipse.managedapis,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
> Artifact not found:
> org.eclipse.update.feature,com.google.gdt.eclipse.suite.e36.feature,
> 2.3.1.r36v201105092302.http://dl.google.com/eclipse/plugin/3.6/features/com.google.gdt.eclip...
> Artifact not found: osgi.bundle,com.google.gwt.eclipse.sdkbundle,
> 2.3.0.r36v201104261928.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
> Artifact not found:
> org.eclipse.update.feature,com.google.gwt.eclipse.sdkbundle.e36.feature,
> 2.3.0.r36v201104261928.http://dl.google.com/eclipse/plugin/3.6/features/com.google.gwt.eclip...

-- 
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: How to call a rest web service from gwt mobile application

2011-06-21 Thread Juan Pablo Gardella
See http://restygwt.fusesource.org/

2011/6/21 syruss 

> Hi all,
>
> I have created  a mobile application using GWT.I have successfully
> created the UI part but i have to call a rest web service from GWT mob
> app.
>
> What i have tried is
> 1.I have called the rest web service using HttpUrlConnection in java
> its working fine as web app but if i deployed the app in mobile its
> not working.
> 2.I have tried to call the service using RequestBuilder but its giving
> 0 status code.
>
> Please suggest me to proceed that
>
> Thanks in advance
>
> --
> 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.
>
>

-- 
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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Nathan Klatt
Thanks for the idea - right now I'm strictly command-line (on a remote 
server) but I'll add this to my list of Reasons to Develop on My Local 
Machine with a GUI. :)

-- 
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/-/JJhcnb0gfEcJ.
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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Nathan Klatt
Makes perfect sense - thanks so much for the reply and the link!

-- 
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/-/96qmqceSNOQJ.
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: Streaming

2011-06-21 Thread Alain Ekambi
May i suggest :

http://www.gwt4air.appspot.com/#mx.controls.VideoDisplay

Best,

Alain

2011/6/20 Khadija FERJANI 

> Hello everybody
> Can someone help me with ideas or links about VideoStreaing over GWT
> please.
> Thanks
>
> --
> Cordialement, Khadija FERJANI
> Élève ingénieur à la faculté des sciences de Tunis.
>
> --
> 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.
>



-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

-- 
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: Eclipse hosted mode in Facebook iframe

2011-06-21 Thread mohamed salah
On Tue, Jun 21, 2011 at 4:12 PM, Peter  wrote:

> Hi,
>
> We're developing a Facebook app with GWT but can't get the hosted mode
> in Eclipse to work inside Facebook's iframe. Have anyone got this
> working? It would make it simpler to debug some issues.
>
> We've tried using the dev plugins for Firefox 4, Explorer 7 and Chrome
> 12. Firefox and Explorer only shows the last cached, GWT compiled
> page. Chrome says "Plugin failed to connect to Development Mode
> server...".
>
> We've tried adding "gwt.codesvr=127.0.0.1:9997" to both the iframe URL
> and to the top window URL.
>
> Anyone else who's made a Facebook app with GWT, please make a comment.
>
> --
> 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.
>
>


-- 
salam : peter
Resolved issus
this.frame.setUrl(GWT.getHostPageBaseURL() + "path");
thanks :mohammad salah
--

*Regard: Mohamed salah hasan
Mobile :+20106594094
tel :+2024460320*

-- 
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: Problem with GWT Service results

2011-06-21 Thread Daniel Mauricio Patino León
  RootPanel.get("mainContainer").add(new Label("Array lista 2:
"+lista.toString()));
   RootPanel.get().add(new Label(String.valueOf("Array lista 2:
"+lista.size(;
   for(int i = 0; i < lista.size(); i++){
   RootPanel.get().add(new Label("BOTON "+i));
   }

esto esta fuera del contexto de asíncrono

 public void onSuccess(ArrayList result) {
 }

ese contrato del AsyncCallback es el que se ejecuta cuando el servidor
regresa el resultado
si ahi tu result esta vacio entonces checa el lado del servidor.
no debes tener problema con lista.addAll(result);  // no addAll(0,x)
ya que esa lista se va a sobreescribir cada llamada al servidor


2011/6/21 Jose Luis Hernandez 

> Hello!
> I have a problem. I am calling to server side on GWT. The results of
> call is an ArrayList (result). Inside onSuccess method another
> ArrayList is wrapped with the result. However, if I want to use
> ArrayList lista outside of onSuccess method it contains 0 elements,
> but inside is like result ArrayList. How can I solve it? I have tried
> to use lista as class attribute, static attribute,... but it doesn't
> run.
> Thanks!
>
> public void addContainers() throws Exception {
>final ArrayList lista = new ArrayList();
>gwtService.obtainAttributesDevice(1, new
> AsyncCallback>(){
>@Override
>public void onFailure(Throwable caught) {
>System.out.println("ERROR");
>Window.alert(caught.getMessage());
>}
>@Override
>public void onSuccess(ArrayList result) {
>RootPanel.get("mainContainer").add(new
> Label("Array result:
> "+result.toString()));
>RootPanel.get().add(new
> Label(String.valueOf("Array result:
> "+result.size(;
>lista.addAll(0, result);
>RootPanel.get("mainContainer").add(new
> Label("Array lista 1:
> "+lista.toString()));
>RootPanel.get().add(new
> Label(String.valueOf("Array lista 1:
> "+lista.size(;
>}
>});
>RootPanel.get("mainContainer").add(new Label("Array lista 2:
> "+lista.toString()));
>RootPanel.get().add(new Label(String.valueOf("Array lista 2:
> "+lista.size(;
>for(int i = 0; i < lista.size(); i++){
>RootPanel.get().add(new Label("BOTON "+i));
>}
> }
>
> --
> 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.
>
>

-- 
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: Displaying entries of an CellList lazily?

2011-06-21 Thread Juan Pablo Gardella
Read this 
thread

2011/6/21 zeroconf 

> Dear GWT devs,
>
> I would like to display entries of a CellList in a lazy manner,
> similar to the Table Widgets of SWT. That is, the data is not
> populated before its row is displayed. Unfortunately, I didn't figured
> out how this can be done with the CellList or CellTable. The list
> contains about 1 entries that are loaded from the server. The
> exact number of entries is known. Because of the large number and to
> reduce the initial traffic and startup time, I want to display the
> terms lazily. I do not want to use a pager because this doesn't allow
> one to quickly jump around and also the example in which the list is
> updated when the scrollbar is at the bottom is not really useful here
> in the scenario. Is this possible with current GWT?
>
> Thanks!
> Sebastian
>
> --
> 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.
>
>

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



java.lang.ExceptionInInitializerError

2011-06-21 Thread hongjie86...@yahoo.com.cn
I am a begginner of GWT.I used gwt-2.3.0.When I debug the sample of
DynaTable under gwt-2.3.0, I encounted some question I can't solve as
the following. when I debug DynaTable ,Jetty print out the Exception
in the following:


java.lang.ExceptionInInitializerError
at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160)
at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
158)
at
com.google.gwt.user.server.rpc.HybridServiceServlet.processCall(HybridServiceServlet.java:
111)
at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
222)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
94)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:351)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.RuntimeException: Unable to get Unsafe instance
at
com.google.gwt.rpc.server.CommandSerializationUtil.(CommandSerializationUtil.java:
457)
... 36 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.sun.misc)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
at
java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:
1512)
at java.lang.ClassLoader$1.run(ClassLoader.java:331)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:329)
at
com.google.gwt.rpc.server.CommandSerializationUtil.(CommandSerializationUtil.java:
444)
... 36 more

I tried my best to search information through by google, but no
effective information,so I asked for help!

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

Re: GMail like selection combobox

2011-06-21 Thread Ben Munge
It's a pretty simple Widget. The checkbox itself is simply a standard
check box. The event would check all if clicked and unchecked all if
unchecked. The box around it is simply a div styled as a button with a
click event. The click event shows the dropdown which is simply
another collection of divs, each with their own click event to check
the checkboxes of the appropriate type. There's nothing overly unique
about the widget as a whole. Take a look at the Gmail html of the
option and it should be pretty easy to build.

On Jun 17, 4:09 pm, joel  wrote:
> In GMail there is a combobox that shows a checkbox, you can drop-down
> the box and get the selections such as "all"/"none"... If you click
> the checkbox it will checkmark all your emails...
>
> How can I make that widget with GWT?
>
> J

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



Eclipse hosted mode in Facebook iframe

2011-06-21 Thread Peter
Hi,

We're developing a Facebook app with GWT but can't get the hosted mode
in Eclipse to work inside Facebook's iframe. Have anyone got this
working? It would make it simpler to debug some issues.

We've tried using the dev plugins for Firefox 4, Explorer 7 and Chrome
12. Firefox and Explorer only shows the last cached, GWT compiled
page. Chrome says "Plugin failed to connect to Development Mode
server...".

We've tried adding "gwt.codesvr=127.0.0.1:9997" to both the iframe URL
and to the top window URL.

Anyone else who's made a Facebook app with GWT, please make a comment.

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



Displaying images from server folder

2011-06-21 Thread nikd
Hi,

I'm totally new to this area of programming, and I would like to know
if it is possible to display using GWT the contents of a (random - in
path) folder that resides in server and which are images.

Also, is it possible to add custom controls to the GWT that will
create and/or manipulate folders in server side? Are there any
restrictions.

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



nocache.js and DOM XSS

2011-06-21 Thread Glen
Hi,

I am supporting a couple of older GWT apps (version 1.4) and the IT
Security audit is red-flagging the nocache.js files of these apps with
DOM XSS vulnerabilities.
More specifically, the code highlighted looks to be the use of
document.location.href (i.e. the page URL).

My understanding is this file is the bootstrap script which determines
which javascript version of my app to load, based on the browser
version, OS version and things like that,  and then loads it.

Is this a genuine security risk which would allow someone to inject a
script into the dom by appending it to the page URL via a forged link,
for example?
Or is the audit just flagging code out of context?

And, if there is a risk, what can I do about it?  (Btw, I noticed that
the nocache.js generated by GWT 2.3 has similar code.)

Any help or guidance would be greatly appreciated.

Thanks,

Glen.

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



Streaming

2011-06-21 Thread Khadija FERJANI
Hello everybody
Can someone help me with ideas or links about VideoStreaing over GWT please.
Thanks

-- 
Cordialement, Khadija FERJANI
Élève ingénieur à la faculté des sciences de Tunis.

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



How to call a rest web service from gwt mobile application

2011-06-21 Thread syruss
Hi all,

I have created  a mobile application using GWT.I have successfully
created the UI part but i have to call a rest web service from GWT mob
app.

What i have tried is
1.I have called the rest web service using HttpUrlConnection in java
its working fine as web app but if i deployed the app in mobile its
not working.
2.I have tried to call the service using RequestBuilder but its giving
0 status code.

Please suggest me to proceed that

Thanks in advance

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



Compiler Deprecated warnings

2011-06-21 Thread Nuno R
Hi,

I'm using SDK 2.1.0 on a project and using incubator (gwt-
incubator-20101117-r1766.jar) for the FastTree widget.
When i compile the project, compiler throws deprecated warnings on
widgets that aren't used on the project code.
As all i can see, FastTree and FastTreeItem doesn't have any reference
to it also.

Why is compiler throwing this warnings? Does the GWT compiler validate
all classes inside de incubator jar?


com/google/gwt/widgetideas/client/impl/GlassPanelImpl.java
deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl’
deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl’

com/google/gwt/widgetideas/table/client/
FixedWidthGridBulkRenderer.java
 Line 122: deprecated class
com.google.gwt.widgetideas.table.client.overrides.HTMLTable’

com/google/gwt/widgetideas/table/client/GridBulkRenderer.java
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable’
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.Grid'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable'

com/google/gwt/widgetideas/table/client/TableBulkRenderer.java'
deprecated class
'com.google.gwt.widgetideas.table.client.overrides.HTMLTable’

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



Problem with GWT Service results

2011-06-21 Thread Jose Luis Hernandez
Hello!
I have a problem. I am calling to server side on GWT. The results of
call is an ArrayList (result). Inside onSuccess method another
ArrayList is wrapped with the result. However, if I want to use
ArrayList lista outside of onSuccess method it contains 0 elements,
but inside is like result ArrayList. How can I solve it? I have tried
to use lista as class attribute, static attribute,... but it doesn't
run.
Thanks!

public void addContainers() throws Exception {
final ArrayList lista = new ArrayList();
gwtService.obtainAttributesDevice(1, new
AsyncCallback>(){
@Override
public void onFailure(Throwable caught) {
System.out.println("ERROR");
Window.alert(caught.getMessage());
}
@Override
public void onSuccess(ArrayList result) {
RootPanel.get("mainContainer").add(new 
Label("Array result:
"+result.toString()));
RootPanel.get().add(new 
Label(String.valueOf("Array result:
"+result.size(;
lista.addAll(0, result);
RootPanel.get("mainContainer").add(new 
Label("Array lista 1:
"+lista.toString()));
RootPanel.get().add(new 
Label(String.valueOf("Array lista 1:
"+lista.size(;
}
});
RootPanel.get("mainContainer").add(new Label("Array lista 2:
"+lista.toString()));
RootPanel.get().add(new Label(String.valueOf("Array lista 2:
"+lista.size(;
for(int i = 0; i < lista.size(); i++){
RootPanel.get().add(new Label("BOTON "+i));
}
}

-- 
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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Ben Munge
In your GWT console double click the individual errors and you should
get a more detailed stack trace. It likely is something wrong with
your code rather then a missing import/resource. I've gotten a similar
error in the past and it's not overly intuitive.

On Jun 20, 1:59 pm, Nathan Klatt  wrote:
> I've inherited a GWT project and I'm receiving the following compiler error
> (more info below):
>
> [java] [ERROR] Line 51: No source code is available for type
> java.lang.NoSuchFieldError; did you forget to inherit a required module?
>
> It's complaining about a core part of the language here, right? Why is it
> looking for source code for it at all? Is it not finding one of the core jar
> files? Do I need to point it at something in the ant build.xml file?
>
> For testing purposes, I followed all the GWT 
> instructions,
> used webAppCreator to generate a "Hello, world." app, and that builds and
> runs just fine. I added a simple try...catch(NoSuchFieldError err) - and an
> import java.lang.NoSuchFieldError line - and it gave me the error.
>
> I'm new to this Java/GWT stuff so I suspect I'm missing something obvious -
> I'd love it if you could point out exactly what! :)
>
> Thanks.
>
> =
>
> $ ant build
> Buildfile: build.xml
>
> libs:
>
> javac:
>     [javac] Compiling 1 source file to
> /home/nklatt/gwt-2.3.0/MyWebApp/war/WEB-INF/classes
>
> gwtc:
>      [java] Compiling module com.mycompany.mywebapp.MyWebApp
>      [java]    Validating newly compiled units
>      [java]       [ERROR] Errors in
> 'file:/home/nklatt/gwt-2.3.0/MyWebApp/src/com/mycompany/mywebapp/client/MyW 
> ebApp.java'
>      [java]          [ERROR] Line 51: No source code is available for type
> java.lang.NoSuchFieldError; did you forget to inherit a required module?
>      [java]    Finding entry point classes
>      [java]       [ERROR] Unable to find type
> 'com.mycompany.mywebapp.client.MyWebApp'
>      [java]          [ERROR] Hint: Previous compiler errors may have made
> this type unavailable
>      [java]          [ERROR] Hint: 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
>
> BUILD FAILED

-- 
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: Dev Mode gwt.rpc file

2011-06-21 Thread Tim
>    I'm trying to write code to retrieve the serialization policy
> manually and ran into an issue.  My compiled GWT code outputs a
> gwt.rpc file indicating what can and cannot be serialized for my app
> but when I deploy dev mode that file is no where on my file system.
> Is this in some hidden location?  Is there a way for me to tell dev
> mode to generate this file if it's done in memory or something?
> Thanks

The gwt.rpc-File should be written in Dev Mode. Maybe you are
compiling the GWT-code to another location when starting the Dev Mode?
You can check the "Arguments"-tab of your Eclipse run configuration if
there is an argument "-war" pointing to another location.


  Tim

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



Displaying entries of an CellList lazily?

2011-06-21 Thread zeroconf
Dear GWT devs,

I would like to display entries of a CellList in a lazy manner,
similar to the Table Widgets of SWT. That is, the data is not
populated before its row is displayed. Unfortunately, I didn't figured
out how this can be done with the CellList or CellTable. The list
contains about 1 entries that are loaded from the server. The
exact number of entries is known. Because of the large number and to
reduce the initial traffic and startup time, I want to display the
terms lazily. I do not want to use a pager because this doesn't allow
one to quickly jump around and also the example in which the list is
updated when the scrollbar is at the bottom is not really useful here
in the scenario. Is this possible with current GWT?

Thanks!
Sebastian

-- 
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: Unable to load module entry point class

2011-06-21 Thread Ben Munge
Can you post your code for WelcomePage?

On Jun 20, 11:42 am, SCK  wrote:
> Hi,
>
> I'm new developer in GWT. I try somthing and when I want to Run the
> application, I get error "Failed to load Module".
> See error in below:
>
> [ERROR] Unable to load module entry point class
> com.Habou.client.WelcomePage (see associated exception for details)
> com.google.gwt.core.client.JavaScriptException: (TypeError):
> '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet.
>  number: -2146823281
>  description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un
> objet.
>         at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
>         at com.gwtext.client.widgets.Component.(Component.java:108)
>         at com.Habou.client.WelcomePage.createComponents(WelcomePage.java:31)
>         at com.Habou.client.WelcomePage.onModuleLoad(WelcomePage.java:24)
>
> Thank you for your Help

-- 
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: Re : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread Jens Teglhus Møller
Hi

I have trimmed down my tree to a minimal example root node with one
child both strings and here it works (should of course have done this
before my initial post :-(), i suspect it to be related to some
generics stuff that i'm clueless about. I will have to dig deeper into
this.

Sorry for the noise.

Best regards Jens

On Tue, Jun 21, 2011 at 3:18 PM, mkkm...@gmail.com  wrote:
> Can you post your getNodeInfo methdo code ?
>
> --
> 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/-/fhH98t5si6wJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



setting the default number of tree nodes to display in celltree

2011-06-21 Thread DevJodie
Hi all,

Is there a way to set the number of tree nodes to be displayed in
celltree? setDefaultNodeSize() works only for the child nodes. There
should be a way to set the default number of nodes to be displayed for
the tree nodes that are already open. Does anybody know a way to do
that?

Thanks

-- 
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: GWT meets Adobe Flex: gwt4air 2.1 is here !

2011-06-21 Thread Iqbal Yusuf
Well a BIG THANK YOU Alain.

I'm just enjoying your brilliant cooked up library. :)

That link I put up just for you to test so I haven't done anything yet.
Since all my video contents are up in the Amazon CloudFront cloud it was
vital that I could stream video using rtmp protocol using your tool. It is
working so now I will start my real development soon.

On Tue, Jun 21, 2011 at 1:06 AM, Alain Ekambi
wrote:

> Hello Yusuf,
> I m glad  you got it to work.
> I took a look at the link you provided. Looks pretty :)
> Maybe you want to change the backgroundColor to white ?
> You can do that by calling
> *Applicaton.get().setStyle("backgroundColor", "#FF");*
> *
> *
> in the initHandler
> *
> *
> Little complicated for now i have to admit. 2.2 will try to simplefy the
> API for thing like backgroundcolors.
>
> Thank you 4 using gwt4air.
>
> cheers,
>
> Alain
>
>
>
> 2011/6/21 Iqbal Yusuf 
>
>> Hey Alain:
>>
>> First of all I'm extremely sorry about the false call. Yes you are right
>> it was my FireFox browser issue. Everything is running as you said. Thanks
>> again for a great library. I've put up your video display module with video
>> source pointing to one of my Amazon Cloudfront RTMP video. It works.
>>
>> http://java.oviplus.com/dipu/
>>
>>
>>
>> On Mon, Jun 20, 2011 at 5:59 PM, Alain Ekambi <
>> jazzmatad...@googlemail.com> wrote:
>>
>>>
>>> I ve run the example in different browsers and different machines and
>>> still cant reproduce the error. It looks like there s problem with your
>>> local settings. But i cant figure out what.
>>> Do you have access to another machine  to test ? In the mean time i ll
>>> still investigate
>>>
>>>
>>> 2011/6/21 Iqbal Yusuf 
>>>
  Yes I can run the explorer from here
 http://www.gwt4air.appspot.com/



 On Mon, Jun 20, 2011 at 5:36 PM, Alain Ekambi <
 jazzmatad...@googlemail.com> wrote:

> Can you also please tell if you are able to run the explorer on your
> machine ?
> Best,
>
>
> Alain
>
>
> 2011/6/21 Alain Ekambi 
>
>> This is really wired.
>> I ve never seen this error before
>> Will have a look at it and get back to to you
>>
>>
>> 2011/6/20 Iqbal Yusuf 
>>
>>> Here is in detail what I've done so far.
>>>
>>> Step 0:
>>> Created a GWT application using Eclipse IDE with default settings.
>>>
>>> Step 1:
>>> Followed your instruction as stated here ==>
>>> http://code.google.com/p/gwt4air/wiki/FlexStart
>>>
>>> Step 2:
>>> Here is my entry point class;
>>>
>>> *package com.bdeshtv.gwtairtest.client;*
>>> *
>>> *
>>> *import com.ekambi.gwt.web.flex.client.core.framework.FLEX;*
>>> *import
>>> com.ekambi.gwt.web.flex.client.core.framework.FlexInitializationHandler;
>>> *
>>> *import com.google.gwt.core.client.EntryPoint;*
>>> *import com.google.gwt.core.client.GWT;*
>>> *
>>> *
>>> *public class Gwt4AirTest implements EntryPoint {*
>>> *
>>> *
>>> * *
>>> *private static final String SERVER_ERROR = "An error occurred while
>>> "*
>>> * *
>>> *+ "attempting to contact the server. Please check your network "*
>>> * *
>>> *+ "connection and try again.";*
>>> *
>>> *
>>> * *
>>> *private final GreetingServiceAsync greetingService = GWT*
>>> * *
>>> *.create(GreetingService.class);*
>>> * *
>>> *public void onModuleLoad() {*
>>> *
>>> *
>>> * *
>>> * FLEX.init(new FlexInitializationHandler() {*
>>> * *
>>> *   @Override*
>>> * *
>>> *   public void onInitialization() {*
>>> * *
>>> * *
>>> * *
>>> *  // your code here*
>>> *
>>> *
>>> * *
>>> *}});*
>>> * *
>>>
>>> }
>>> }
>>>
>>>
>>>
>>> Here is the error message again. I didn't have to use any controls to
>>> invoke the error message. Just adding init method will invoke it. I do 
>>> see
>>> some folders are getting accessed from the error message. I don't even 
>>> have
>>> this folder or E: drive on my laptop.
>>>
>>> An ActionScript error has occured:
>>> ReferenceError: Error #1056: Cannot create property allowCodeImport
>>> on flash.system.LoaderContext.
>>> at mx.core::CrossDomainRSLItem/completeCdRslLoad()*
>>> [E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem
>>> *.as:277]
>>>  at
>>> mx.core::CrossDomainRSLItem/itemCompleteHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\CrossDomainRSLItem.as:386]
>>> at flash.events::EventDispatcher/dispatchEventFunction()
>>>  at flash.events::EventDispatcher/dispatchEvent()
>>> at flash.net::URLLoader/onComplete()
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To post to this group, send em

Re: GWT 2.4 - What and when?

2011-06-21 Thread cri
What's new in GWT 2.4?

On Jun 20, 3:50 pm, Thomas Broyer  wrote:
> See also:https://twitter.com/#!/googledevtools/status/81811661354319872

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



UML (Ecore) integration Android

2011-06-21 Thread Dave K
I've made an Ecore diagram and some generated code. I want to use the
generated model in an Android project but I can't get it to work. I've
added the UML project to the build path and can call classes form it.
After compiling no error is given but when I use it in the emulator or
phone it crashes immediatly.

I hope someone can tell me what to do?

Thanks, Dave Kosterink

-- 
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 : Re: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread mkkm...@gmail.com
Can you post your getNodeInfo methdo code ?

-- 
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/-/fhH98t5si6wJ.
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 Project Structure Frontend/Backend

2011-06-21 Thread Juan Pablo Gardella
You can use gwt-dispatch if you use RPC.

2011/6/21 Elhanan Maayan 

> i'm unfamiliar with SOP and gwt policy files,
>
> i havn't tried much of rpc aside form the fact that each service should
> only object of input and object of output both extending RequesInput and
> RequestOutput interfaces (generic wise) to avoid break method signature
> incase of changes .
>
> i then moved on to request factory and editor framework, this is where i'm
> having problems getting a grasp to it.
>
> btw maybe you should check out my feature request for gwt's plugin handling
> of gwt.xml module files.
>
>
> On Tue, Jun 21, 2011 at 3:51 PM, Ramon Salla  wrote:
>
>> Yes. We are already doing this.
>> We started using RequestBuilder and Json (Des)Serialization but we ended
>> up using plain RPC services as development is so much easier. We are
>> wrapping some of those RPC services with REST using jersey.
>> We have two dependent projects one with server code and the other with
>> shared and client code.
>> Be careful with this because of SOP and GWT policyFiles! they are tricky.
>>
>> Ramon Salla
>>
>> --
>> 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/-/GYcElCLyMDgJ.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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: GWT Project Structure Frontend/Backend

2011-06-21 Thread Elhanan Maayan
i'm unfamiliar with SOP and gwt policy files,

i havn't tried much of rpc aside form the fact that each service should only
object of input and object of output both extending RequesInput and
RequestOutput interfaces (generic wise) to avoid break method signature
incase of changes .

i then moved on to request factory and editor framework, this is where i'm
having problems getting a grasp to it.

btw maybe you should check out my feature request for gwt's plugin handling
of gwt.xml module files.

On Tue, Jun 21, 2011 at 3:51 PM, Ramon Salla  wrote:

> Yes. We are already doing this.
> We started using RequestBuilder and Json (Des)Serialization but we ended up
> using plain RPC services as development is so much easier. We are wrapping
> some of those RPC services with REST using jersey.
> We have two dependent projects one with server code and the other with
> shared and client code.
> Be careful with this because of SOP and GWT policyFiles! they are tricky.
>
> Ramon Salla
>
> --
> 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/-/GYcElCLyMDgJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: GWT Project Structure Frontend/Backend

2011-06-21 Thread Ramon Salla
Yes. We are already doing this.
We started using RequestBuilder and Json (Des)Serialization but we ended up 
using plain RPC services as development is so much easier. We are wrapping 
some of those RPC services with REST using jersey. 
We have two dependent projects one with server code and the other with 
shared and client code.
Be careful with this because of SOP and GWT policyFiles! they are tricky.

Ramon Salla

-- 
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/-/GYcElCLyMDgJ.
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 custom event differently to avoid boiler plate coding?

2011-06-21 Thread Elhanan
thanks, i was thinking about maybe starting a blog called "the 
no-boilerplate series" to post shortcuts such as these i come with, but i 
thought surely folks have more experience then me, in these things..

-- 
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/-/VaLQWBYTYooJ.
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 custom event differently to avoid boiler plate coding?

2011-06-21 Thread Ramon Salla
+1 to this!

-- 
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/-/SAqQBT-i0iAJ.
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: EasyGWT 1.1.0 is finally here!

2011-06-21 Thread J.Ganesan
Thank you. In another two days, we will put up a demo running in GAE .
It will be easier for you to get familiarized with API.

J.Ganesan
www.DataStoreGwt.com


On Jun 21, 6:02 am, Alfredo Quiroga-Villamil 
wrote:
> I just checked outhttp://www.datastoregwt.com/. I  could not agree more
> with all the statements you have on the page; didn't know this project
> existed. I currently use GiLead. I will def. check it out and give it a try.
> It makes a lot of sense.
>
> Thanks.
>
> Alfredo
>
> On Mon, Jun 20, 2011 at 8:54 PM, J.Ganesan wrote:
>
>
>
>
>
>
>
> > Yes. This is very handy for enterprise applications. Takes away the
> > drudgery. Nice work.
>
> > J.Ganesan
> >www.DataStoreGwt.com
>
> > On Jun 20, 7:40 pm, Alfredo Quiroga-Villamil 
> > wrote:
> > > Hello Group:
>
> > > We are really happy to announce the release of EasyGWT 1.1.0!
>
> > > EasyGWT 
>
> > > *Why EasyGWT?*
>
> > > If you have ever worked on multiple projects for large enterprise
> > > applications you've probably found yourself writing and wiring a view
> > > usually containing the commonly used HTML column layout. You typically
> > end
> > > up having the need for a North Panel that contains some actions. A South
> > > Panel is usually also employed to display hyper links containing things
> > such
> > > as "Contact Us", "Report Issues", etc. Then there is the highly used
> > > Navigation Panel which contains hyperlinks that upon being clicked on
> > > display a view in a Center Panel.
>
> > > The process of creating this boilerplate code can at times feel
> > repetitive,
> > > time consuming and if you work for a large company then your department
> > > might end up having a mini-framework and a different organization using
> > > something completely different. Maintaining such environments quickly
> > become
> > > cumbersome, duplication starts to trickle in and soon you have a problem
> > > that gets exponentially bigger as the organizations and company grows.
>
> > > The need to have a common platform upon which to build enterprise
> > > applications then becomes apparent and the benefits of such approach are
> > > huge. To name a few:
>
> > >    - Applications built with a common platform provide a common look and
> > >    feel for both internal as well as external customers.
> > >    - Patches and new features are instantly available to all developers
> > >    across the company.
> > >    - The Go To Market time for new applications decreases drastically
> > while
> > >    the stability of the application itself is greater since it uses a
> > well
> > >    tested and used through out framework.
>
> > > *What does the module provide:*
>
> > >    - The commonly used column layout that can be seen in most web
> > >    applications today.
>
> > >    1. North Panel with Task Bar.
> > >    2. East Panel.
> > >    3. Navigation Panel.
> > >    4. South Panel.
> > >    5. Center Panel:
>
> > >      - Views are added to this panel.
>
> > >      - All views have instant access to:
>
> > >    @Override
>
> > >    public void onRender() {}
>
> > >    @Override
>
> > >    public void prepareToHideView() {}
>
> > >    @Override
>
> > >    public void prepareToShowView() {}
>
> > >    - An implementation of the GWT Event Bus hence allowing the user to
> > fire
> > >    and handle events through out the application in a super easy way.
>
> > >    - Integrated with GXT offering a huge selection of rich widgets.
>
> > >    - Four themes out of the box since the framework exposes the four CSS
> > >    styles provided by GXT.
>
> > >    - Login Dialog implementation with Signup and Forgot Password buttons
> > >    already included.
>
> > >    - The framework loads the left and right banner images as well as the
> > >    login dialog image. All the developer needs to do is to simply create
> > them
> > >    and put them under the easyGWT resources in the war directory.
>
> > >    - More importantly the framework allows the developer to concentrate
> > on
> > >    simply creating a List of Navigation Parents with their respective
> > children
> > >    containing each a view which is the part where the Software Engineer
> > needs
> > >    to really invest time and effort. Simply work on the views needed and
> > all
> > >    the other wiring is provided by the framework.
>
> > --
> > 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.

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

Re: Incompatibility between RequestFactory and JPA collections with orphanRemoval=true

2011-06-21 Thread Thomas Broyer
See 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java

Actually, passing a proxy to a method implicitly edit()s it (see retainArg, 
called from addInvocation, called by the generated implementation of your 
RequestContext methods), that's why you don't see a difference.
The diff is then done in in makeOperationMessage, called by 
makePayloadOperations for each proxy in editedProxies (either create()d, 
edit()d, or used as an invocatino argument).
This is almost the same code as in isChanged, which seems to confirm that 
what you're seeing is due 
to http://code.google.com/p/google-web-toolkit/issues/detail?id=5952

-- 
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/-/6kAODGyxLK8J.
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 plugin with eclipse indigo

2011-06-21 Thread Lwando Mjila
Oh ok, thanks, what about smartgwt?

On Jun 20, 2:44 pm, Thomas Broyer  wrote:
> Seehttps://twitter.com/#!/googledevtools/status/81811661354319872

-- 
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: Pluggable modules

2011-06-21 Thread manstis
Hi,

Thanks for your invaluable help.

I'm mashing together a simple example for me to learn from that has a
single statically defined plug-in.

I am growing to believe I need to deploy each plug-in as a separate
WAR on a web-server. Is this true, or have I missed something?

I am also using gwt-exporter to make the JSNI messaging mechanism;
i.e. I just write an "Exportable" class and use the resulting JS API
from my plugins. I am hoping to use gwt-api-interop to remove the need
to use the JS API.

I assume the JS "bridge" between GWT applications handles the
messaging between them (i.e. plugins register callbacks to handle
messages sent from the "host"?)

If I understand correctly, adding additional script tags to my
"loader" page and having each plug-in as a separate WAR I avoid the
need to inherit in my gwt.xml file?

An example of your use of JavaScriptObject in your messaging sub-
system would be interesting

Thanks again.

Mike

On Jun 17, 12:20 pm, lemaiol  wrote:
> I followed the basic ideas of application's linking and loading:
>  - The GWT host page is the loader. So you have to know how to
> discover the modules to be loaded.
>    + KIS: have a class on the server side that know modules' ids,
> names and URL's and generate the GWT host page using a JSP.
>    + Best practice: map the default GWT page's name to the JSP within
> your web.xml. From outside nobody will know that the page is not
> static.
>    + The resulting page has as many script tags to load the
> *.nocache.js files as modules should be loaded.
>  - Once that all the applications (independent WARs) have been loaded,
> they all live in the same application space: the browser window. But
> they have each an own GWT application space. The JS engine is common
> to all and native JS (not generated from GWT) is more pervasive and
> does not get affected by GWT compilation + linking.
>  - Implement a communication mechanism based on JS (ex: message
> dispatch facility)
>    + Create an structure in the GWT page where the plugins can
> register themselves. An JSON object will do the trick: "var pluggins =
> {{name: 'plugin1', callback: ''}, {name: 'plugin1', callback:
> ''}, ...};" Because it is embedded in the page, it is already there
> (static) when all applications are loaded. No application is assured
> to be loaded and initialized first!
>    + Create GWT wrapper classes inheriting from "JavaScriptObject" to
> access this structure (ex: "register" / "attach", "sendMessage",
> "receive"). Define communication and plugin interfaces and pack all in
> a jar with sources and .gwt.xml = GWT module.
>    + Use JSNI for the methods implementation and calling back into
> GWT. Use these classes in each plugin application. The GWT compiler
> with compile and link the GWT code but the JSNI code remains as it is.
>  - Because at some time, the individual plugins have to be shown in
> the web page, create an static HTML structure with explicit HTML IDs.
> One or more of them will be populated by the plugins once at a time.
> It is important that it is static because, once again, it belongs to
> the broswer application space (window) and not to a concrete GWT
> application space. Said in another way, none of you applications
> should generate the DOM elements for other plugins neither from code
> nor with UiBinder.
>  - One plugin is the main plugin and he is the first to show up + he
> normally dispatches to other plugins or offers the dispatching
> mechanism.
>  - Your application needs a common message model for the messages.
> Should inherit from JavaScriptObject and be created with the class
> factory methods and the populated.
>
> Which snippets do you want?
>
> Berto
>
> On Jun 16, 2:08 am, kendeng9898  wrote:
>
> > Hi Berto,
> >   Waiting for more details. give some simple sample code is
> > appreciate.
>
> >   Since the compilation speed & easy development, I've changed to use
> > pyjamas project, a python verion of GWT. But I still interesting in
> > how to do the plugin. The hardest part is how to solved the different
> > compilation and linked.
>
> > Thanks,
> > Ken
>
>

-- 
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: Incompatibility between RequestFactory and JPA collections with orphanRemoval=true

2011-06-21 Thread Ryan McFall
Thanks for the help interpreting the JSON.  After I posted the
original message I noted that it looked like only objects referenced
in collections were being updated.

The interesting part of your description of how the diffs are built is
that I took the call to RequestContext#edit on the proxy out, to see
what would happen if I tried to save the original proxy object.  The
JSON string I posted actually came from doing that, so something is
definitely strange.  If I do execute the edit method, the generated
JSON is the same.

Do you know offhand in which class the diff is built, so that I can
look to see if the bug that you pointed out is indeed the source of
the problem?

Thanks,
Ryan


On Jun 20, 4:45 pm, Thomas Broyer  wrote:
> On Monday, June 20, 2011 9:08:31 PM UTC+2, Ryan McFall wrote:
>
> > Implementing the setSurveyPermissions method as you suggested seems to
> > have helped a bit.  However, I'm still a bit confused as to what the
> > client-side behavior I'm seeing should be.
>
> > As I mentioned, I retrieve and then send an object, and don't make any
> > modifications to the object on the client.  But when I look at the
> > operations in SimpleRequestProcessor.processOperationMessages, I see
> > the following as the result of the call to req.getOperations.
> > Basically, this looks like every object referenced by the Survey proxy
> > object is being sent over the network and some of them are marked as
> > needing update.  Am I right in that interpretation?
>
> Actually, only the "stable IDs" of the referenced objects are sent (T=type,
> S=server ID, they are IdMessage objects; top level objects –the ones with a
> "P" property and/or "UPDATE" operation– are OperationMessage).
> I interpret this as meaning it thinks the collection has changed, which
> could very well be a manifestation of the issue I already linked to.
>
> If so, I'm not sure why this is happening.  Does the client keep track
>
> > of method calls to determine what needs to be updated, or something
> > else?
>
> When you RequestContext#edit() a proxy, a mutable copy is created; and when
> you fire(), the diff is built by comparing with the immutable version (using
> AutoBeanUtils.diff that's mentionned in the issue report).
> I'm not sure what the UPDATE means here (I don't remember).

-- 
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: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread Jens Teglhus Møller
Hi

I do have an onSelectionChange() handler but it never gets called when
the root node is clicked. When the root node is clicked i see a visual
change (small change in the background color), but not the real
selection (which defaults to a blue background).

Its only the root element that gives me trouble, when clicking
somewhere on a node below the root it works as expected and my
onSelectionChange() method is called.

And when i talk about a node being clicked, i mean clicking on the
node text (not the expand/collapse images).

Best regards Jens

On Tue, Jun 21, 2011 at 9:51 AM, mkkm...@gmail.com  wrote:
> Yes, it's the end of the code:
>
>  // defining
>   private SingleSelectionModel selectionModel =
>     new SingleSelectionModel();
>
>   // inside TreeViewModel ctor (or in a better place)
>   selectionModel.addSelectionChangeHandler(new
> SelectionChangeEvent.Handler() {
>
>     public void onSelectionChange(SelectionChangeEvent event) {
>   // fire rpc, a place change or something else
>   // event.getSelectedObject() contains the selected element
>     }
>   });
>
>   // return the DefaultNodeInfo with info about the selection strategy
>   public  NodeInfo getNodeInfo(T value) {
>
>     // do something with the value and return the right DefaultNodeInfo
>     if(value instanceof MyType1) {
>   return new DefaultNodeInfo(
>   new SectionDataProvider(),
>   new MyCustomCellOrADefaultOne(),
>   selectionModel,
>   null);
>     }
>     else if ...
>   }
>
> Michaël
>
> --
> 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/-/K5UlSlv5YaoJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Aw: Re: Strange History Behaviour

2011-06-21 Thread Sven
This showed me the root of the problem ;)

import com.google.web.bindery.event.shared.UmbrellaException;
...

...
private void checkAndPrintException(Throwable ex) {
if(ex instanceof UmbrellaException){
LOG.debug("UMBRELLA EXCEPTION FOUND");
UmbrellaException umbEx = (UmbrellaException)ex;
for(Throwable t: umbEx.getCauses()){
if(t != null){
checkAndPrintException(t);
LOG.debug("Throwable caught: " + t.getMessage());
}
}
}
}

-- 
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/-/aOKYKcpBLvYJ.
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: When will get Multiple-File-Input() supported?

2011-06-21 Thread Thomas Broyer


On Tuesday, June 21, 2011 9:11:28 AM UTC+2, Alex Luya wrote:
>
> How to get file list? can you post a code split to show how to do it?
> --
> public static native void getFiles() /*-{
> var input =th...@com.domain.client.clx::fileUpload;
>

'static' + 'this' ?!
 

>
>for (var i = 0; i < input.files.length; i++) {
>   $wnd.alert(input.files[i].name);
>}
> return 
> }-*/;
>

Yes, that's the idea (we made a JavaScriptObject for the File JS object, and 
a helper method to get a JsErray out of an InputElement)
 

> --
> Above code will report error:
> --
> Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError):
> Cannot read property 'files' of undefined  
> --
>
>
>
Also, is your fileUpload field an InputElement or a FileUplaod widget? if a 
FileUpload widget, you'll have to call 
@.com.google.gwt.user.client.ui.Widget::getElement() on it first.

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



Aw: Re: Strange History Behaviour

2011-06-21 Thread Sven
I solved it You won't believe it... My View is currently using a third 
party calendar which needs to be implemented via native js. Deep in my 
UmbrellaExceptions I found something like $wnd.Calendar is null or wrong 
type. However this was firing an event which got recognized by GWT an 
encapsulated in about 10 UmbrellaExceptions... I also didn't find it because 
I casted to UmbrellaException from gwt shared package but it was from 
bindery package shared ;)

Crazy stuff but thx for your help Thomas.

-- 
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/-/yV0S8GNl9KwJ.
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: Aw: Re: Strange History Behaviour

2011-06-21 Thread Thomas Broyer
try {
  super.fireEvent(event);
} catch (UmbrellaException ue) {
  for (Throwable t : ue.getCauses()) {
// here, use your code that prints the stack-trace; and if it's not 
enough, loop over the getCause() hierarchy
  }
}

An UncaughtExceptionHandler is a "global catch": basically, your GWT code is 
run in a big try/catch, so any exception you don't catch will go to your 
UncaughtExceptionHandler (if you set one; or they'll generate "JavaScript 
errors" in your browser console)

-- 
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/-/Dzqlz4vwqSoJ.
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: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Paul Robinson



On 20/06/11 21:21, Hilco Wijbenga wrote:

On 20 June 2011 11:59, Nathan Klatt  wrote:

I've inherited a GWT project and I'm receiving the following compiler error
(more info below):

[java] [ERROR] Line 51: No source code is available for type
java.lang.NoSuchFieldError; did you forget to inherit a required module?

It's complaining about a core part of the language here, right? Why is it
looking for source code for it at all? Is it not finding one of the core jar
files? Do I need to point it at something in the ant build.xml file?

GWT doesn't support *everything* available in the Java core libraries.

See http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html

Note in particular that reflection is not supported for code translated to 
javascript (ie everything in the client).

Paul

--
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: Re : Re: CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-21 Thread mkkm...@gmail.com
Yes, it's the end of the code:

 // defining
  *private SingleSelectionModel selectionModel =**
new SingleSelectionModel();*

  // inside TreeViewModel ctor (or in a better place)
 * selectionModel.addSelectionChangeHandler(new 
SelectionChangeEvent.Handler() {**

public void onSelectionChange(SelectionChangeEvent event) {
  // fire rpc, a place change or something else
**  // event.getSelectedObject() contain**s the selected element
}
  });*

  // return the DefaultNodeInfo with info about the selection strategy
  public  NodeInfo getNodeInfo(T value) {

// do something with the value and return the right DefaultNodeInfo
if(value instanceof MyType1) {
  return new DefaultNodeInfo(
  new SectionDataProvider(),
  new MyCustomCellOrADefaultOne(),
  *selectionModel*,
  null);
}
else if ...
  }


Michaël

-- 
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/-/K5UlSlv5YaoJ.
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 Context2d - drawing text - fontsize

2011-06-21 Thread ghost23
Works! :o)
Thanks

On 20 Jun., 17:58, Thomas Broyer  wrote:
> Seehttp://diveintohtml5.org/canvas.html#text
> Which translates in GWT into: context2d.setFont("bold 12px sans-serif");

-- 
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: Highlight a selected map marker based on a custom icon.

2011-06-21 Thread Thomas Lefort
Have you tried implementing your own marker, ie extending overlay?
mind you there are a few things you'll miss out on, eg drag for
instance but it's pretty straightforward and you can add the dom
elements you like, and change their style.


On Jun 20, 4:00 pm, MeiAestro  wrote:
> Still totally clueless. Anybody ANY idea?
>
> On Jun 16, 10:11 am, MeiAestro  wrote:
>
>
>
>
>
>
>
> > It's my first posting here, so hello to everybody!
>
> > My Question: In GWT 2.3.0 I use custom icons in a map as markers. I
> > would love to change the icon which is currently selected. This Icon
> > should be similar to the original one (i.e. somehow highlighted). I
> > thought about different ideas which all are somehow difficult for me
> > to realize:
>
> > 1. As the icons are (and have to be) stored in a blobdatastore I was
> > thinking about painting a second Icon and storing it in the same
> > blobdatastore. Unfortunately I did not find a way to draw in an
> > existing blobimage (on server side).
> > 2. Changing the style of the icon (i.e. adding a colored border).
> > Unfortunately neither the icon nor the marker have a "setstyle"
> > method. Is the uibinder a possiblel way to do that? I see a problem in
> > changing the style of only the selected marker/icon.
> > 3. Repainting the icon on client side. As far as I could find out this
> > won't be possible for all browsers.
>
> > Do you have any hints for me?

-- 
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 with Collections of ValueProxy in a ValueProxy

2011-06-21 Thread Alexandre Ardhuin
it looks like
http://code.google.com/p/google-web-toolkit/issues/detail?id=6354

Alexandre.


2011/6/20 Alexandre Ardhuin 

> Hi all,
>
> I face a very strange behavior on requestFactory with GWT-2.3.
> Sometimes, java.util.Set collections are not deserialized as expected
> (java.util.List works well). Some elements are missing.
>
> Here's the code that illustrates the problem :
>
> // --
> // --- client side code
> // --
>
> @Service(value = MyService.class, locator = MyLocator.class)
> public interface MyRequest extends RequestContext {
> Request getMyObject(int count);
> }
>
> @ProxyFor(value = MyObject.class)
> public interface MyObjectProxy extends ValueProxy {
> int getExpectedSize();
> Set getStringContainers();
> }
>
> @ProxyFor(value = StringContainer.class)
> public interface StringContainerProxy extends ValueProxy {
> String getString();
> }
>
> // --
> //  server side code
> // --
>
> public class MyLocator implements ServiceLocator {
> @Override
> public Object getInstance(final Class clazz) { return new
> MyService(); }
> }
>
> public class MyService {
> public MyObject getMyObject(int count) {
> final Set stringContainers = new
> HashSet();
> for (int i = 0; i < count; i++) {
> stringContainers.add(new StringContainer(String.valueOf(i)));
> }
> return new MyObject(stringContainers.size(), stringContainers);
> }
> }
>
> public class MyObject {
> private final int expectedSize;
> private final Set stringContainers;
>
> public MyObject(int expectedSize, Set
> stringContainers) { this.expectedSize = expectedSize; this.stringContainers
> = stringContainers; }
> public int getExpectedSize() { return expectedSize; }
> public Set getStringContainers() { return
> stringContainers; }
> }
>
> public class StringContainer {
> private final String string;
>
> public StringContainer(String string) { this.string = string; }
> public String getString() { return string; }
> }
>
>
> // --
> //  entry point that show different sizes
> // --
>
> public class MainPage implements EntryPoint {
> public void onModuleLoad()
> {
> final ClientFactory clientFactory =
> GWT.create(ClientFactory.class);
> clientFactory.init();
> call(clientFactory, 0);
> }
>
> private void call(final ClientFactory clientFactory, final int i)
> {
> if (i > 100) {
> return;
> }
>
> clientFactory.getRequestFactory().myRequest().getMyObject(i).fire(new
> Receiver() {
> @Override
> public void onSuccess(MyObjectProxy response) {
> RootPanel.get().add(new HTML(response.getExpectedSize() + "
> " + response.getStringContainers().size()));
> call(clientFactory, i + 1);
> }
> });
> }
> }
>
> Here's the results for the 30 first requests (left is the expected size,
> right is the real size) :
> 0 0
> 1 1
> 2 2
> 3 3
> 4 4
> 5 5
> 6 6
> 7 7
> 8 8
> 9 9
> 10 10
> 11 11
> 12 4  // problems start here...
> 13 4
> 14 4
> 15 4
> 16 4
> 17 4
> 18 4
> 19 4
> 20 4
> 21 4
> 22 4
> 23 9
> 24 10
> 25 11
> 26 12
> 27 13
> 28 14
> 29 14
> 30 14
>
>
> Using java.util.List instead of java.util.Set resolves the problem.
>
> Did i miss something ?
>
> Alexandre.
>
>

-- 
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: When will get Multiple-File-Input() supported?

2011-06-21 Thread Alex Luya
How to get file list? can you post a code split to show how to do it?
--
public static native void getFiles() /*-{
var input =th...@com.domain.client.clx::fileUpload;
   
   for (var i = 0; i < input.files.length; i++) {
  $wnd.alert(input.files[i].name);
   }
return 
}-*/;
--
Above code will report error:
--
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError):
Cannot read property 'files' of undefined  
--

On Wed, 2011-06-15 at 09:13 -0700, Thomas Broyer wrote:
> JSNI and JavaScriptObject "overlay types" FTW! 
> 
> -- 
> 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/-/lNk39MwjwWgJ.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit
> +unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.


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