Re: add mobile version to existing GWT app?

2014-12-03 Thread Slava Pankov
> Ok, but how can you do REST/JSON with a GWT application?

For me RestEasy + Errai JAX-RS is working perfectly fine.

On Wednesday, December 3, 2014 10:16:23 AM UTC-8, Magnus wrote:
>
> Hi!
>
> If I'd start the project today, I'd just use plain REST / JSON for both 
>> the desktop and mobile versions.
>>
>
>  Ok, but how can you do REST/JSON with a GWT application?
> Would you replace the RPC calls with REST requests, using a servlet or 
> what?
>
> 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/d/optout.


GWT + vaadin

2014-12-03 Thread gh88
Hello! I'm trying to compile vaadin widgetset with standart gwt compiler v
2.7.0, Vaadin version - 7.3.6
It does pretty amount of work, but finally falls with errors:

 [ERROR] Errors in
'jar:file:/home/gh88/Downloads/gwt-2.7.0/src/cl.jar!/com/vaadin/client
/ApplicationConfiguration.java'
[ERROR] com.vaadin.client.ApplicationConnection cannot be

resolved to a type
 [ERROR] Errors in
'jar:file:/home/gh88/Downloads/gwt-2.7.0/src/cl.jar!/com/vaadin/client
/ServerConnector.java'
etc.. 

Of course, com.vaadin.client.ApplicationConnection EXISTS (both .java and
.class) there! What I'm doing wrong? cl.jar is "fixed"
vaadin-client-7.3.6.jar - I just commented "" and packed
back as GWT doesn't work if not.
I appreciate any help!

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


Re: TabLayoutPanel - forcing onResize for unselected tab content

2014-12-03 Thread Vassilis Virvilis
I am using the following class.


package com.sn.lib.gwt.client.ui;

import com.google.gwt.dom.client.Style.Unit;

public class ResizeTabLayoutPanel extends TabLayoutPanel {
public ResizeTabLayoutPanel(double barHeight, Unit barUnit) {
super(barHeight, barUnit);

addSelectionHandler(new SelectionHandler() {
@Override
public void onSelection(SelectionEvent event) {
final Widget w = getWidget(event.getSelectedItem());
if (w instanceof RequiresResize) {
((RequiresResize) w).onResize();
}
}
});
}
}


On Wed, Dec 3, 2014 at 9:19 PM, Jens  wrote:

> Tabs that are not active have display:none applied which basically tells
> the browser "you don't have to care about that piece of HTML". So the
> browser will not calculate any meaningful width/height/whatever values for
> elements that have display:none applied and thus you can not center
> anything.
>
> If I were you I would store the active rendering mode somewhere and
> whenever a tab gets active you use the active rendering mode to render the
> chess board and then center the board. TabPanel/TabLayoutPanel have
> add**Handler() methods for listening for tab selections.
>
> -- 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/d/optout.
>



-- 
Vassilis Virvilis

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


Re: TabLayoutPanel - forcing onResize for unselected tab content

2014-12-03 Thread Jens
Tabs that are not active have display:none applied which basically tells 
the browser "you don't have to care about that piece of HTML". So the 
browser will not calculate any meaningful width/height/whatever values for 
elements that have display:none applied and thus you can not center 
anything.

If I were you I would store the active rendering mode somewhere and 
whenever a tab gets active you use the active rendering mode to render the 
chess board and then center the board. TabPanel/TabLayoutPanel have 
add**Handler() methods for listening for tab selections.

-- 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/d/optout.


Re: add mobile version to existing GWT app?

2014-12-03 Thread Jens

>
> 1) refactor your business logic (which usually returns a Serializeable 
> object) 
> out of the GWT RemoteServeiceServelt, 
>

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/server/rpc/RemoteServiceServlet.html#RemoteServiceServlet(java.lang.Object)

GWT-RPC servlets already have the concept of a delegate. So you can easily 
put all your server side GWT-RPC methods in a different class that is not a 
servlet at all and the RemoteServiceServlet will delegate all RPC calls to 
that new class.

Thats also nice for testing, since you don't have to deal with servlets.

-- 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/d/optout.


Re: add mobile version to existing GWT app?

2014-12-03 Thread Yucong Sun
Here is what I would do :

1) refactor your business logic (which usually returns a Serializeable object)
out of the GWT RemoteServeiceServelt,

2) Create some normal Java servelet with the API style of your
choosing, REST or not.

3) Call your business logic from both places, GWT just return the
objects,  New JSON based API run JSON serializing before returning the
result (use a json serializer of course)  (of course with exception
handling as well).

That way your backend needs some small amount of change and you can
keep your business logic in one place to be used by two frontend.

On Wed, Dec 3, 2014 at 10:16 AM, Magnus  wrote:
> Hi!
>
>> If I'd start the project today, I'd just use plain REST / JSON for both
>> the desktop and mobile versions.
>
>
>  Ok, but how can you do REST/JSON with a GWT application?
> Would you replace the RPC calls with REST requests, using a servlet or what?
>
> 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/d/optout.

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


Re: add mobile version to existing GWT app?

2014-12-03 Thread Magnus
Hi!

If I'd start the project today, I'd just use plain REST / JSON for both the 
> desktop and mobile versions.
>

 Ok, but how can you do REST/JSON with a GWT application?
Would you replace the RPC calls with REST requests, using a servlet or what?

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/d/optout.


Re: New Run Configuration after GWT Update

2014-12-03 Thread Magnus
Hi Thomas,

thanks, this is really cool!
Will the normal "DevMode" continue to exist?

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/d/optout.


TabLayoutPanel - forcing onResize for unselected tab content

2014-12-03 Thread Magnus
Hi,

there are several chess boards in different tabs of a TabLayoutPanel.
And there are two types of presentation: table-based board and SVG based 
board.
When the user switches between the two types of graphics, all of the chess 
boards within the tabs are recreated.
So far, so good.

Each tab has a SimplePanel containing the chess board. To center the board 
within the SimplePanel, I use the onResize method.
After recreating a board I schedule a onResize for the corresponding 
SimplePanel.

However, this only works for the tab that is currently displayed.

When I then switch to another tab, the board is not centered. It will be 
centered when I then resize the SimplePanel.

I thought about hooking the event when another tab is selected (how would 
you do this?) and then do a onResize manually.
But in my opinion the better solution would be when you recreate the boards.

Any ideas?

Thank you
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/d/optout.


2.7.0 and module.nocache.js

2014-12-03 Thread Nathan
In GWT 2.7.0-rc1 and earlier versions, I was able to compile my application 
and then launch the GWT development shell in devmode version and have it 
serve up the normal compiled version of my application as well as use 
devmode if I wanted (from supported browsers). However, now it seems that 
running devmode causes the module.nocache.js file to be replaced and gives 
a message "GWT module may need to be (re)compiled" when trying to access 
the normal compiled version. If I then replace module.nocache.js with the 
version generated from compiling, both devmode and the normal compiled mode 
work. Is there a reason this change was made to have devmode replace 
module.nocache.js on start up breaking compiled mode?
-Nathan

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


iFrame usage any shortcomings that we should we aware of ?

2014-12-03 Thread sch
Hi!

We are using "iframe" to render document content fetched from the server. 
The document on the server could have been created using Word as authoring 
tool / created via an HTML editor on the client itself. The content on the 
server is stored in individual items on the server. We need to fetch a 
certain number of such items in one go and then scroll and fetch more 
content. Since the content can have it's own formatting we have used the 
"iframe" so that the application's styling does not interfere with the 
document content.

Going forward we want to introduce following feature"-

We are displaying the items in a HTML panel as cell widgets. We want to be 
able to scroll to the specific content when we select a cell widget and if 
we select content then we should highlight the corresponding item. In order 
to achieve this we are thinking of using the GWT cell widget to show 
content also. Does this sound OK ? are there any limitations on the iframe 
which makes this kind of selection difficult ?




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


Re: Load previous superdevmode state between devmode restarts (2.7.0)

2014-12-03 Thread Eduard Català
Yes, sure it's this kind of ClassLoader reference!!
I would try the third-party server approach!! Thankyou!!!


  *Eduard Català*
*Cap àrea de Software*
661.537.743 / 972.104.177  - ecat...@dset-solutions.com

*DSET Solutions *
*Parc Científic i Tecnològic de la UdG - 17003 Girona*
http://www.dset-solutions.com


Avís legal


On Wed, Dec 3, 2014 at 4:09 PM, Thomas Broyer  wrote:

>
>
> On Wednesday, December 3, 2014 3:57:21 PM UTC+1, Eduard Català wrote:
>>
>> Tank you Thomas,
>>
>> But restarting Jetty Server button does not work properly:  At third
>> redeploy (50MB of jar libraries) an OutOfMemoryError is thrown, i suspect
>> that embedded jetty server is not properly restarted  (only reloads context
>> without stopping entire server).
>>
>
> Then you could use a third-party, independent server, and run SDM on its
> own (pointing -launcherDir to the webapp directory used by the other server
> so that "compile on load" works; or using the "Dev Mode On" and "Dev Mode
> Off" bookmarklets).
>
> Note that I don't think Jetty leaks memory, but there are libraries that
> leak memory by artificially keeping the old ClassLoader in memory and
> preventing it being garbage-collected. One such library is Guice (through
> Guava); see https://github.com/tbroyer/gwt-maven-archetypes/issues/19
> There could also be leaks if your webapp happens to pass some object to a
> class in the parent classloader that would retain it (e.g. putting it in a
> static field), preventing the whole webapp ClassLoader from being
> garbage-collected.
>
>
> --
> 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/FHXfx_a69sk/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/d/optout.
>

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


Re: Load previous superdevmode state between devmode restarts (2.7.0)

2014-12-03 Thread Thomas Broyer


On Wednesday, December 3, 2014 3:57:21 PM UTC+1, Eduard Català wrote:
>
> Tank you Thomas,
>
> But restarting Jetty Server button does not work properly:  At third 
> redeploy (50MB of jar libraries) an OutOfMemoryError is thrown, i suspect 
> that embedded jetty server is not properly restarted  (only reloads context 
> without stopping entire server).
>

Then you could use a third-party, independent server, and run SDM on its 
own (pointing -launcherDir to the webapp directory used by the other server 
so that "compile on load" works; or using the "Dev Mode On" and "Dev Mode 
Off" bookmarklets).

Note that I don't think Jetty leaks memory, but there are libraries that 
leak memory by artificially keeping the old ClassLoader in memory and 
preventing it being garbage-collected. One such library is Guice (through 
Guava); see https://github.com/tbroyer/gwt-maven-archetypes/issues/19
There could also be leaks if your webapp happens to pass some object to a 
class in the parent classloader that would retain it (e.g. putting it in a 
static field), preventing the whole webapp ClassLoader from being 
garbage-collected.
 

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


Re: Load previous superdevmode state between devmode restarts (2.7.0)

2014-12-03 Thread Jens

>
> But restarting Jetty Server button does not work properly:  At third 
> redeploy (50MB of jar libraries) an OutOfMemoryError is thrown, i suspect 
> that embedded jetty server is not properly restarted  (only reloads context 
> without stopping entire server).
>

Thats more a sign of a memory leak in one of your server side libraries or 
your own code (ClassLoader leak / ThreadLocal leak). 

-- 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/d/optout.


Re: Load previous superdevmode state between devmode restarts (2.7.0)

2014-12-03 Thread Eduard Català
Tank you Thomas,

But restarting Jetty Server button does not work properly:  At third 
redeploy (50MB of jar libraries) an OutOfMemoryError is thrown, i suspect 
that embedded jetty server is not properly restarted  (only reloads context 
without stopping entire server).


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


Re: Load previous superdevmode state between devmode restarts (2.7.0)

2014-12-03 Thread Thomas Broyer

On Wednesday, December 3, 2014 1:37:13 PM UTC+1, Eduard Català wrote:
>
> Hi,
> I'm working on a large gwt 2.7.0 project, we've to restart the web server 
> constantly to test server logic. 
>
> When devmode (and superdevmode) starts we have to reload the page. Then we 
> have to wait the first superdevmode compilation (long, too long...) but no 
> client side code has changed between restart of webserver.
>
> Is there any way to take advantage of previous superdevmode compilations 
> (saving superdevmode state between server restarts)? I've tried with 
> setting -workDir but no luck, first copilation is not used.
>
> Thank yoou
>

The next version of GWT will reuse the cache from previous SDM runs, but in 
your case I don't think you actually need it:

When launching SDM through DevMode (i.e. serving your server-side code from 
the embedded Jetty server), you can restart the web server (actually 
redeploy the webapp) without restarting DevMode.
In Eclipse with the GPE, use the yellow double spinning arrows' button in 
the DevMode view. When launching DevMode by other means (with its own 
Swing-based window), you'll find a "restart server" button in the "Jetty" 
tab.
 

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


Re: custom elementparser for UiBinder

2014-12-03 Thread Thomas Broyer
I haven't checked but I believe GwtBootstrap3 just implements HasWidgets 
(maybe extends ComplexPanel) and does some checks in addWidget and the like 
to make sure you use the correct child widgets.

On Wednesday, December 3, 2014 2:31:05 PM UTC+1, AJ wrote:
>
> I finally got it! The issue was that I need to ad a container/wrapper tag 
> around the child using the tagname specified in the @UiChild
>
> so
> 
> 
> 
> 
> 
>
> The CustomParent object has a method with annotation 
> @UiChild(tagname="myChild") which is invoked with the  element
>
> This is somewhat counter to the 'normal' way, which I guess I can 
> implement if I use a custom parser.
>
> However, as I noted in my initial question I was looking at other 
> libraries to get an idea of how to do this and noted that GwtBootstrap3 
> does not seem to use any of the implementations mentioned here.
>
> If anyone knows how I would appreciate some pointers. Even better if the 
> GwtBootstrap3 guys happen to read this.
> It would be more uniform if I didn't have to surround each child in a tag 
> to invoke the add method for it
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> Thanks for your help!
>

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


Load previous superdevmode state between devmode restarts (2.7.0)

2014-12-03 Thread Eduard Català
Hi,
I'm working on a large gwt 2.7.0 project, we've to restart the web server 
constantly to test server logic. 

When devmode (and superdevmode) starts we have to reload the page. Then we 
have to wait the first superdevmode compilation (long, too long...) but no 
client side code has changed between restart of webserver.

Is there any way to take advantage of previous superdevmode compilations 
(saving superdevmode state between server restarts)? I've tried with 
setting -workDir but no luck, first copilation is not used.

Thank yoou

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


IntelliJ IDEA, custom urls in hosts file

2014-12-03 Thread Stefan Berger


Hi,


in my hosts file I have

127.0.0.1 test.loc.com www.loc.com

I'm playing with cookies, create them for different domain names.

In IntelliJ's GWT configuration, in the Dev Mode Parameters I have

-startupUrl http://test.loc.com: com.test.MyApp

The console output is

> Dev Mode initialized. Startup URL: > 
> http://test.loc.com:/MyApp.html?gwt.codesvr=127.0.0.1:9997

I have the "Open in browser" option checked. Chrome opens with the url 
http://127.0.0.1:/MyApp.html?gwt.codesvr=127.0.0.1:9997 and everything 
looks ok, same with localhost:. But when I open

http://test.loc.com:/MyApp.html?gwt.codesvr=127.0.0.1:9997

I get

Plugin failed to connect to Development Mode server at 127.0.0.1:9997

Using IntelliJ + Firefox or Eclipse + any browser my own urls work, Havent' 
tried other browsers. Is that a bug? Is this the right place to report it?

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


Re: custom elementparser for UiBinder

2014-12-03 Thread AJ
I finally got it! The issue was that I need to ad a container/wrapper tag 
around the child using the tagname specified in the @UiChild

so






The CustomParent object has a method with annotation 
@UiChild(tagname="myChild") which is invoked with the 












Thanks for your help!

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


How to properly use selection properties in generators to generate different implementations for each permutation

2014-12-03 Thread Honza Rames
Hi everyone,
I hope I'll be clear enough so this answer actually makes sense...

I have a chain of generators that are configured by one deferred binding 
property and I need the generators to produce different results based on 
this property. There aren't many examples on how to achieve this, I started 
by looking how i18n does that (which is the only generator I know that 
produces different results for different permutations) and soon after I 
realized that I need to output different implementation class names 
(obviously) to achieve that. Then the DistillerRebindPermutationOracle 
really sets proper implementation class names to interface names that are 
generated.

So far so good, I can change the behavior of this one generated class but 
what if my generator produces a code that needs to rebind another class by 
another generator. This is where I got stuck because permutations that 
belong to another configuration are trying to rebind classes that should 
(and are) never used in those permutations. The order of the subsequent 
rebinding is set by how the implementation names are sorted inside the 
DistillerRebindPermutationOracle result (given by a set of all rebound 
classes for all permutations).

Here is an example of what I'm trying to achieve:

public interface Factory {
  Factory IMPL = GWT.create(Factory.class);

  SomeObj getImpl();
}

//Config1 generated
public class FacoryImpl implements Factory {
  public SomeObj() {
SomeObj result = new SomeObj();
INIT1.init(result);
  }

  public interface Init1 extends Initializer {}
  static Initializer INIT1 = GWT.create(Init1.class);
}

//Config2 generated
public class FacoryImpl2 implements Factory {
  public SomeObj() {
SomeObj result = new SomeObj();
INIT1.init(result);
  }

  public interface Init1 extends Initializer {}
  static Initializer INIT1 = GWT.create(Init1.class);
}

Both of these classes are almost identical, this is expected and designed 
to work this way, the difference is in the initializers and this is where 
I'm getting errors during rebinding. FactoryImpl2.Init1 is rebound first in 
Config1 permutation context and it fails inside my code. My point is, since 
FactoryImpl2 is never used in permutation 1, why is the compiler trying to 
rebind it in this permutation? Is there some problem in my gwt.xml or are 
the generators just not designed to do this? Or is it implemented in such a 
way that classes that are never used are ignored later by dead code 
elimination and I should just generate stub implementations and leave the 
rest to the compiler. I could always compile both configurations separately 
and use custom bootstrap to load the proper module/permutation.

I would expect the initializers to look something like this:

//Config1
public class FactoryImpl_Init1Impl implements FactoryImpl.Init1 {
  public void init(SomeObj o) {
o.setSomething(1);
  }
}

//Config2
public class FactoryImpl2_Init1Impl2 implements FactoryImpl2.Init1 {
  public void init(SomeObj o) {
o.setSomething(2);
  }
}


Any help/clarification would be much appreciated!

Honza

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


Re: JavaScript charting frameworks supported by GWT

2014-12-03 Thread Jens
Just keep in mind that only the GWT wrapper of Highcharts is Apache 
license. To use the GWT wrapper you also need Highcharts/Highstock itself 
which has the following license:




*Both Highcharts and Highstock are licensed for free for any personal or 
non-profit projects under the Creative Commons Attribution-NonCommercial 
3.0 License .For 
commercial, corporate or government use a license is required, which can be 
purchased for as little as $80. See the license and pricing details 
 directly on the Highcharts site for 
more details.*


-- 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/d/optout.


Re: JavaScript charting frameworks supported by GWT

2014-12-03 Thread Ronan Quillevere
Highcharts is probably one of the best chart lib right now with very good 
support of old browsers.

You can use the following wrapper 
: http://www.moxiegroup.com/moxieapps/gwt-highcharts/

It is no longer updated it seems, but it covers a lot of thing so it is 
still usable.

I am actually working on a new wrapper but it is still a work in progress 
(http://highcharts4gwt.github.io/)




On Thursday, November 13, 2014 6:53:15 PM UTC+1, Samir Samati wrote:
>
> Hi every body,
>
> i would like to know where can i find a list of all JavaScript charting 
> frameworks that are supported by gwt.
>
> Thnx 
>

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


Re: REST Service on Backend which Framework in GWT?

2014-12-03 Thread Ronan Quillevere
On the backend side, we are using Jersey (2.7) in my company and we are 
happy with it.

We use RestyGWT for the client side.

A small tutorial to make it both work together 
 : http://ronanquillevere.github.io/2014/03/16/gwt-rest-app.html#.VH7cdDHF-OQ

To make the injection work with Guice (using HK2 bridge) have a look at 
this : https://github.com/mycom-int/jersey-guice-aop

On Sunday, November 30, 2014 11:13:05 AM UTC+1, Filipe Sousa wrote:
>
> I've never used gwtquery, but I'm pretty happy with RestyGWT.
>
> On Saturday, November 22, 2014 3:23:54 PM UTC, marian lux wrote:
>>
>> What is the best framework / way for getting data form REST backend 
>> (pros/cons)? 
>>
>> gwtresty 
>> https://github.com/resty-gwt/resty-gwt 
>>
>>  or 
>>
>> gwtquery https://code.google.com/p/gwtquery/wiki/Ajax 
>>
>>  or something else? 
>>
>> THX 
>> --Marian
>
>

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


Re: GWT 2.6.0 to 2.7.0 leads to compiler error 'java.lang.IncompatibleClassChangeError'

2014-12-03 Thread Cristiano Costantini
Hi,
find out which dependency is including ASM and then try to exclude it in
your pom.xml

In our project,  app-hmi-soaconnector was importing ASM as a sub-dependency
due to CXF, so It did added the  tag like you can see below
directly in our main GWT web app project.

--- app_main/hmi/app-gwt-webapp/pom.xml (revision 7903)
+++ app_main/hmi/app-gwt-webapp/pom.xml (working copy)
@@ -130,6 +136,12 @@
  app-hmi-soaconnector
  ${app.version}
+ 
+ 
+ asm
+ asm
+ 
+ 
  
  

I found out the responsible using Eclipse Dependency Hierarchy.

Also remember to include codeserver dependency if you want to use super dev
mode

@@ -79,6 +79,12 @@
  ${gwt.version}
  runtime
  
+ 
+ com.google.gwt
+ gwt-codeserver
+ ${gwt.version}
+ test
+ 
  
  
  com.google.inject

Regards,
Cristiano



Il giorno Wed, 3 Dec 2014 alle 08:33 Thomas Broyer  ha
scritto:

You must have an incompatible version of ASM in your build path. ASM only
> ensures backwards compatible starting with version 4, earlier versions
> should have been repackaged but it's not always the case (people have
> listed Hibernate as a culprit for example)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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