Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Alain Ekambi
One solution could be to create a GWT widget based on a DIV element and
call the JSNI in the onLoad method.
I did something similar with a Google Map widget.

Have a look at


https://github.com/emitrom/Pilot/blob/master/Pilot/src/com/emitrom/pilot/maps/client/GMapWidget.java




2014-02-26 4:58 GMT+01:00 Magnus :

> Hi,
>
> including a script tag in the module xml did not work for me:
>
> The Cross-Site-Iframe linker does not support 

Re: GWT compiling tools: is there any way to get the graph of inherited modules? Even a simple flat list would be fine :-)

2014-02-25 Thread Davide Cavestro
I've seen that SmartGWT provided the *NoScript* flavour for their modules,
i.e. instead of inheriting from *SmartGwt* you inherit from
*SmartGwtNoScript.*
I've seen also adding

to your .gwt.xml file works (as suggested by the compiler).


2014-02-26 3:20 GMT+01:00 Srini v :

> We have an issue similar to it where we want to move to xsi frame linker
> but what if you have third party dependent modules which have script tag in
> their module XML. Did anyone face the same issue and solved it?
>
>
> On Tuesday, 25 February 2014, Jens  wrote:
>
>> Not officially I think, but in GWT's code review tool there is a patch
>> lingering around for a long time:
>> https://gwt-review.googlesource.com/#/c/1210/
>>
>> Not sure if it needs a little love again to work with GWT 2.6 but its
>> probably a good starting point.
>>
>> -- J.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>>
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/QLdcqcXXMtk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Magnus
Hi,

including a script tag in the module xml did not work for me:

The Cross-Site-Iframe linker does not support 

Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Magnus
Ok, this must be the method with ClientBundle. I missed this.

It seems that you can also simply include it in the module xml:
https://groups.google.com/forum/#!topic/google-web-toolkit/_7NnUCR4vD0

Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT compiling tools: is there any way to get the graph of inherited modules? Even a simple flat list would be fine :-)

2014-02-25 Thread Srini v
We have an issue similar to it where we want to move to xsi frame linker
but what if you have third party dependent modules which have script tag in
their module XML. Did anyone face the same issue and solved it?

On Tuesday, 25 February 2014, Jens  wrote:

> Not officially I think, but in GWT's code review tool there is a patch
> lingering around for a long time:
> https://gwt-review.googlesource.com/#/c/1210/
>
> Not sure if it needs a little love again to work with GWT 2.6 but its
> probably a good starting point.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> To post to this group, send email to 
> google-web-toolkit@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Development Mode will not be supported in Firefox 27+

2014-02-25 Thread Brian Slesinsky
I'm not sure there's much to discuss. Firefox 27 is already released, and
we do want to move off of Dev Mode sooner or later for other reasons. I
don't feel comfortable asking them to bring back an API that they never
officially supported anyway and it seems unlikely that they'd agree.
Running Firefox 24 seems like an acceptable workaround.

Regarding the Firefox-specific debugger API's, I'm not sure it's worth even
figuring out if it's feasible or not since our plan is to move to Super Dev
Mode. But if someone wants to take a look then go ahead.

- Brian



On Tue, Feb 25, 2014 at 11:47 AM, Benjamin Bitdiddle <
benbitdiddl...@gmail.com> wrote:

> Would anyone like to follow up the last comment on the bugzilla thread,
> where a FF dev claims that:
>
> Most C++ JSAPI usage in extensions can in fact be replaced by a combination 
> of privileged script and the debugger APIs
>>
>>
> I assume we wouldn't be seeing this thread if that was really true as you
> guys would have just updated the plugin.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/QSEjbhhHB4g/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Development Mode will not be supported in Firefox 27+

2014-02-25 Thread Benjamin Bitdiddle
Would anyone like to follow up the last comment on the bugzilla thread, 
where a FF dev claims that:

Most C++ JSAPI usage in extensions can in fact be replaced by a combination of 
privileged script and the debugger APIs
>
>
I assume we wouldn't be seeing this thread if that was really true as you 
guys would have just updated the plugin.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Jens
I have already said how to load it into the browser, so not sure what you 
mean. If you mean code completion in your IDE I have no idea how well 
Eclipse handles it. In IntelliJ it works pretty well.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Server-side message exchange

2014-02-25 Thread Aldo Neto
Iteresting.

Do you know if it works with ActiveMQ or RabbitMQ for sending/receiving
messages to Android devices?

Thanks


On Tue, Feb 25, 2014 at 9:08 AM, Alain Ekambi wrote:

> http://erraiframework.org/  ?
>
>
> 2014-02-25 12:25 GMT+01:00 Aldo Neto :
>
>> Hi,
>>
>> I'm trying to create a mechanism to exchange messages using a separate
>> broker. In other words, I have a message broker and I need to let my server
>> know when a message is arrived. What is the best way to do that?
>>
>> I'd also need to send messages through that broker too, so this should be
>> a two-way message exchange
>>
>> Thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Magnus
Thanks, it covers most of the stuff relating to embed JS within Java code...

But one important thing seems to be missing at the first sight:
How to include a whole JS library into the GWT project and access its 
methods...

Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Jens
Should cover the most: 
http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html

Personally I use ClientBundle + (External)TextResource + ScriptInjector to 
inject the JS code into the browser. 

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread mark . erikson
There's two general approaches:

1) Write large JSNI methods that do all the interaction in Javascript
2) Use GWT's JavaScriptObject, subclass the library's objects, and write 
small JSNI methods that wrap individual methods of the JS object.

There's supposed to be better JS interop coming in GWT 3.0, but that's a 
ways off.

There's a number of GWT/JS wrappers out there that you could use as 
examples (Google Maps and Google Earth come to mind).

On Tuesday, February 25, 2014 11:45:10 AM UTC-5, Magnus wrote:
>
> Yes, it's cool! :-)
>
> But what about my question? :-)
>
> How to embed JS within GWT?
>
> Thanks
> Magnus
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Magnus
Yes, it's cool! :-)

But what about my question? :-)

How to embed JS within GWT?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Different border for different cells

2014-02-25 Thread Davide Micheletti
cell1{
   border: 5px solid;
}

why it isn't working?

Thanks


On Tue, Feb 25, 2014 at 3:38 PM, Davide Micheletti  wrote:

> Like title i would like to have different border for different cells in
> the same table.. I tried it but it doesn't work
>
> .table, .table td {
>border: thin groove;
> }
>
> .cell1 {
>
> }
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Different border for different cells

2014-02-25 Thread Davide Micheletti
Like title i would like to have different border for different cells in the
same table.. I tried it but it doesn't work

.table, .table td {
   border: thin groove;
}

.cell1 {

}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT compiling tools: is there any way to get the graph of inherited modules? Even a simple flat list would be fine :-)

2014-02-25 Thread Jens
Not officially I think, but in GWT's code review tool there is a patch 
lingering around for a long time: 
https://gwt-review.googlesource.com/#/c/1210/

Not sure if it needs a little love again to work with GWT 2.6 but its 
probably a good starting point.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT compiling tools: is there any way to get the graph of inherited modules? Even a simple flat list would be fine :-)

2014-02-25 Thread Thomas Broyer

On Tuesday, February 25, 2014 3:25:47 PM UTC+1, Davide Cavestro wrote:
>
> Hi all,
> I am in the process of switching linker to Cross-Site-Iframe in order to 
> obtain the compatibility with superdevmode, so I'd like to locate and 
> remove the script tags from the modules I'm inheriting from (since this 
> linker doesn't support them).
> Now I'm just  wondering if there's an easy way to obtain from the gwt 
> compiler or other tools the *graph of inherited modules* (possibly 
> transitive).
> It would be really useful in order to avoid having to manually read every 
> inherited module to find additional inherited modules and so on.
> Also, having a clear graph of this kind of dependencies would be a good 
> check tool especially when you depend on 3rd party modules.
>

I once wrote a tiny tool that does just that: 
https://gwt-review.googlesource.com/1210
Or you could just compile with -logLevel DEBUG and grep for "Loading 
inherited module" 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


GWT compiling tools: is there any way to get the graph of inherited modules? Even a simple flat list would be fine :-)

2014-02-25 Thread Davide Cavestro
Hi all,
I am in the process of switching linker to Cross-Site-Iframe in order to 
obtain the compatibility with superdevmode, so I'd like to locate and 
remove the script tags from the modules I'm inheriting from (since this 
linker doesn't support them).
Now I'm just  wondering if there's an easy way to obtain from the gwt 
compiler or other tools the *graph of inherited modules* (possibly 
transitive).
It would be really useful in order to avoid having to manually read every 
inherited module to find additional inherited modules and so on.
Also, having a clear graph of this kind of dependencies would be a good 
check tool especially when you depend on 3rd party modules.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Jens

>
> Also have a look at http://snapsvg.io/
>

Oh that looks pretty cool. Worth a bookmark :)

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT and SVG, the 125th... :-)

2014-02-25 Thread Alain Ekambi
Also have a look at http://snapsvg.io/



2014-02-25 14:31 GMT+01:00 Magnus :

> Hi,
>
> I have been searching for SVG support in GWT for an long time.
> Now I have found something that seems to be exactly what I am looking for:
>
>
> http://svgjs.com/
>
>
>- It's lightweight.
>- It supports importing SVG files.
>- The demo shows all the features I need (simple drawings, svg import,
>events)
>- It seems to support the most important browsers.
>
> The only thing is that it's a raw JS-library.
> How would you integrate it into a GWT project?
>
> Consider the following (JS`?) code:
>
>
> var draw = SVG('drawing').size(300, 300)
> var rect = draw.rect(100, 100).attr({ fill: '#f06' })
>
> How could you encapsulate this into a java method called drawRect?
>
> Do you know this library and what do you think?
>
> Thanks
> Magnus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


GWT and SVG, the 125th... :-)

2014-02-25 Thread Magnus
Hi,
 
I have been searching for SVG support in GWT for an long time.
Now I have found something that seems to be exactly what I am looking for:
 

http://svgjs.com/


   - It's lightweight.
   - It supports importing SVG files.
   - The demo shows all the features I need (simple drawings, svg import, 
   events)
   - It seems to support the most important browsers.

The only thing is that it's a raw JS-library.
How would you integrate it into a GWT project?
 
Consider the following (JS`?) code:
 

var draw = SVG('drawing').size(300, 300)
var rect = draw.rect(100, 100).attr({ fill: '#f06' })

How could you encapsulate this into a java method called drawRect?
 
Do you know this library and what do you think?
 
Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Error in expanding GWT Tree

2014-02-25 Thread Dominic Warzok
Hi, in my WebApp I use a GWT Tree. I have made a Button, when you klick 
this button the whole tree should be expanded / closed.
But when I click the button sometimes a TreeItem does not close. When I 
debug this I can see that the open state is not changed but I called the 
method treeItem.setState(open).

So I don't know why this isn't changed in my TreeItem.

Any suggests ? 

Thanks in advance.



 
Here is my onClick Method:

* public void onClick( ClickEvent event )*
*  {*
*Object source = event.getSource();*
*if ( source.equals( getView().getButtonBaumEinAusKlappen() ) )*
*{*

*  for ( int i = 0; i < getView().getTree().getItemCount(); i++ )*
*  {*
*TreeItem myTreeItem = getView().getTree().getItem( i );*

*if(myTreeItem.getChildCount()>0)*
*  getView().getTree().expandAll( myTreeItem, !expandState );*

*myTreeItem.setState( !expandState );*
*int andkw = 5;*
* }*
*  expandState = !expandState;*
*}*
*}*

and here is my epandAll method: 

* public void expandAll( TreeItem item, boolean expand )*
*  {*
*for ( int i = 0; i < item.getChildCount(); i++ )*
*{*

*  // do action here*
*  TreeItem childTreeItem = item.getChild( i );*
*  childTreeItem.setState( expand );*

*  // recursive call for current node.*
*  expandAll( childTreeItem, expand );*
*}*
*  }*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Server-side message exchange

2014-02-25 Thread Alain Ekambi
http://erraiframework.org/  ?


2014-02-25 12:25 GMT+01:00 Aldo Neto :

> Hi,
>
> I'm trying to create a mechanism to exchange messages using a separate
> broker. In other words, I have a message broker and I need to let my server
> know when a message is arrived. What is the best way to do that?
>
> I'd also need to send messages through that broker too, so this should be
> a two-way message exchange
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Server-side message exchange

2014-02-25 Thread Aldo Neto
Hi,

I'm trying to create a mechanism to exchange messages using a separate
broker. In other words, I have a message broker and I need to let my server
know when a message is arrived. What is the best way to do that?

I'd also need to send messages through that broker too, so this should be a
two-way message exchange

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to load a JRE-dependent/non-compile-mode-supported class in GWT Dev Mode

2014-02-25 Thread Benjamin Bitdiddle
On Tuesday, February 25, 2014 3:19:29 AM UTC-6, Thomas Broyer wrote:
>
>
>
> On Tuesday, February 25, 2014 8:53:39 AM UTC+1, Benjamin Bitdiddle wrote:
>>
>> For a particular GWT module, I'm able to solve a problem in compiled mode 
>> by manipulating the JS object representing the Java object.  (Specifically, 
>> I need to clone the object, so I simply create a new JS object, copy the 
>> properties from the original JS object, and assign a new hash value.)  I've 
>> tested this an it works OK.
>>
>> Since that approach (that I use in compiled mode) doesn't work in Dev 
>> Mode, I want to use Object.clone(), which is available in Dev Mode, to 
>> perform the clone operation. However, I'm not sure how to accomplish this 
>> as every approach I try hits a problem.
>>
>>- I can't seem to use deferred binding (i.e. GWT.create() and 
>>"replace with" in the module gwt.xml file), for two reasons:
>>
>>
>>1. Even in Dev Mode, when I replace a class using "replace with", the 
>>   class I swap in seems not to be able to use JRE-only methods, such as 
>>   reflection or Object.clone.  I get an error that the "source code for 
>> the 
>>   method is not available".  I don't want this class compiled, but it 
>> seems 
>>   to want to compile it to JS.
>>   2. If I solve #1, then I have to figure out how to get the 
>>   "replace with" to be conditional based on being in dev mode.  I'm 
>> using ant 
>>   to build the compiled-mode stuff and I'm using Eclipse to run dev 
>> mode.  Is 
>>   there way to make this automatic so I can use the same module gwt.xml 
>> in 
>>   Eclipse and for an ant build?  I guess I'd need an ant property that 
>>   automatically is set by compiled but not by development mode, or vice 
>> versa?
>>   
>>
>>- I also tried simply using new Foo() (rather than GWT.create() and 
>>deferred binding), placing the JS-copying/GWT-compile-friendly version of 
>>Foo in the normal location.  This works for GWT compiled mode obviously.  
>>Then for Dev Mode, I add a new source directory to the class path in 
>>Eclipse and stick a different class Foo there that uses the JRE-only APIs 
>>(such as Object.clone).  However, this hits the same problem as deferred 
>>binding - I still get an error that "the source code is not available" 
>> for 
>>various APIs I use in that version of Foo (e.g. reflection APIs).
>>
>> Right now, I've managed to use the Eclipse expression panel to manually 
>> load the JRE-version of Foo I mentioned above (in the special class path 
>> segment).  So I know it's possible for it to coexist with other Dev Mode 
>> classes, but how do I load it programmatically as part of starting GWT 
>> DevMode class?
>>
>
> It seems like you're looking for super-source and @GwtScriptOnly.
>
> In your standard source location you'll put the class you want to use in 
> DevMode, then in the super-source (you have to declare a  path="super" /> in your gwt.xml) you put the version of the class you want 
> to use in web mode, and you annotate it with 
> @com.google.gwt.core.client.GwtScriptOnly (note: that class only exists in 
> super-source too, so you won't find it by auto-complete in your IDE). See 
> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
> This is used in many places in GWT if you need examples: WeakMapping, 
> StringCase, SafeHtmlHostedModeUtils, etc.
>
> (that said, I suspect you're doing something Wrong™ if you need this for 
> Object.clone(), and you'd better try to find an alternative)
>

Thanks for the quick response.  I haven't tried it yet, but will soon.

I want to use Object.clone() because I have a situation where I need to 
create a (shallow) duplicate of a Java class that differs from the original 
only by virtue of pointing to a different JS object (with one member).  *The 
class may be one I have no control over, such as something user writes*, so 
I can't insist that it implement any particular API.  (I guess the ideal 
situation would be to have my root class A implement myClone(), which 
clones by just calling a constructor for that class with the right 
arguments, and then require that any class B that a user writes to extend A 
override myClone().  However, I don't think I can require that.)

[Yikes.  It seems as if I can't edit my own post. :-)] 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


RemoteLogging without RPC

2014-02-25 Thread google
Hi,

We distribute our mobile application as a GWT mobile web application and as 
PhoneGap-wrapped native apps. We update our mobile web application on a 
daily base, and - based on it - create once per month a new version of the 
PhoneGap native apps.

We like to use GWT Remote Logging (
http://www.gwtproject.org/doc/latest/DevGuideLogging.html#Remote_Logging) 
but I fail to see how this can work with the PhoneGap app. The PhoneGap app 
should log to the same end point like the mobile web app. Whenever we 
update the mobile web app, the calls from the PhoneGap app can't be 
deserialized at the server side because the versions don't match any longer.

What's the best approach for Remote Logging in a GWT-PhoneGap app? Are 
there ways to use REST calls instead of RPC calls? Any libraries out there?

Many thanks!

Ron

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to load a JRE-dependent/non-compile-mode-supported class in GWT Dev Mode

2014-02-25 Thread Benjamin Bitdiddle
Thanks for the quick response.  I haven't tried it yet, but will soon.

I want to use Object.clone() because I have a situation where I need to 
create a (shallow) duplicate of a Java class that differs from the original 
only by virtue of pointing to a different JS object (with one member).  *The 
class may be one I have no control over, such as something user writes*, so 
I can't insist that it implement any particular API.  (I guess the ideal 
situation would be to have my root class A implement myClone(), which 
clones by just calling a constructor for that class with the right 
arguments, and then require that any class B that a user writes to extend A 
override myClone().  However, I don't think I can require that.)

On Tuesday, February 25, 2014 3:19:29 AM UTC-6, Thomas Broyer wrote:
>
>
>
> On Tuesday, February 25, 2014 8:53:39 AM UTC+1, Benjamin Bitdiddle wrote:
>>
>> For a particular GWT module, I'm able to solve a problem in compiled mode 
>> by manipulating the JS object representing the Java object.  (Specifically, 
>> I need to clone the object, so I simply create a new JS object, copy the 
>> properties from the original JS object, and assign a new hash value.)  I've 
>> tested this an it works OK.
>>
>> Since that approach (that I use in compiled mode) doesn't work in Dev 
>> Mode, I want to use Object.clone(), which is available in Dev Mode, to 
>> perform the clone operation. However, I'm not sure how to accomplish this 
>> as every approach I try hits a problem.
>>
>>- I can't seem to use deferred binding (i.e. GWT.create() and 
>>"replace with" in the module gwt.xml file), for two reasons:
>>
>>
>>1. Even in Dev Mode, when I replace a class using "replace with", the 
>>   class I swap in seems not to be able to use JRE-only methods, such as 
>>   reflection or Object.clone.  I get an error that the "source code for 
>> the 
>>   method is not available".  I don't want this class compiled, but it 
>> seems 
>>   to want to compile it to JS.
>>   2. If I solve #1, then I have to figure out how to get the 
>>   "replace with" to be conditional based on being in dev mode.  I'm 
>> using ant 
>>   to build the compiled-mode stuff and I'm using Eclipse to run dev 
>> mode.  Is 
>>   there way to make this automatic so I can use the same module gwt.xml 
>> in 
>>   Eclipse and for an ant build?  I guess I'd need an ant property that 
>>   automatically is set by compiled but not by development mode, or vice 
>> versa?
>>   
>>
>>- I also tried simply using new Foo() (rather than GWT.create() and 
>>deferred binding), placing the JS-copying/GWT-compile-friendly version of 
>>Foo in the normal location.  This works for GWT compiled mode obviously.  
>>Then for Dev Mode, I add a new source directory to the class path in 
>>Eclipse and stick a different class Foo there that uses the JRE-only APIs 
>>(such as Object.clone).  However, this hits the same problem as deferred 
>>binding - I still get an error that "the source code is not available" 
>> for 
>>various APIs I use in that version of Foo (e.g. reflection APIs).
>>
>> Right now, I've managed to use the Eclipse expression panel to manually 
>> load the JRE-version of Foo I mentioned above (in the special class path 
>> segment).  So I know it's possible for it to coexist with other Dev Mode 
>> classes, but how do I load it programmatically as part of starting GWT 
>> DevMode class?
>>
>
> It seems like you're looking for super-source and @GwtScriptOnly.
>
> In your standard source location you'll put the class you want to use in 
> DevMode, then in the super-source (you have to declare a  path="super" /> in your gwt.xml) you put the version of the class you want 
> to use in web mode, and you annotate it with 
> @com.google.gwt.core.client.GwtScriptOnly (note: that class only exists in 
> super-source too, so you won't find it by auto-complete in your IDE). See 
> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
> This is used in many places in GWT if you need examples: WeakMapping, 
> StringCase, SafeHtmlHostedModeUtils, etc.
>
> (that said, I suspect you're doing something Wrong™ if you need this for 
> Object.clone(), and you'd better try to find an alternative)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to load a JRE-dependent/non-compile-mode-supported class in GWT Dev Mode

2014-02-25 Thread Thomas Broyer


On Tuesday, February 25, 2014 8:53:39 AM UTC+1, Benjamin Bitdiddle wrote:
>
> For a particular GWT module, I'm able to solve a problem in compiled mode 
> by manipulating the JS object representing the Java object.  (Specifically, 
> I need to clone the object, so I simply create a new JS object, copy the 
> properties from the original JS object, and assign a new hash value.)  I've 
> tested this an it works OK.
>
> Since that approach (that I use in compiled mode) doesn't work in Dev 
> Mode, I want to use Object.clone(), which is available in Dev Mode, to 
> perform the clone operation. However, I'm not sure how to accomplish this 
> as every approach I try hits a problem.
>
>- I can't seem to use deferred binding (i.e. GWT.create() and "replace 
>with" in the module gwt.xml file), for two reasons:
>
>
>1. Even in Dev Mode, when I replace a class using "replace with", the 
>   class I swap in seems not to be able to use JRE-only methods, such as 
>   reflection or Object.clone.  I get an error that the "source code for 
> the 
>   method is not available".  I don't want this class compiled, but it 
> seems 
>   to want to compile it to JS.
>   2. If I solve #1, then I have to figure out how to get the "replace 
>   with" to be conditional based on being in dev mode.  I'm using ant to 
> build 
>   the compiled-mode stuff and I'm using Eclipse to run dev mode.  Is 
> there 
>   way to make this automatic so I can use the same module gwt.xml in 
> Eclipse 
>   and for an ant build?  I guess I'd need an ant property that 
> automatically 
>   is set by compiled but not by development mode, or vice versa?
>   
>
>- I also tried simply using new Foo() (rather than GWT.create() and 
>deferred binding), placing the JS-copying/GWT-compile-friendly version of 
>Foo in the normal location.  This works for GWT compiled mode obviously.  
>Then for Dev Mode, I add a new source directory to the class path in 
>Eclipse and stick a different class Foo there that uses the JRE-only APIs 
>(such as Object.clone).  However, this hits the same problem as deferred 
>binding - I still get an error that "the source code is not available" for 
>various APIs I use in that version of Foo (e.g. reflection APIs).
>
> Right now, I've managed to use the Eclipse expression panel to manually 
> load the JRE-version of Foo I mentioned above (in the special class path 
> segment).  So I know it's possible for it to coexist with other Dev Mode 
> classes, but how do I load it programmatically as part of starting GWT 
> DevMode class?
>

It seems like you're looking for super-source and @GwtScriptOnly.

In your standard source location you'll put the class you want to use in 
DevMode, then in the super-source (you have to declare a  in your gwt.xml) you put the version of the class you want 
to use in web mode, and you annotate it with 
@com.google.gwt.core.client.GwtScriptOnly (note: that class only exists in 
super-source too, so you won't find it by auto-complete in your IDE). 
See 
http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
This is used in many places in GWT if you need examples: WeakMapping, 
StringCase, SafeHtmlHostedModeUtils, etc.

(that said, I suspect you're doing something Wrong™ if you need this for 
Object.clone(), and you'd better try to find an alternative)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


How to load a JRE-dependent/non-compile-mode-supported class in GWT Dev Mode

2014-02-25 Thread Benjamin Bitdiddle
For a particular GWT module, I'm able to solve a problem in compiled mode 
by manipulating the JS object representing the Java object.  (Specifically, 
I need to clone the object, so I simply create a new JS object, copy the 
properties from the original JS object, and assign a new hash value.)  I've 
tested this an it works OK.

Since that approach (that I use in compiled mode) doesn't work in Dev Mode, 
I want to use Object.clone(), which is available in Dev Mode, to perform 
the clone operation. However, I'm not sure how to accomplish this as every 
approach I try hits a problem.

   - I can't seem to use deferred binding (i.e. GWT.create() and "replace 
   with" in the module gwt.xml file), for two reasons:


   1. Even in Dev Mode, when I replace a class using "replace with", the 
  class I swap in seems not to be able to use JRE-only methods, such as 
  reflection or Object.clone.  I get an error that the "source code for the 
  method is not available".  I don't want this class compiled, but it seems 
  to want to compile it to JS.
  2. If I solve #1, then I have to figure out how to get the "replace 
  with" to be conditional based on being in dev mode.  I'm using ant to 
build 
  the compiled-mode stuff and I'm using Eclipse to run dev mode.  Is there 
  way to make this automatic so I can use the same module gwt.xml in 
Eclipse 
  and for an ant build?  I guess I'd need an ant property that 
automatically 
  is set by compiled but not by development mode, or vice versa?
  

   - I also tried simply using new Foo() (rather than GWT.create() and 
   deferred binding), placing the JS-copying/GWT-compile-friendly version of 
   Foo in the normal location.  This works for GWT compiled mode obviously.  
   Then for Dev Mode, I add a new source directory to the class path in 
   Eclipse and stick a different class Foo there that uses the JRE-only APIs 
   (such as Object.clone).  However, this hits the same problem as deferred 
   binding - I still get an error that "the source code is not available" for 
   various APIs I use in that version of Foo (e.g. reflection APIs).
   
Right now, I've managed to use the Eclipse expression panel to manually 
load the JRE-version of Foo I mentioned above (in the special class path 
segment).  So I know it's possible for it to coexist with other Dev Mode 
classes, but how do I load it programmatically as part of starting GWT 
DevMode class?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.