Re: Documentation site on github

2015-01-20 Thread Michael Prentice
This is great news and will enable more people to contribute to the 
documentation in meaningful ways without needing to become fully versed in 
Gerrit and the review system.

Any plans to remove the 'This is a beta version' from the header (main.tpl) 
of the gwtproject.org site?

On Thursday, January 8, 2015 at 5:04:28 PM UTC-5, Julien Dramaix wrote:
>
> Dear GWT Community,
>
> In order to increase the number of contributions on the GWT documentation, 
> we've decided to move the documentation on Github and accept pull requests.
>
> We have also spent time to convert all the documentation in markdown 
> syntax. In addition to that, each documentation page has now an edit 
> button. When you click on, you are redirected to the corresponding markdown 
> page on Github in edit mode. You can easily modify a page and when you save 
> your change Github will automatically fork the project (if needed) and 
> creates a pull request for you. 
>
> This is for the documentation only, the code for GWT will stay on gerrit, 
> simply because gerrit is a much powerful tool to do code review of code.
>
> Julien
>

-- 
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: ClassNotFoundException: com.google.gwt.dev.util.Preconditions when compiling with 2.6.0 RC1

2014-01-16 Thread Michael Prentice
I was able to get my project to build with GWT 2.6rc4 after upgrading 
EventBinder to 1.0.1 and Gin to 2.1.2. I wanted to commit my EventBinder 
and Gin upgrades but not yet commit the change to GWT 2.6. This didn't work 
though.

Using Gin 2.1.2 with GWT 2.5.1 generated the following exceptions on 
loading my app:
*Deferred binding failed for 
'com.google.gwt.user.client.ui.impl.ClippedImageImpl$Template'*

Putting Gin 2.1.1 back in place for now resolved the issue.

-- 
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: Differences between DevMode and Production mode related to trim()

2014-01-14 Thread Michael Prentice
Thanks a lot Thomas.

I've submitted this issue 
here: https://code.google.com/p/google-web-toolkit/issues/detail?id=8534

On Tuesday, January 14, 2014 4:06:28 AM UTC-5, Thomas Broyer wrote:
>
> Maybe worth a bug entry.
>>
>
> +1
>
> The emulation should read:
>
> var r1 = this.replace(/^[\0- ]*/, '');
> var r2 = r1.replace(/[\0- ]*$/, '');
> return r2;
>
> (either [\0- ]* or [\0- ]+)
>
> That works in Chrome, but would have to be tested in all supported 
> browsers.
>

-- 
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: Differences between DevMode and Production mode related to trim()

2014-01-13 Thread Michael Prentice
Yeah, I had thought about that, but unfortunately our DTOs are 
auto-generated from the backend and contain null filled pre-sized char 
arrays. I changed the generator to give us String getProperty() and 
setProperty(String) method for each char Array. Changing those to do trim() 
wouldn't work when they are used on the client side.

I have the server setup to fill the char Arrays with nulls when the data 
goes back to the backend.

Currently those getProperty() calls just do return String.valueOf(char[]). 
I guess that I could change those to build up a char[] by looking at each 
character until it hits a '\0' and then use that 'trimmed' char[] as the 
input to the String.valueOf() that is returned.


On Monday, January 13, 2014 2:38:49 PM UTC-5, Jens wrote:
>
>
> Is there any reason why you don't trim always when the value is retrieved 
> from the C backend and append a null character when the String is supposed 
> to go back to your C backend, so basically correct the string on Java 
> server side on the fly? Would drive me crazy if I would always need to call 
> trim() in every equals just because of possible null characters (regardless 
> if this equals happens on server or client side)
> -- 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: Differences between DevMode and Production mode related to trim()

2014-01-13 Thread Michael Prentice
Thank you Jens.

It does look like there is a real difference between Java's trim() and the 
following JavaScript:


   1. var r1 = this.replace(/^(\s*)/, '');
   2. var r2 = r1.replace(/\s*$/, '');


A JavaScript whitespace character can be:

   - A space character
   - A tab character
   - A carriage return character
   - A new line character
   - A vertical tab character
   - A form feed character

Our Strings are all filled with null characters ('\0')) due to our ancient 
C backend. trim() in Java works perfectly for this. But GWT's 
production/JavaScript trim() does not work. This leads to much of our app 
being broken due to comparison checks that worked in DevMode, not working 
in production.

We are going to have to remove every instance of trim() (just under 100) 
from our client side code base. This of course has the possibility of 
introducing other bugs and display issues. We can replace the usages of 
trim().isEmpty() with checks for charAt(0) == '\0' but it is not as clean.

Another option is to just fix this issue in the SDK and ship our production 
product with a modified GWT SDK, but I think that there would be some 
management/customers unhappy with this.


On Friday, December 27, 2013 5:56:44 PM UTC-5, Jens wrote:
>
> GWT does not use the JS trim() method because of browser compatibility.
>
> See bottom of file: 
> https://gwt.googlesource.com/gwt/+/master/user/super/com/google/gwt/emul/java/lang/String.java
>
> Maybe this implementation is not compatible with the contents of your 
> String. In Java everything below \u0020 will be removed. Maybe thats not 
> the case when using JavaScript "\s" RegExp.
>
> -- 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: using cusrtom classes in GWT designer

2014-01-03 Thread Michael Prentice
You may be able to get some help with this from the WindowBuilder team at 
Eclipse 
here: 
http://www.eclipse.org/forums/index.php?t=thread&frm_id=214&S=7625d8ab46b00e13497393e863841f04

Otherwise, the GWT Designer is currently managed by the GPE team 
(https://groups.google.com/forum/#!forum/google-plugin-eclipse) and there 
is an old, inactive bug tracker for it 
here: https://code.google.com/p/gwt-designer/issues/list

Since this seems more like a WindowBuilder question than a specific GWT 
Designer question, I would recommend asking at the Eclipse forums linked 
above.

Michael Prentice
GDG Space Coast

On Friday, January 3, 2014 1:15:07 AM UTC-5, Magnus wrote:
>
> Hi,
>
> I would like to use a custom class in GWT designer:
>
> class Portal extends DockLayoutPanel
> {
>  public Portal
>  {
>   super (Unit.PX);
>  }
>  ...
> }
>
> When adding this to a SpltLayoutPanel in GWT designer the parser complains 
> about a missing Portal (Unit) constructor. When I add this constructor, the 
> parser keeps quiet.
>
> Why can't I hide the super class / the decision which unit to use?
>
> 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.create Session videos

2014-01-03 Thread Michael Prentice
Follow GWT.create on Google+ or Twitter for announcements about when the 
videos are posted.

Most all slides have already been posted 
(https://plus.google.com/114976122739833533849/posts/3uSGmq7HwUL).

-- 
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: JavaFX 2.2 WebView support - possible new User Agent?

2014-01-01 Thread Michael Prentice
I am not running Grails or PrimeFaces on the back-end. Instead we have 
servlets that connect us to a proprietary back-end system that is written 
in C and accessed via JNI.

While I do have an authentication system written, we are not using it as 
our enclosing Swing application handles all authentication atm. We do pass 
the username into GWT via JSNI for logging/requests though. It's certainly 
not a completely secure implementation atm, but security is not a high 
priority since the app is internal. Thus we do not use a CookieManager at 
all.

On Tuesday, December 31, 2013 5:58:40 PM UTC-5, Gary Eberhart wrote:
>
> So I went back and revisited the issues I'm facing. I appears that most of 
> my issues are related to the sessions not working. In GWT the state is 
> preserved on the client side with no need for sessions on the server. In 
> Grails, JSF and and other web technologies the JSESSIONID needs to be 
> passed back with each response. Without session support many things go 
> wrong. So I'm going to revisit my cookie manager implementation before I 
> continue to document my issues. May I ask what you use for a CookieManager? 
> Another thought is I don't have caching setup and the pages are being 
> reloaded unnecessarily possibly causing Grails and PrimeFaces to misbehave. 
> I will post again as I find out more. 
>
> On Tuesday, December 31, 2013 11:15:55 AM UTC-7, Gary Eberhart wrote:
>>
>> Thank You Michael. I will do so. I'll  post my other issues today as well 
>> for your review. Thank you for the response. At least I know it's not just 
>> me doing something wrong.
>>>
>>>

-- 
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: JavaFX 2.2 WebView support - possible new User Agent?

2013-12-31 Thread Michael Prentice
Here are the Jira issues that I mentioned that affect select elements:

https://javafx-jira.kenai.com/browse/RT-33717
https://javafx-jira.kenai.com/browse/RT-16078

Please vote for them if you think that you may ever consider using the 
JavaFX WebView.

On Monday, December 30, 2013 9:37:52 PM UTC-5, Michael Prentice wrote:
>
> Yep, we've seen those issues. As I mentioned, I've submitted + voted for a 
> number of select element related bugs. I can try to post links to the bugs 
> in Oracle's Jira tomorrow. Mouse wheel is supposed to be implemented in 
> Java 8. All of the others were pushed out of Java 8 and are currently 
> marked as Java 9. But with enough support, they might be patched in Java 8 
> after GA.
>
> I'd like to hear about any other issues that you've run into. So far the 
> lacking select element has been the primary pain point for us. 
>
> We've been able to make alert and confirm dialogs work with a small amount 
> of code beyond their examples. Of course we'll try to use GWT DialogBoxes 
> for most things (which are working well), but Activities and Places relies 
> on the confirm dialog.
>
> Michael Prentice
> GDG Space Coast
>
> On Monday, December 30, 2013 6:59:08 PM UTC-5, Gary Eberhart wrote:
>>
>> Hello Michael,
>>
>> I'm having issues with WebView as well. I'm displaying GWT, Grails and 
>> PrimeFaces pages in a WebView. I've found several serious functional 
>> problems running these web pages in WebView. One of the easiest to explain 
>> are the Dropdowns (select elements) that take all available space on the 
>> screen, and worse yet do not default to the value of the text. For example 
>> I have a drop down for year. The text is 2013 and when you click on the 
>> drop down the resulting list starts at 1913 requiring the user to use the 
>> little scroll button to get back to 2013. It's just one thing after 
>> another. I too have a huge Swing application, 2000 views, that I want to 
>> migrate to Web technologies over the next 10 years.
>>
>> I'd be happy to completely document all of my issues with pictures and 
>> all upon request. Please tell me I'm wrong, but it appears WebView fails to 
>> render web pages correctly that are otherwise rendered flawlessly by the 
>> major browsers?
>>
>>
>>
>>
>>
>> On Tuesday, November 5, 2013 2:44:13 PM UTC-7, Michael Prentice wrote:
>>>
>>> I've been working on a project for the last few months which involves 
>>> creating new screens for our Swing application. We wanted to start moving 
>>> towards a web based interface, but we cannot re-do hundreds of screens in a 
>>> single release/year. So after doing some testing and being satisfied with 
>>> the HTML5 / CSS 2.1 support in the JavaFX 2.2 Webview, we decided that this 
>>> was a possible migration path. I am currently working on the first leg of 
>>> this path and things have gone quite well so far. I chose GWT to build the 
>>> front-end of the app due to our team's experience with WindowBuilder/Swing 
>>> and it's focus on Enterprise web applications. Our application is a complex 
>>> Enterprise app that must be maintained over many years by different people. 
>>>
>>> *Here are some of the results and issues:*
>>>
>>> *Success:*
>>>
>>>- General GWT development has been very productive (learning and 
>>>architecting the app took considerable time).
>>>- Performance running in the WebView has been acceptable on machines 
>>>with decent GPUs which includes all of our client machines (8 MB video 
>>> card 
>>>servers don't do well).
>>>- We have been able to implement communication to/from 
>>>GWT<->JavaScript<->JavaFX<->Swing without any major issues and with very 
>>>minimal code (some simple JSNI and JSON serialization).
>>>- Performance of passing data and opening/closing windows between 
>>>GWT<->...<->Swing has been very good. Note that we aren't passing 
>>>large data sets over 1 MB.
>>>- The new GWT app fits into our Swing application and feels very 
>>>nearly 'just like another screen' due to GWT's out of the box styling.
>>>- GWT's out of the box styling has worked great and impressed our 
>>>customers without us having to put forth much effort.
>>>
>>>
>>> *Issues:*
>>>
>>>- The JavaFX WebView does not quite behave like other browsers. 

Re: JavaFX 2.2 WebView support - possible new User Agent?

2013-12-30 Thread Michael Prentice
Yep, we've seen those issues. As I mentioned, I've submitted + voted for a 
number of select element related bugs. I can try to post links to the bugs 
in Oracle's Jira tomorrow. Mouse wheel is supposed to be implemented in 
Java 8. All of the others were pushed out of Java 8 and are currently 
marked as Java 9. But with enough support, they might be patched in Java 8 
after GA.

I'd like to hear about any other issues that you've run into. So far the 
lacking select element has been the primary pain point for us. 

We've been able to make alert and confirm dialogs work with a small amount 
of code beyond their examples. Of course we'll try to use GWT DialogBoxes 
for most things (which are working well), but Activities and Places relies 
on the confirm dialog.

Michael Prentice
GDG Space Coast

On Monday, December 30, 2013 6:59:08 PM UTC-5, Gary Eberhart wrote:
>
> Hello Michael,
>
> I'm having issues with WebView as well. I'm displaying GWT, Grails and 
> PrimeFaces pages in a WebView. I've found several serious functional 
> problems running these web pages in WebView. One of the easiest to explain 
> are the Dropdowns (select elements) that take all available space on the 
> screen, and worse yet do not default to the value of the text. For example 
> I have a drop down for year. The text is 2013 and when you click on the 
> drop down the resulting list starts at 1913 requiring the user to use the 
> little scroll button to get back to 2013. It's just one thing after 
> another. I too have a huge Swing application, 2000 views, that I want to 
> migrate to Web technologies over the next 10 years.
>
> I'd be happy to completely document all of my issues with pictures and all 
> upon request. Please tell me I'm wrong, but it appears WebView fails to 
> render web pages correctly that are otherwise rendered flawlessly by the 
> major browsers?
>
>
>
>
>
> On Tuesday, November 5, 2013 2:44:13 PM UTC-7, Michael Prentice wrote:
>>
>> I've been working on a project for the last few months which involves 
>> creating new screens for our Swing application. We wanted to start moving 
>> towards a web based interface, but we cannot re-do hundreds of screens in a 
>> single release/year. So after doing some testing and being satisfied with 
>> the HTML5 / CSS 2.1 support in the JavaFX 2.2 Webview, we decided that this 
>> was a possible migration path. I am currently working on the first leg of 
>> this path and things have gone quite well so far. I chose GWT to build the 
>> front-end of the app due to our team's experience with WindowBuilder/Swing 
>> and it's focus on Enterprise web applications. Our application is a complex 
>> Enterprise app that must be maintained over many years by different people. 
>>
>> *Here are some of the results and issues:*
>>
>> *Success:*
>>
>>- General GWT development has been very productive (learning and 
>>architecting the app took considerable time).
>>- Performance running in the WebView has been acceptable on machines 
>>with decent GPUs which includes all of our client machines (8 MB video 
>> card 
>>servers don't do well).
>>- We have been able to implement communication to/from 
>>GWT<->JavaScript<->JavaFX<->Swing without any major issues and with very 
>>minimal code (some simple JSNI and JSON serialization).
>>- Performance of passing data and opening/closing windows between 
>>GWT<->...<->Swing has been very good. Note that we aren't passing 
>>large data sets over 1 MB.
>>- The new GWT app fits into our Swing application and feels very 
>>nearly 'just like another screen' due to GWT's out of the box styling.
>>- GWT's out of the box styling has worked great and impressed our 
>>customers without us having to put forth much effort.
>>
>>
>> *Issues:*
>>
>>- The JavaFX WebView does not quite behave like other browsers. It 
>>uses the Safari (chrome, webkit) user agent. 
>>- Drop downs (ListBox) have rounded edges (unlike Chrome) which we 
>>don't really like.
>>- Drop downs (select elements) are not very usable in the WebView. 
>>They can't be styled. They show as many elements as fit on the window 
>>(extending beyond the borders of the app). Scrolling these drops downs 
>> with 
>>the mouse wheel isn't supported until JavaFX 8. I've opened some bugs for 
>>these issues with Oracle.
>>- Buttons get rounded edges if we override the default GWT style.
>>  

Re: Capturing “Cancel” selection from GWT Activity.mayStop() response

2013-12-30 Thread Michael Prentice
I've detailed my solution here: http://stackoverflow.com/a/20848504/633107

It uses both the AbstractCell#handlesSelection override suggested by Jens 
and the CellPreviewEvent.Handler suggested by Thomas.

Thank you!

Michael Prentice
GDG Space Coast

On Friday, December 27, 2013 3:17:22 PM UTC-5, Michael Prentice wrote:
>
> I'm running into this same situation today when using a DataGrid (each row 
> mapping to a Place). I think that I'll try out the SelectionModel approach 
> and try to set the selection myself on place changes.
>
> I think that Thomas was trying to refer to this StackOverflow question as 
> the one posted doesn't seem to be related:
>
> http://stackoverflow.com/questions/9069525/capturing-cancel-selection-from-gwt-activity-maystop-response/9075170#9075170
>
>
> On Tuesday, January 31, 2012 7:06:59 AM UTC-5, Thomas Broyer wrote:
>>
>> With a CellTable, you can also use a CellPreviewEvent.Handler instead of 
>> a custom cell (or you can use a custom SelectionModel that won't update 
>> from methods called by the CellTable, and you'll update it "manually" using 
>> another specific method, in response to a PlaceChangeEvent).
>>
>> See also (for those who don't read StackOverflow) 
>> http://stackoverflow.com/questions/9074497/request-factory-is-sending-back-the-entire-listentityproxy-even-if-only-one-el<http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F9074497%2Frequest-factory-is-sending-back-the-entire-listentityproxy-even-if-only-one-el&sa=D&sntz=1&usg=AFQjCNFnPXeesA3ZTQhkaQuWc07hzo_r1Q>
>>
>

-- 
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 2.5.1 now available

2013-12-30 Thread Michael Prentice
>From the contributors list, it looks like sometime in January. There are a 
few issues that need to be fixed before release, but people are on vacation 
for the holidays.

On Sunday, December 29, 2013 9:42:39 PM UTC-5, pierre wrote:
>
>
>
> On Monday, November 4, 2013 5:00:56 PM UTC+8, Ed wrote:
>>
>> According to the timeline there will be a RC on 4th of November 
>>
>> Bring it on... ;)
>>
>> Coming to the end of 2013, may we know latest estimate 2.6 final release 
> date? 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: Differences between DevMode and Production mode related to trim()

2013-12-27 Thread Michael Prentice
I guess that I should explain what 'fails' means.

We're looking to add items to the list when both the TrailerID and TripID 
fields are empty.

The failure is that, the trim() checks in Java, trim the 'whitespace' which 
in this case are null characters in the String. So the comparison is 
successful and some items get added to the list.

But in JavaScript those calls to trim appear to be seeing an array of 0's, 
which it is not trimming. So the comparison fails and nothing gets added to 
the list.

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


Differences between DevMode and Production mode related to trim()

2013-12-27 Thread Michael Prentice
OK, we ran into a strange issue today. This is using GWT 2.5.1 with Chrome 
32.0.1700.68 
beta-m (and latest stable). Production mode is hosted by Jetty.

*The following code works fine in DevMode but fails in Production (same 
browser):*

List tempDocksModel = new 
ArrayList();
 for (SchGetInfoForDoorsReq_DoorDto dock: allDocksList)
{ 
if (dock.DoorInfo.getTrailerID().trim().equalsIgnoreCase("") && 
dock.DoorInfo.getTripID().trim().equalsIgnoreCase(""))
{
tempDocksModel.add(dock);
}
}

*Generated Pretty JS:*
tempDocksModel = new ArrayList_0;
for (dock$iterator = new 
AbstractList$IteratorImpl_0(this$static.allDocksList); dock$iterator.i < 
dock$iterator.this$0_0.size_1(); ) {
dock = dynamicCast($next_4(dock$iterator), 
Q$SchGetInfoForDoorsReq_DoorDto);
$equalsIgnoreCase($trim(valueOf_4(dock.DoorInfo.TrailerID)), '') && 
$equalsIgnoreCase($trim(valueOf_4(dock.DoorInfo.TripID)), '') && 
(setCheck(tempDocksModel.array, tempDocksModel.size_0++, dock), true);
}

List tempDocksModel = new 
ArrayList();
 for (SchGetInfoForDoorsReq_DoorDto dock: allDocksList)
{ 
if (dock.DoorInfo.getTrailerID().trim().isEmpty() && 
dock.DoorInfo.getTripID().trim().isEmpty())
{
tempDocksModel.add(dock);
}
}

*Generated Pretty JS:*
tempDocksModel = new ArrayList_0;
for (dock$iterator = new 
AbstractList$IteratorImpl_0(this$static.allDocksList); dock$iterator.i < 
dock$iterator.this$0_0.size_1(); ) {
dock = dynamicCast($next_4(dock$iterator), 
Q$SchGetInfoForDoorsReq_DoorDto);
!$trim(valueOf_4(dock.DoorInfo.TrailerID)).length && 
!$trim(valueOf_4(dock.DoorInfo.TripID)).length && 
(setCheck(tempDocksModel.array, tempDocksModel.size_0++, dock), true);
}

*The fix was to do something like the following (not quite equivalent 
check):*

List tempDocksModel 
= new ArrayList();
 for (SchGetInfoForDoorsReq_DoorDto dock: allDocksList)
{ 
if (dock.DoorInfo.getTrailerID().charAt(0) == '\0' && 
dock.DoorInfo.getTripID().charAt(0) == '\0')
{
tempDocksModel.add(dock);
}
}

*Generated Pretty JS:*
tempDocksModel = new ArrayList_0;
for (dock$iterator = new 
AbstractList$IteratorImpl_0(this$static.allDocksList); dock$iterator.i < 
dock$iterator.this$0_0.size_1(); ) {
dock = dynamicCast($next_4(dock$iterator), 
Q$SchGetInfoForDoorsReq_DoorDto);
valueOf_4(dock.DoorInfo.TrailerID).charCodeAt(0) == 0 && 
valueOf_4(dock.DoorInfo.TripID).charCodeAt(0) == 0 && 
(setCheck(tempDocksModel.array, tempDocksModel.size_0++, dock), true);
}


According to http://www.w3schools.com/jsref/jsref_trim_string.asp , The 
trim() method is supported in all major browsers.

StackOverflow goes into a bit more detail here 
http://stackoverflow.com/questions/498970/how-do-i-trim-a-string-in-javascript:
"String.trim() was added natively in JavaScript 1.8.1 / ECMAScript 5, 
supported in: Firefox 3.5+, Chrome/Safari 5+, IE9+ (in Standards mode 
only!) see scunliffe's answer: stackoverflow.com/a/8522376/8432 –  
wweicker<http://stackoverflow.com/users/8432/wweicker>
"


We've noticed some other cases in our code lately where we used trim() and 
it works fine in DevMode, but then later in production mode we end up 
seeing lots of nulls and extra spaces at the end of things like tokens.

Is this a known issue? Is this a problem with Chrome or GWT or are we just 
'doing it wrong'?

Thank you,

Michael Prentice
GDG Space Coast

-- 
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: Capturing “Cancel” selection from GWT Activity.mayStop() response

2013-12-27 Thread Michael Prentice
I'm running into this same situation today when using a DataGrid (each row 
mapping to a Place). I think that I'll try out the SelectionModel approach 
and try to set the selection myself on place changes.

I think that Thomas was trying to refer to this StackOverflow question as 
the one posted doesn't seem to be related:
http://stackoverflow.com/questions/9069525/capturing-cancel-selection-from-gwt-activity-maystop-response/9075170#9075170


On Tuesday, January 31, 2012 7:06:59 AM UTC-5, Thomas Broyer wrote:
>
> With a CellTable, you can also use a CellPreviewEvent.Handler instead of a 
> custom cell (or you can use a custom SelectionModel that won't update from 
> methods called by the CellTable, and you'll update it "manually" using 
> another specific method, in response to a PlaceChangeEvent).
>
> See also (for those who don't read StackOverflow) 
> http://stackoverflow.com/questions/9074497/request-factory-is-sending-back-the-entire-listentityproxy-even-if-only-one-el
>

-- 
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 Application Hosting in Linux with Apache tomcat

2013-12-02 Thread Michael Prentice
Looks like a Tomcat configuration issue and not a GWT problem. There are 
lots of discussions out there about how to build and deploy your 
application for production. I recommend searching this group and/or 
Googling something like 'GWT war production deploy'

On Friday, November 29, 2013 11:48:42 PM UTC-5, siva kumar wrote:
>
> Hi
>
> I am new to gwt .. i developed the gwt webapplication with mysql. In local 
> machine i deployed the application and compile into war  and rename the 
> file into tomcat
> web apps folder its working fine in local but while deploy the files into 
> hosting server i get this kind of Exception.but jsp page is working fine on 
> hosting server ... 
>
>
> The Requested URL /helloMVP/test was not found on this server .
> Apache/2.2.25(Unix)mod_ssl/2.2.25 openSSL/1.0.0-fips 
>  mod_jk/1.2.37 mod_bwlimited/1.4 server at healthbis.net port 80
> The log error shows hellomvp/test file does not exist
>
> Any help would be appreciated
>
>
> Regards
> Harsha Infotech...
>

-- 
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: Need some help, about Google web button.

2013-12-02 Thread Michael Prentice
Seems like it is just a styled DialogBox or something similar that is 
triggered by a button.

Are you sure that this question is related to GWT?

On Monday, December 2, 2013 8:15:23 AM UTC-5, adart...@gmail.com wrote:
>
> Good day!
>
> I am a young web designer,now study & currently working on a site on CSS3, 
> Html5, javascript technology.
>
> In Google.com was changed design, so that it now appeared context menu 
> (button).
> I, also,  want to put such (similar) button on my web site.
> Please, need your help with the code. Or at least, tell me the name of 
> this button (the term).
> Because, I clambered all "sites - tutorials" in the "menu, drop down, 
> click button" is nothing like that.
>
> I enclose an image.
> Thank you.
>

-- 
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 Starter Project won't build - "compiler level does not match..."

2013-11-14 Thread Michael Prentice
Wow that is really odd that it defaulted to 1.4!

If you search this group or Google you can find a way to reduce the 
permutations for development, but in most cases you don't need to do that 
kind of full compile very often. You can just run the project in DevMode 
and not need to re-compile when you make changes.

Good luck!

On Thursday, November 14, 2013 6:44:16 PM UTC-5, Robert Yodlowski wrote:
>
> Hal E. Louya! - I went to Properties->Project Facets and changed it from 
> 1.4 to 1.7 as you said and it compiled 6 permutations without errors. It 
> took a very long time and the way the window went blank for a long time I 
> thought I might have broken Eclipse.
>
> I looked at the Runtimes tab. Neither App Engine nor Java was checked but 
> it did show jdk1.7
>
> Now, I've got to see If the demo app actually runs. I'm not confident but 
> maybe I'll be lucky.
>
> Thanks again for the help, Michael.
> ...Bob 
>

-- 
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 Starter Project won't build - "compiler level does not match..."

2013-11-14 Thread Michael Prentice
Are you using Maven? I don't know why else your project would have Project 
Facets enabled. Doh, I just tested this and I also had my starter project 
created with a custom Project Facet. My real GWT project doesn't use 
Project Facets.

Right click on your project and go to Properties, then select Project 
Facets. My starter project has only Java checked and defaulted to 1.6. Try 
changing this to 1.7? You may also want to check your jdk1.7.0 on the 
Runtimes tab under Project Facets.


On Thursday, November 14, 2013 4:56:29 PM UTC-5, Robert Yodlowski wrote:
>
> Michael, thank you for your help.
>
> >>Are you building from the GDT Tools Icon -> GWT Compile Project... with 
> your project selected? or right clicking on your project and going to 
> Google->GWT Compile? or some other way?
>
> I have tried both ways and the results are still the same.
>
> >>When you go to Window->Preferences->Java->Installed JREs: Do you see 
> your jdk1.7.0 and is it checked?
>
> When I first looked, it had jre1.7 selected. I changed it to have jdk1.7 
> selected. It made no difference. I still got the same errors.
>
> ...Bob
>
>

-- 
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 Starter Project won't build - "compiler level does not match..."

2013-11-14 Thread Michael Prentice
No, I just did what you described with Java 7 and everything worked fine. 

It doesn't generate an ANT (build.xml) file so you can ignore some of what 
I said. 

Are you building from the GDT Tools Icon -> GWT Compile Project... with 
your project selected? or right clicking on your project and going to 
Google->GWT Compile? or some other way?

When you go to Window->Preferences->Java->Installed JREs: Do you see your 
jdk1.7.0 and is it checked?


On Thursday, November 14, 2013 3:15:58 PM UTC-5, Robert Yodlowski wrote:
>
> >>Which version of GWT are you using?   
>  I am using gwt-2.5.1.zip (downloaded it yesterday.)
>  
> >>How did you create the starter project?  
>  I created the starter project by  Eclipse->File->New->Web Application 
> Project  and then filling in the blanks as shown in step 1 at 
> http://www.gwtproject.org/doc/latest/tutorial/gettingstarted.html 
>
> >>But I do have to run my actual build with Java 6 (Eclipse Run 
> Configurations for build.xml and on the JRE tab select 'Separate JRE' 
> pointing it to jdk1.6.0) and even target >>it for 1.5 (via source="1.5" 
> target="1.5" on the javac target in the build.xml).
> Are you saying that I need to use Java 6 instead of 7? What you say here 
> has me really puzzled.
>
> >>Some of the .jars that I pull in are built with Java 7 and that hasn't 
> caused me any issues. But I've had to actually build with Java 6 so far.
> Like I said - "really puzzled".
>
> ...Bob
>
>>
>>

-- 
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 Starter Project won't build - "compiler level does not match..."

2013-11-14 Thread Michael Prentice
Which version of GWT are you using?

I know that in GWT 2.5.1, Java 7 is supported. I'm also running Eclipse 
Kepler (launched with Java 7 SDK x64)

But I do have to run my actual build with Java 6 (Eclipse Run 
Configurations for build.xml and on the JRE tab select 'Separate JRE' 
pointing it to jdk1.6.0) and even target it for 1.5 (via source="1.5" 
target="1.5" on the javac target in the build.xml).

Some of the .jars that I pull in are built with Java 7 and that hasn't 
caused me any issues. But I've had to actually build with Java 6 so far.

How did you create the starter project?


On Wednesday, November 13, 2013 11:35:03 PM UTC-5, Robert Yodlowski wrote:
>
> I am using Eclipse Kepler for JavaSE and have installed (only) JDK1.7 and 
> JRE1.7 and the latest GWT plugin for Eclipse - on Win7.
>
> When I try to build I get error messages saying: "the compiler level does 
> not match the version of the installed Java project facet."  I've tried 
> using both the JDK and JRE to run with but the results have been the same. 
> I think one error message I saw at some point was complaining that the 
> compiler level must be 1.5 or greater. 
>
> After searching this group's forum and finding nothing applicable, I am 
> completely baffled. Can anyone help?
> ...Bob
>
>

-- 
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: Best practice for injecting environment-specific settings

2013-11-14 Thread Michael Prentice
I looked at doing this with a dynamic host page, and still might 
re-consider it should I get some spare time (unlikely). But we ended up 
just using a custom servlet to get our data. In our case, we need the 
server to initialize the data and constants before sending them to the 
client. We fire this off in the constructor of our primary Presenter, when 
it comes back it fires an event, the presenter listens for that event 
before loading up the page since it depends on those constants.

If you just need static data loaded from the server and it doesn't need to 
be initialized or include anything dynamically generated on the server, 
then there may be a better way like the DataResource you mentioned or Jens' 
idea of integrating the resource file copying in your build.

On Tuesday, November 12, 2013 5:08:50 PM UTC-5, Geoffrey Arnold wrote:
>
> Thanks Thomas.  `Dictionary` is almost exactly what we need, however our 
> GWT JavaScript is being loaded in an anonymous function so the variables 
> aren't being set at `Window` scope.  And unfortunately we don't have the 
> ability to change this because a customer is loading our script.  Other 
> thoughts?
>
>
> On Tue, Nov 12, 2013 at 3:45 AM, Thomas Broyer 
> > wrote:
>
>> Use a "dynamic host page": 
>> http://www.gwtproject.org/articles/dynamic_host_page.html
>>
>> On Monday, November 11, 2013 7:47:22 PM UTC+1, geoffre...@gmail.comwrote:
>>>
>>> Hello,
>>>
>>> What is the best practice for injecting/configuring environment-specific 
>>> settings inside GWT-generated JavaScript?  For example, we have a series of 
>>> JSONP services hosted across a series of servers, and the hostnames/ports 
>>> of those servers are different across our development/test/production 
>>> environments.  My guess is `DataResource` is the preferred method, however 
>>> adding another round-trip to the server seems like a bit of overkill.  Is 
>>> there another way?
>>>
>>> Thanks in advance,
>>> Geoff.
>>>
>>

-- 
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: JavaFX 2.2 WebView support - possible new User Agent?

2013-11-07 Thread Michael Prentice
Yep, it does appear that the WebView is not nearly as limited as the 
standard JavaFX CSS support.

Apparently the document that I linked (the only I could find about CSS 
support in JavaFX) only applies to normal JavaFX development and not to the 
capabilities of the WebView itself (based on webkit).

It does appear that padding-left and other related layout properties work 
just fine in the JavaFX WebView. There was something stopping my WebView 
from loading up all of the CSS (unknown reason). Thus the last few values 
(which I needed) weren't available for styling the document.

I did some major cleaning and rebuilding of my project as well as wiping of 
all temp and cache files and this issue 'went away on its own'.

I can see the padding applied properly in the WebView now and I can see it 
applied in FireBug Lite:

padding-left22px

I had verified that the rule was in my app.css in the .war file, so GWT was 
generating and bundling things properly. There appears to have been an 
issue somewhere on the JavaFX WebView side.

Thank you for your help!
Michael Prentice
GDG Space Coast
http://gdgspacecoast.org

On Wednesday, November 6, 2013 7:14:38 PM UTC-5, Oliver Krylow wrote:
>
> So, now that I have read through the docs you linked, I suspect you are 
> confusing different applications of CSS in the java fx technology stack. 
>
> The kind of CSS you are talking and linked about is used to style java fx 
> components themselves, meaning objects in the scene graph. This version of 
> CSS is based on CSS2.1,  as you cited, with slight modifications (for 
> example the prefixed rules you mentioned). 
>
> The CSS, that gets applied to the DOM inside the Webview, is standard CSS 
> and since the Webview is based on WebKit, I suspect it parses the '-webkit' 
> prefix, if any (haven't tested this). 
>
> Having said this, I have no idea why your initial tries with the 
> unprefixed padding rules did not apply. You should probably file this as a 
> bug. 
>
> Correct me if I misunderstood the java fx docs. 
> On Nov 6, 2013 8:25 PM, "Chak Lai" wrote:
>
>> Just wondering how would the JavaFX WebView if you change the style from 
>> GWT, instead from CSS file. For instance:
>>
>> public static void setFxPadding(com.google.gwt.user.client.Element 
>> element) {
>>   element.getStyle().setProperty("FxPadding", "0px 0px 0px 22px");
>> }
>>
>

-- 
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: JavaFX 2.2 WebView support - possible new User Agent?

2013-11-06 Thread Michael Prentice
I've posted this question to StackOverflow here: 
http://stackoverflow.com/questions/19816129/how-do-i-left-pad-a-div-in-a-javafx-webview

On Tuesday, November 5, 2013 6:40:08 PM UTC-5, Michael Prentice wrote:
>
> Thank you for the idea about escaping the first dash. It made the CSS 
> editor in GWT Designer a bit happier (no longer red). But it didn't end up 
> fixing the issue. I tried the following without any luck as well (all 
> worked great in Chrome):
>
> .foo-bar-values {
> padding: 0px 0px 0px 22px;
> }
>
> .foo-bar-values {
> margin: 0px 0px 0px 22px;
> }
>
> .foo-bar-values {
> margin-left: 22px;
> }
>
> .foo-bar-values {
> padding-left: 22px;
> \-fx-label-padding: 0px 0px 0px 22px;
> }
>
> .foo-bar-values {
> padding-left: 22px;
> \-fx-padding: 0px 0px 0px 22px;
> }
>
> As far as migration to JavaFX, we did not see a smooth migration path 
> there. We can't run our Swing screens in a browser and we can't convert 
> everything to JavaFX in a single release. We also don't want to have half 
> of our app run in the browser and half in a Swing application. We don't use 
> Java WebStart for deployment and we aren't able to change the installation 
> of our client to require users to browse to a certain site to install the 
> application. It is pushed out Enterprise wide via Enterprise level 
> installers.
>
> Using web technologies (GWT) hosted in a JavaFX WebView allows for us to 
> replace a screen at a time (or more) within our current Swing application 
> without needing to completely change the deployment/installation strategy. 
> It also minimizes the end user training with each release. Eventually (2-3 
> years), we will be in a situation where we can replace the last of the 
> Swing screens and go to a completely web based solution. We are hoping that 
> Chromium runtime will be available by then so that we can switch straight 
> to it (installed as part of our app and not by the user or IT) rather than 
> having to depend on older versions of IE installed throughout the 
> Enterprise.
>
> *Some other info about JavaFX WebView:*
>
>- In order to handle Confirmation and Alert dialogs, you must 
>implement handlers for these in your WebEngine JavaFX code. It isn't hard 
>and it is quite customizable, but it doesn't come out of the box.
>- Deploying and testing within the WebView is quite a pain. FireBug 
>Lite provides for some limited debugging, but with GWT we don't get 
>anything useful on the Script tab (Access to restricted URI denied.) 
>So debugging has to be done in DevMode in Chrome or in the WebView via 
>alert() dialogs (like debugging with printf's ages ago). This is minimized 
>by the fact that so far our only code that would need to be debugged in 
> the 
>WebView is the navigation code that talks between GWT and Swing via JSNI 
>and JavaFX.
>
>
> Michael Prentice
> GDG Space Coast
> http://gdgspacecoast.org
>
> On Tuesday, November 5, 2013 6:06:53 PM UTC-5, Oliver Krylow wrote:
>>
>> If the CSS snippet you have shown happens to reside in a uibinder file, 
>> try escaping prefixed rules with a \ .
>>
>> \-fx-label-padding ...
>>
>> The CSS parser of gwt used to have trouble with those .
>>
>> Thank you for reporting your experience with the javafx webview. It has 
>> been an interesting read.
>>
>> Could you explain your decision to migrate to web technologies instead of 
>> migrating to javafx and deploying it in the browser 
>> http://docs.oracle.com/javafx/2/deployment/deployment_toolkit.htm ?
>> On Nov 5, 2013 10:44 PM, "Michael Prentice"  wrote:
>>
>>> I've been working on a project for the last few months which involves 
>>> creating new screens for our Swing application. We wanted to start moving 
>>> towards a web based interface, but we cannot re-do hundreds of screens in a 
>>> single release/year. So after doing some testing and being satisfied with 
>>> the HTML5 / CSS 2.1 support in the JavaFX 2.2 Webview, we decided that this 
>>> was a possible migration path. I am currently working on the first leg of 
>>> this path and things have gone quite well so far. I chose GWT to build the 
>>> front-end of the app due to our team's experience with WindowBuilder/Swing 
>>> and it's focus on Enterprise web applications. Our application is a complex 
>>> Enterprise app that must be maintained over many years by different people. 
>>>
>>> *Here are some of the results and issues:*
>>>
>>> *Success:*
>>>
>>&g

Re: JavaFX 2.2 WebView support - possible new User Agent?

2013-11-05 Thread Michael Prentice
Thank you for the idea about escaping the first dash. It made the CSS 
editor in GWT Designer a bit happier (no longer red). But it didn't end up 
fixing the issue. I tried the following without any luck as well (all 
worked great in Chrome):

.foo-bar-values {
padding: 0px 0px 0px 22px;
}

.foo-bar-values {
margin: 0px 0px 0px 22px;
}

.foo-bar-values {
margin-left: 22px;
}

.foo-bar-values {
padding-left: 22px;
\-fx-label-padding: 0px 0px 0px 22px;
}

.foo-bar-values {
padding-left: 22px;
\-fx-padding: 0px 0px 0px 22px;
}

As far as migration to JavaFX, we did not see a smooth migration path 
there. We can't run our Swing screens in a browser and we can't convert 
everything to JavaFX in a single release. We also don't want to have half 
of our app run in the browser and half in a Swing application. We don't use 
Java WebStart for deployment and we aren't able to change the installation 
of our client to require users to browse to a certain site to install the 
application. It is pushed out Enterprise wide via Enterprise level 
installers.

Using web technologies (GWT) hosted in a JavaFX WebView allows for us to 
replace a screen at a time (or more) within our current Swing application 
without needing to completely change the deployment/installation strategy. 
It also minimizes the end user training with each release. Eventually (2-3 
years), we will be in a situation where we can replace the last of the 
Swing screens and go to a completely web based solution. We are hoping that 
Chromium runtime will be available by then so that we can switch straight 
to it (installed as part of our app and not by the user or IT) rather than 
having to depend on older versions of IE installed throughout the 
Enterprise.

*Some other info about JavaFX WebView:*

   - In order to handle Confirmation and Alert dialogs, you must implement 
   handlers for these in your WebEngine JavaFX code. It isn't hard and it is 
   quite customizable, but it doesn't come out of the box.
   - Deploying and testing within the WebView is quite a pain. FireBug Lite 
   provides for some limited debugging, but with GWT we don't get anything 
   useful on the Script tab (Access to restricted URI denied.) So debugging 
   has to be done in DevMode in Chrome or in the WebView via alert() dialogs 
   (like debugging with printf's ages ago). This is minimized by the fact that 
   so far our only code that would need to be debugged in the WebView is the 
   navigation code that talks between GWT and Swing via JSNI and JavaFX.


Michael Prentice
GDG Space Coast
http://gdgspacecoast.org

On Tuesday, November 5, 2013 6:06:53 PM UTC-5, Oliver Krylow wrote:
>
> If the CSS snippet you have shown happens to reside in a uibinder file, 
> try escaping prefixed rules with a \ .
>
> \-fx-label-padding ...
>
> The CSS parser of gwt used to have trouble with those .
>
> Thank you for reporting your experience with the javafx webview. It has 
> been an interesting read.
>
> Could you explain your decision to migrate to web technologies instead of 
> migrating to javafx and deploying it in the browser 
> http://docs.oracle.com/javafx/2/deployment/deployment_toolkit.htm ?
> On Nov 5, 2013 10:44 PM, "Michael Prentice" > 
> wrote:
>
>> I've been working on a project for the last few months which involves 
>> creating new screens for our Swing application. We wanted to start moving 
>> towards a web based interface, but we cannot re-do hundreds of screens in a 
>> single release/year. So after doing some testing and being satisfied with 
>> the HTML5 / CSS 2.1 support in the JavaFX 2.2 Webview, we decided that this 
>> was a possible migration path. I am currently working on the first leg of 
>> this path and things have gone quite well so far. I chose GWT to build the 
>> front-end of the app due to our team's experience with WindowBuilder/Swing 
>> and it's focus on Enterprise web applications. Our application is a complex 
>> Enterprise app that must be maintained over many years by different people. 
>>
>> *Here are some of the results and issues:*
>>
>> *Success:*
>>
>>- General GWT development has been very productive (learning and 
>>architecting the app took considerable time). 
>>- Performance running in the WebView has been acceptable on machines 
>>with decent GPUs which includes all of our client machines (8 MB video 
>> card 
>>servers don't do well).
>>- We have been able to implement communication to/from 
>>GWT<->JavaScript<->JavaFX<->Swing without any major issues and with very 
>>minimal code (some simple JSNI and JSON serialization). 
>>- Performance of passing data and opening/closing windows between 
>>

JavaFX 2.2 WebView support - possible new User Agent?

2013-11-05 Thread Michael Prentice
I've been working on a project for the last few months which involves 
creating new screens for our Swing application. We wanted to start moving 
towards a web based interface, but we cannot re-do hundreds of screens in a 
single release/year. So after doing some testing and being satisfied with 
the HTML5 / CSS 2.1 support in the JavaFX 2.2 Webview, we decided that this 
was a possible migration path. I am currently working on the first leg of 
this path and things have gone quite well so far. I chose GWT to build the 
front-end of the app due to our team's experience with WindowBuilder/Swing 
and it's focus on Enterprise web applications. Our application is a complex 
Enterprise app that must be maintained over many years by different people. 

*Here are some of the results and issues:*

*Success:*

   - General GWT development has been very productive (learning and 
   architecting the app took considerable time).
   - Performance running in the WebView has been acceptable on machines 
   with decent GPUs which includes all of our client machines (8 MB video card 
   servers don't do well).
   - We have been able to implement communication to/from 
   GWT<->JavaScript<->JavaFX<->Swing without any major issues and with very 
   minimal code (some simple JSNI and JSON serialization).
   - Performance of passing data and opening/closing windows between 
   GWT<->...<->Swing has been very good. Note that we aren't passing 
   large data sets over 1 MB.
   - The new GWT app fits into our Swing application and feels very nearly 
   'just like another screen' due to GWT's out of the box styling.
   - GWT's out of the box styling has worked great and impressed our 
   customers without us having to put forth much effort.


*Issues:*

   - The JavaFX WebView does not quite behave like other browsers. It uses 
   the Safari (chrome, webkit) user agent. 
   - Drop downs (ListBox) have rounded edges (unlike Chrome) which we don't 
   really like.
   - Drop downs (select elements) are not very usable in the WebView. They 
   can't be styled. They show as many elements as fit on the window (extending 
   beyond the borders of the app). Scrolling these drops downs with the mouse 
   wheel isn't supported until JavaFX 8. I've opened some bugs for these 
   issues with Oracle.
   - Buttons get rounded edges if we override the default GWT style.
   - Alignment between Chrome and the WebView does not match up for some 
   elements. This causes a number of layout issues.
   - JavaFX WebView does not support CSS3 and has some of its own rules with 
   vendor extensions of "-fx-". This includes things like "JavaFX CSS does not 
   support CSS layout properties such as *float*, *position*, *overflow*, 
   and *width*."
   - "CSS *padding *and *margins *properties are supported on some" 
   objects. I tried to use a "padding-left: 22px" today which worked fine in 
   Chrome but had no effect on the same Label in the WebView.
   - Asking Oracle for fixes or enhancements appears to involve a 
   significantly long wait, even if quickly approved, you may not see your 
   issue resolved for 6-18+ months. It seems to be possible to fix issues 
   yourself via the OpenJDK project, but it appears to require significant 
   time and effort just to get setup/approved to do this.

Now so far none of these issues have been a complete show stopper. But 
after running into the padding issue today and researching, it seemed like 
this might be the time to at least attempt to request (I know it is likely 
not interesting or high priority to most people) a user agent for the 
JavaFX WebView since it appears to need special handling to work properly 
(which appears to be one main goals of GWT - to eliminate the troubles of 
supporting multiple browsers).

I found out that JavaFX has their own CSS rules including a special "
-fx-label-padding" rule. There does not appear to be anything like 
padding-left or padding-top, so you need to specify all 4 ("if a set of 
four padding values is specified, they are used for the top, right, bottom, 
and left edges of the region, in that order."). I added this to my existing 
rule which already has the "padding-left: 22px" rule. 

.foo-bar-values {
padding-left: 22px;
-fx-label-padding: 0px 0px 0px 22px;
}

Chrome handled things fine in DevMode (ignored the unknown rule with a 
warning). But when I loaded up the WebView version, it had no effect. I 
thought that this was quite odd, so I debugged it with FireBug Lite and 
apparently that specific CSS rule isn't there in the CSS on the page. I 
checked my .css file in the .WAR and it is there. Strange...

For more information on how JavaFX WebView handles CSS and defines its own 
CSS rules see here: 
http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html

Has anyone else l

Re: Gwt-ext Designer Netbeans

2013-10-11 Thread Michael Prentice
Not to my knowledge.

On Friday, October 11, 2013 5:30:06 PM UTC-4, nithin wrote:
>
> Is the Designer for netbeans now?
>
> On Friday, February 20, 2009 6:29:44 AM UTC-5, heru wrote:
>>
>> thank you for your reply
>
>

-- 
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: Verificar dados existentes no bando de dados

2013-10-02 Thread Michael Prentice
If you are just starting out, you will probably want to use a GWT-RPC to 
the backend to create the new account. It should return an error message or 
code that indicates that a user with that email address already exists. 
Then in the onFailure() method of your AsyncCallback handler, call a method 
that updates the display with the error message. 

Much of this is already in place in the initial GWT starter application. 
You just need to write the database pieces and the error handling.


On Wednesday, October 2, 2013 9:54:36 AM UTC-4, Tata wrote:
>
> Olá galera, estou desenvolvendo meu primeiro projeito usando GWT, é o 
> seguinte .. 
> Já estou com a tela de login e senha criadas, e a tela para cadastro de 
> novos cliente, mas eu preciso que o banco de dados avise se houver um outro 
> usuário com uma informação igual(no meu caso eu quero que seja o email) já 
> dei uma procurada mas ainda não consegui :/
> Se algum de vocês puderem me ajudar ficarei muito grata :D
> Valeu ^^
>

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

2013-09-24 Thread Michael Prentice
Those files are caches for making the compilation faster. You can remove 
them any time you would like. Disabling the generation of these files will 
slow down your compilation (especially in DevMode afaik).

On Tuesday, September 24, 2013 9:35:11 AM UTC-4, al1975e wrote:
>
> In the folder \ build \ gwt-unitCache after compiling accumulate files 
> like gwt-unitCache . Because of this compilation is a long one. How to 
> make, what would these files are not created?
>

-- 
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: Where i may to download update site archive for GWT Designer?

2013-09-10 Thread Michael Prentice
http://dl.google.com/eclipse/plugin/4.2
http://dl.google.com/eclipse/plugin/4.3

On Tuesday, September 10, 2013 3:53:31 PM UTC-4, John Murphy wrote:
>
> That page gives an XML error on all the P2 sites.
>
> More to the point, I am trying to get the full version of GWT Designer as 
> I have installed the lightweight version that comes with the Eclipse PDE. 
> That version gives no access to the GWT Designer wizard that I want. Where 
> is the GWT Designer full version to be found?
>
>
>
> On Monday, November 21, 2011 2:40:10 PM UTC-8, Eric Clayberg (Google) 
> wrote:
>>
>> Try these:
>>
>> http://code.google.com/p/gwt-designer/downloads/list
>>
>

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

2013-08-26 Thread Michael Prentice
*GWT-Ext has been superseded by Smart GWT. Smart GWT is an open source 
(LGPL), GWT-based framework that allows you to not only utilize its 
comprehensive widget library for your application UI, but also tie these 
widgets in with your server-side for data management.* - From the GWT-Ext 
website.

Using a retired framework might be the issue? 

Using pure GWT resolved the issues? 

I would say to check with the team behind GWT-Ext if that was the case, but 
it looks like there is no such team anymore. So I would suggest choosing 
another widget framework or continuing with pure GWT and making your own 
widgets.


On Monday, August 26, 2013 4:08:02 PM UTC-4, Marcos wrote:
>
> I understand, but I had many problems of performance and high memory 
> consumption, especially in Internet Explorer when used GWT-Ext and then the 
> GWT-Ext. After four hours of work internet explorer consumed 1 GB. 
> Consistently displayed the message "Do you want to stop running the script?"
>
> So I decided to use GWT pure.
>
> Em quinta-feira, 22 de agosto de 2013 13h17min53s UTC-3, Marcos escreveu:
>>
>>
>> Hi,
>>
>> Is there any roadmap / plan to the next versions of GWT ?
>>
>> Thanks
>>
>> Mussi
>>
>

-- 
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 do I avoid this issue?

2013-08-26 Thread Michael Prentice
I'm not sure how to avoid it but I've starred it. Sounds like a pretty 
nasty issue.

On Wednesday, August 21, 2013 4:21:31 PM UTC-4, Joel Cairney wrote:
>
> I'm working on a large GWT application, and on chrome for android we're 
> running into these issues:
>
> https://code.google.com/p/chromium/issues/detail?id=258044
>
> The HTML and CSS patterns that create this issue are commonly found in GWT 
> widgets, or are easily created by combining widgets.  I haven't seen any 
> movement on this issue on the Chromium list, and don't have confidence that 
> their rendering will get fixed any time soon.  Can anyone recommend a way 
> to work around these issues?
>

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

2013-08-26 Thread Michael Prentice
That's a great video that is 'mostly' correct about everything (based on 
gwt-contrib and gwt-steering discussions). That information really needs to 
make its way to gwtproject.org.

On Thursday, August 22, 2013 12:20:37 PM UTC-4, Thomas Broyer wrote:
>
> https://developers.google.com/events/io/sessions/327833110 ?
>
> On Thursday, August 22, 2013 6:17:53 PM UTC+2, Marcos wrote:
>>
>>
>> Hi,
>>
>> Is there any roadmap / plan to the next versions of GWT ?
>>
>> Thanks
>>
>> Mussi
>>
>

-- 
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-google-apis library

2013-08-26 Thread Michael Prentice
That sounds like a great idea to me unless there is a new library that 
someone knows about to handle this. Hopefully someone on the SC sees this.

On Thursday, August 22, 2013 10:43:52 AM UTC-4, Ümit Seren wrote:
>
> This question  should be posted on the gwt-google-apis forum but I am not 
> sure if anyone actually checks it (last post is from last year).  
>
> I have been using the gwt-google-apis library (specifically 
> gwt-visualisations) extensively. 
> However there hasn't been any update to the library for a long time. 
> In the meantime most of the JS libraries (gwt-charts, etc) have been 
> evolving but the gwt wrappers haven't been updated to support new features. 
> So I ended up copying the src and modifying it myself, but that's probably 
> not the ideal solution (there are also a couple of other open source 
> repository on github/google-code). 
>
> Are there any plans by the SC members for handling this situation? 
> I could imagine it should be possible to move it over to github and open 
> it contributions by the community. 
>
>
>

-- 
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: Can we use GWT code with IndexedDB to provide offline support in browsers

2013-08-26 Thread Michael Prentice
Have you looked at Elemental? 
http://www.gwtproject.org/articles/elemental.html

It is 'experimental' but it may be helpful for what you are doing. 

On Friday, August 23, 2013 3:35:50 AM UTC-4, NITIN PANDEY wrote:
>
> Hi,
> I have an issue is that I have to provide offline support using my GWT 
> code on browsers. Currently I have implemented it on google chrome via 
> WebSql. But Websql is not supported on firefox and IE so I need to migrate 
> by IndexedDB. Is there any library available for the same?? Please 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/groups/opt_out.


Re: issue with tomcat server

2013-08-21 Thread Michael Prentice
http://stackoverflow.com/questions/8446704/memory-allocation-in-tomcat

On Wednesday, August 21, 2013 11:41:02 AM UTC-4, fedex wrote:
>
> how to change it? any idea?
>
> On Wednesday, August 21, 2013 9:10:22 AM UTC-5, Michael Joyner wrote:
>>
>> You need to change how much memory java is allowed to allocate for the 
>> tomcat process. The default is rather small.
>>
>>
>> On Tue, Aug 20, 2013 at 4:56 PM, fedex  wrote:
>>
>>> For my application I am writing 1 million records to the csv file. It 
>>> works fine when I run in dev mode but when I deploy the application on 
>>> tomcat it throws java heap memory issue? why?
>>>
>>
>>

-- 
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: EventBus problem

2013-08-21 Thread Michael Prentice
I can't see in the code where you initialize your eventBus. I also can't 
see where you set it on your presenter.

I know that Eric K was saying that he doesn't fire events in his JUnit 
tests, instead he just calls the handler directly on the presenter and 
passes in the event.

On Tuesday, August 20, 2013 5:13:47 PM UTC-4, df wrote:
>
> Hello 
> I want to initialize my widget by data. I sent by eventbus to them event 
> indicating that there is new object. I tried to work with eventbus in 3 
> ways 
>
> 1:
> for(Unit unit : createTestData()){
> eventBus.fireEvent(new ScenarioElementEvent(new 
> UnitStoreElement(unit, null), ScenarioElementEventType.ADDED, 
> ScenarioElementEventObjectType.GEO_OBJECT));
> }
>
> 2:  
> Timer t = new Timer() {
>  @Override
> public void run() {
> List units = createTestData();
> Console.log(Level.INFO,"Test data have " + units.size());
> for(int i = 0; i < units.size(); i ++){
> Unit unit = units.get(i);
> Console.log(Level.INFO,"Fire event " + i + " " + unit.getDescription());
> eventBus.fireEvent(new ScenarioElementEvent(new 
> UnitStoreElement(unit, null), ScenarioElementEventType.ADDED, 
> ScenarioElementEventObjectType.GEO_OBJECT));
> }
> }
> };
> t.schedule(1);
>
>
> 3:
> List units = createTestData();
> for(int i = 0; i < units.size(); i ++){
> final Unit unit = units.get(i);
> Console.log(Level.INFO,"Fire event " + i + " " + unit.getDescription());
> Timer t = new Timer(){
>
> @Override
> public void run() {
> eventBus.fireEvent(new ScenarioElementEvent(new 
> UnitStoreElement(unit, null), ScenarioElementEventType.ADDED, 
> ScenarioElementEventObjectType.GEO_OBJECT)); 
> }
>  };
> t.schedule(1);
> }
> }
>
>
> Only third works. 
> First - no one handler is notified
> Second - only one event is send.
>
> Can anybody say why?
> 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: Running over ubuntu

2013-08-20 Thread Michael Prentice
Right click on your project in Eclipse, Build Path->Configure Build Path. 
On the Libraries tab, Add External Jars and then point it to gwt-dev.jar, 
gwt-user.jar, and the two validation-api*.jars in the same dir (in your GWT 
SDK dir).

If you are upgrading your SDK, you probably want to generate your new 
starter project again using the new SDK. That will save you the trouble of 
changing the entries in build.xml to point to the new SDK.


On Tuesday, August 20, 2013 8:58:13 AM UTC-4, Muhammad Bashir Al-Noimi 
wrote:
>
>  On 08/20/2013 02:34 PM, Thomas Broyer wrote:
>  
> OMG, they did package GWT as a .deb :'-( 
> That's version 2.4.0 released� God knows when (2.5.0 was released almost 
> one year ago, and 2.5.1 in January or February this year, and we're aiming 
> at a 2.6.0 by the end of the year).
>  
> OK, I'll download the recent GWT tomorrow.
>
>   
>>1. 
>> 2. Successfully installed eclipse plugin after adding repository 
>>path http://dl.google.com/eclipse/plugin/4.2� 
>>3. Added GWT path /usr/share/java thought Preferences -> Google -> 
>>Web Toolkit 
>>4. Created the quick start tutorial then run it 
>>
>> So is there anything missing?!
>>  
>
>  You're not using Maven, so simply ignore what Alvin said about it.
>
>  It remains that one of your errors is that Eclipse cannot find 
> javax.servlet.http.HttpServletResponse; this class is in gwt-dev.jar, is it 
> in your build path?
>
>  I can't understand the other error, but it might be related to a class 
> that cannot be found (I would expect it to fail earlier and with a better 
> error message, but who knows�)
>  
> What I've to do? you didn't suggest anything?! Do you think installing 
> recent GWT will change something in this issue or I've to install something?
>
> -- 
> Best Regards,
> Muhammad Bashir Al-Noimi
>
> 

-- 
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: Need Editor Framework help

2013-08-20 Thread Michael Prentice
Alfredo, thank you. That helps simplify things a lot. I have only used 
UiBinder a little bit and I haven't done anything with RequestFactory. So 
those examples combined with Editor Framework have really complicated 
things and make it hard to learn just the Editor Framework part. Your 
EditorViewImpl example is exactly what I was looking for.

Thomas, thank you for the detailed response!
I will likely need some level of validation on both the client and server. 
Hopefully there is time in the project to do this properly.

Yes, we are using GWT Designer but seeing that it is not being actively 
supported by Google and is still not open for contributions, I'm not sure 
how much longer that will be the case. It is quite helpful and powerful 
when it works and after it finally loads.

I understand that the Editor Framework doesn't deal with events, but it is 
great to see you explain that it will still fit within an MVP architecture. 
We are using an EventBus with EventBinder.

I hadn't seen that blog post, it does seem to have a little bit of detail 
that isn't on http://www.gwtproject.org/doc/latest/DevGuideUiEditors.html

I'll take another crack at it today and hopefully be able to figure out 
whether EF will work for us or not. Maybe we'll end up using it in certain 
places but not in others. We'll see...


On Tuesday, August 20, 2013 6:03:29 AM UTC-4, Thomas Broyer wrote:
>
>
>
> On Tuesday, August 20, 2013 12:44:22 AM UTC+2, Michael Prentice wrote:
>>
>> I spent most of Friday reading up on Editor Framework and it seemed quite 
>> powerful and useful. But today I'm looking at actually making use of it and 
>> I've had some fairly basic questions which I have not been able to find 
>> answers to in this group or anywhere on Google/gwtproject.org.
>>
>> 1) Does the use of Editor Framework require the use of UiBinder?
>>
>
> No.
>  
>
>> i.e. can I use it with a regular Java view? 
>>
>
> You don't even need "widgets" actually; see 
> https://gwt.googlesource.com/gwt/+/2.5.1/user/test/com/google/gwt/editor/client/
>  for 
> examples.
>  
>
>> 2) Does the use of Editor Framework require the use of RequestFactory?
>>
>
> No, that's why there are 2 distinct EditorDrivers: SimpleBeanEditorDriver 
> and RequestFactoryEditorDriver.
>  
>
>> This answer appears to be no, but I haven't been able to find any 
>> examples that don't use RequestFactory. Do such examples exist?
>>
>
> Again, see 
> https://gwt.googlesource.com/gwt/+/2.5.1/user/test/com/google/gwt/editor/client/
> See also https://gist.github.com/tbroyer/780560
>  
>
>> 3) What options exist in GWT for doing databinding? It looks like 
>> UiBinder itself takes care of doing data binding. So I guess that Editor 
>> Framework is not so much about data binding, instead it adds validation, 
>> Editor composition, and?
>>
>
> UiBinder is not *at all* about data binding. It only generates the Java 
> code that you would have written by hand to build and arrange your widgets 
> and listen to their events. The "binding" in UiBinder is only about 
> associating objects with your @UiField-annotated fields and bind events to 
> your @UiHandler-annotated methods.
>
> The Editor framework on the other hand is *all* about data binding. It 
> can propagate constraint violations to HasEditorErrors editors, and 
> HasEditorDelegate editors can generate errors, but the framework itself 
> does not deal with validation (you can use JSR303 bean validation in GWT, 
> or defer to your server; for example, in one of our apps, the server 
> validates objects asynchronously when they're saved, and the client fetches 
> the constraint violations for display – errors are not blocking, mostly 
> metadata).
>
> I still can't really figure out if the Editor Framework is right for my 
>> project or not. I use DTOs via GWT-RPC without any RequestFactory.
>>
>
> That's OK.
>  
>
>> My current views are Java (no UiBinder)
>>
>
> How painful it should be working on these things… (or are you using the 
> GWT Designer?)
>  
>
>> but I might switch to UiBinder. I've got the architecture for MVP laid 
>> out pretty well and I'm having a hard time figuring out how Editors fit 
>> into the mix.
>>
>
> The way I do it is to have the view create and initialize the 
> EditorDriver; the presenter gets it from the view and edits/flushes the 
> data.
>
> The views thus generally define a method such as 
> "SimpleBeanEditorDriver createDriver()". That way, only the view 
> needs to know about the Editor being used (which is gener

Need Editor Framework help

2013-08-19 Thread Michael Prentice
I spent most of Friday reading up on Editor Framework and it seemed quite 
powerful and useful. But today I'm looking at actually making use of it and 
I've had some fairly basic questions which I have not been able to find 
answers to in this group or anywhere on Google/gwtproject.org.

1) Does the use of Editor Framework require the use of UiBinder? i.e. can I 
use it with a regular Java view?
2) Does the use of Editor Framework require the use of RequestFactory? This 
answer appears to be no, but I haven't been able to find any examples that 
don't use RequestFactory. Do such examples exist?
3) What options exist in GWT for doing databinding? It looks like UiBinder 
itself takes care of doing data binding. So I guess that Editor Framework 
is not so much about data binding, instead it adds validation, Editor 
composition, and?

I still can't really figure out if the Editor Framework is right for my 
project or not. I use DTOs via GWT-RPC without any RequestFactory. My 
current views are Java (no UiBinder) but I might switch to UiBinder. I've 
got the architecture for MVP laid out pretty well and I'm having a hard 
time figuring out how Editors fit into the mix.

The DTOs whose data is exposed in my views does not map directly to what is 
displayed in the view one-to-one. Many views display data taken from 
multiple DTOs. Also actions/selections in one view must result in changes 
to other views on the page. This means that selecting an item in one view 
could cause (via Events) multiple presenters to disable/enable elements in 
their views.

Are there are good IO videos that cover Editor Framework in detail? So far 
my searches have not come up with any, but the names don't always specify 
the content.

I've read the details on gwtproject.org, code.google.com, and various blogs 
plus the DynaTableRf example. But while trying to implement this stuff 
today, it just feels wrong, like it isn't going to fit/work/etc with what 
I'm doing. So I'm trying to figure out if I should just not use Editor 
Framework at all.

Thank you,

Michael Prentice
GDG Space Coast

-- 
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: What's the minimum number of interfaces and classes that I should need to create for a new RpcService?

2013-08-14 Thread Michael Prentice
Using a marker interface, CustomDto, I was able to get the compiler to be a 
lot happier. But I had some trouble trying to figure out Tomas' suggestion. 
So I'll post my current code here to see if there are additional 
refinements suggested.

*Generic Request/Response encapsulation classes:*

public class CustomRequest implements Action>, 
CustomDto
{
private static final long serialVersionUID = 2497682157216814807L;
 private T request;
 public CustomRequest(){}
 public CustomRequest(T req)
{
request = req;
}
 public void setRequest(T request)
{
this.request = request;
}
 public T getRequest()
{
return request;
}
}

public class CustomResponse implements Response, CustomDto
{
private static final long serialVersionUID = -7854717568064553824L;
private T response;
private String statusString = "";
private int msgStatus = 0;
 public CustomResponse(){}
 public CustomResponse(T rsp)
{
response = rsp;
}
 public T getResponse()
{
return response;
}
 public void setResponse(T response)
{
this.response = response;
}

// getters and setters
}

*Here is my generic service and async interface:*

@RemoteServiceRelativePath("CustomService") 
public interface CustomService extends RemoteService
{
CustomResponse sendRequest(CustomRequest req);
}

public interface CustomServiceAsync
{
void sendRequest(CustomRequest req, 
AsyncCallback> callback);
}

*My abstract service:*

public abstract class AbstractCustomService extends RemoteServiceServlet
{
private static jniConnection;

// static System.loadLibrary() call for JNI connection.
 public CustomResponse sendRequest(CustomRequest req)
{
CustomResponse response = null;
 try
{
if (jniConnection == null)
{
// custom JNI connection code.
}
 response = handleRequest(req);
}
catch (Exception ex)
{
ex.printStackTrace();
}
 return response;
}
 protected abstract CustomResponse 
handleRequest(CustomRequest req);

*And then my service implementation:*
*
*
public class CustomServiceImpl extends AbstractCustomService 
implements CustomService
{
private static final long serialVersionUID = 8883630570739973203L;
 @Override
public CustomResponse handleRequest(CustomRequest req)
{
if (req.getRequest().getClass().equals(LoginDto.class))
return handleLogin(req);
else if (req.getRequest().getClass().equals(GetStuffDto.class))
return handleGetStuff(req);
else if 
(req.getRequest().getClass().equals(UpdateFooDto.class))
return handleUpdateFoo(req);
else
return null;
}

private CustomResponse handleLogin(CustomRequest req)
{
LoginDto dto = (LoginDto) req.getRequest();
LoginJniReq request = new LoginJniReq();
// copy fields from DTO to JniReq
// send JniReq, check status, copy results into dto
CustomResponse rsp = 
CustomResponse(dto);
// set status and statusString on rsp
return rsp;
 }

private CustomResponse handleLogin(CustomRequest req)
{
  ...
 }

private CustomResponse handleLogin(CustomRequest req)
{
  ...
 }
}

With this setup, adding handling for each of the ~40 DTOs only requires:

   - Adding a check in CustomServiceImpl::handleRequest() to properly route 
   the request.
   - Adding a CustomServiceImpl::handleAction() method to get the data from 
   the backend and return it.
   - Adding an ActionTest class for testing the DTO processing.

This is a great reduction from needing to create two separate interfaces, 3 
classes, and a test class for every DTO! 

Things would be a bit more simple in my implementation if I didn't have to 
deal with the JNI backend or the fact that the DTOs don't have 
status/statusString fields. But that neither of those can be changed. I 
also am likely going to need to put some session tokens/state in the 
CustomRequest/CustomResponse encapsulating classes eventually. So that 
extra encapsulation is likely to be quite helpful down the road.

Thank you for the help!


On Wednesday, August 14, 2013 11:24:08 AM UTC-4, Michael Prentice wrote:
>
> Thomas are you saying that instead of having this in the interface:
>
> sendRequest(GenericDto dto, AsyncCallback);
>
> I should have a different method in the interface for each DTO? i.e.:
>
> sendLoginReq(LoginDto dto, AsyncCallback);
> sendGetStuffReq(GetStuffDto dto, AsyncCallback);
> sendUpdateFooReq(UpdateFooDto dto, AsyncCallback);
>
> It would eliminate the need for a handler method (handleRequest()) in my 
> serviceImpl, but that work would be replaced with the boilerplate of 
> defining each method in the service/serviceAsync interfaces. I suppose that 
> it separates the logic a bit better to do it this way.
>
> Jens' idea of creating a Serializable marker interface/base class for all 
> of my DTOs and then specifying that instead of Serializable, looks like it 
> will resolve the issues with being too generic and causing 

Re: What's the minimum number of interfaces and classes that I should need to create for a new RpcService?

2013-08-14 Thread Michael Prentice
Thomas are you saying that instead of having this in the interface:

sendRequest(GenericDto dto, AsyncCallback);

I should have a different method in the interface for each DTO? i.e.:

sendLoginReq(LoginDto dto, AsyncCallback);
sendGetStuffReq(GetStuffDto dto, AsyncCallback);
sendUpdateFooReq(UpdateFooDto dto, AsyncCallback);

It would eliminate the need for a handler method (handleRequest()) in my 
serviceImpl, but that work would be replaced with the boilerplate of 
defining each method in the service/serviceAsync interfaces. I suppose that 
it separates the logic a bit better to do it this way.

Jens' idea of creating a Serializable marker interface/base class for all 
of my DTOs and then specifying that instead of Serializable, looks like it 
will resolve the issues with being too generic and causing GWT to generate 
too much JS. I've seen a lot of talk on this topic, so I knew what that 
error meant. I just wasn't quite sure how I was going to solve it 
(especially at 9pm ;).

I'll give these a shot today and see how they work. Thanks a ton for the 
input guys!

On Wednesday, August 14, 2013 10:22:19 AM UTC-4, Thomas Broyer wrote:
>
> It's still unclear to me why you can't have X methods on the same 
> service/async interface, each with its own request/response (whether to use 
> those encapsulations is another matter that Jens already dealt about)

-- 
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: What's the minimum number of interfaces and classes that I should need to create for a new RpcService?

2013-08-13 Thread Michael Prentice
I was able to make some great progress today. I removed abstract from the 
CustomRequest and CustomResponse classes. This allowed me to use them 
generically without needing to extend them for each DTO.

I also removed the generic pieces from the CustomService declaration and 
changed the methods in the service to use the generic CustomRequest and 
CustomResponse.

Then I renamed getDataFromJNI() to handleRequest() and turned it into a 
handler method that checks the DTO's class and sends it off to a handler 
method. So like Thomas said, I can implement ~40 services with ~40 methods 
in a single serviceImpl.

I ended up using CustomRequest type notation through most of the day, 
but then found out that GWT doesn't like generic objects being serialized. 
So I managed to change all of the  references to  
references and get my app working. But of course this gave me the nasty 
warnings about instantiability:

Return type: com.example.services.CustomResponse 
  
 com.example.services.CustomResponse 
  Verifying instantiability

 com.example.services.CustomResponse 
Checking parameters of 
'com.example.services.CustomResponse '
   Checking type argument 0 of type 
'com.example.services.CustomResponse' because it is directly exposed in 
this type or in one of its subtypes
  java.io.Serializable
 Verifying instantiability

com.google.gwt.validation.client.impl.PathImpl
   Analyzing the fields of 
type 'com.google.gwt.validation.client.impl.PathImpl' that qualify for 
serialization
  [WARN] Field 'private 
final java.util.List nodes' will not be 
serialized because it is final

So I guess tomorrow I will try to get rid of this issue while managing to 
maintain the generic nature of the service.

Thank you for the help. I'm figuring this out finally :)


On Monday, August 12, 2013 11:21:33 PM UTC-4, Michael Prentice wrote:
>
> I looked through gwt-dispatch and its source code today but it wasn't 
> clear that I would really be saving anything beyond what I have now, mostly 
> just the classes and names would change. I'll take a look at the Getting 
> Started Wiki, thanks.
>
> Yes, we are completely command pattern based on the back end (C reached 
> through JNI) so doing the services in command pattern makes obvious sense. 
> Every one of my DTOs maps directly to a command on the backend.
>
> On Monday, August 12, 2013 7:45:08 PM UTC-4, Jens wrote:
>>
>> Looks a lot like command pattern. You should really think about if you 
>> really need that pattern. It often sounds nice but it always results in 
>> lots of classes. Just to illustrate:
>>
>> interface LoginService extends RemoteService {
>>   UserInformationDto login(String user, pass) throws 
>> InvalidCredentialsException;
>>   boolean isLoggedIn(String token);
>> }
>>
>> Applying the command pattern to the above straight forward service will 
>> result in 2 commands, 2 responses, 2 handlers and 1 dispatch service that 
>> takes any command, performs some common tasks and finally dispatches the 
>> command to its responsible handler (in your case you sub class'ed your 
>> abstract service which would be equivalent to having handlers, although in 
>> your case you need to create the client service interfaces as well). So 
>> basically each remote method call will become 3 classes (input, output, 
>> handler). With a bit of thought and a bit of reflection you can reduce the 
>> amount of classes a bit but its like a water drop on a hot stone.
>>
>> I have one project that uses the command pattern and I tell you I don't 
>> want to count the amount of classes related to this pattern. But the 
>> pattern also provides a lot of compelling benefits and depending on the 
>> requirements it can be a good fit.
>>
>> If you want to go the command pattern route then take a look at 
>> gwt-dispatch or at least read 
>> https://code.google.com/p/gwt-dispatch/wiki/GettingStarted to get the 
>> idea on how to reduce the amount of classes used in your current solution.
>>
>> -- 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: What's the minimum number of interfaces and classes that I should need to create for a new RpcService?

2013-08-12 Thread Michael Prentice
I looked through gwt-dispatch and its source code today but it wasn't clear 
that I would really be saving anything beyond what I have now, mostly just 
the classes and names would change. I'll take a look at the Getting Started 
Wiki, thanks.

Yes, we are completely command pattern based on the back end (C reached 
through JNI) so doing the services in command pattern makes obvious sense. 
Every one of my DTOs maps directly to a command on the backend.

On Monday, August 12, 2013 7:45:08 PM UTC-4, Jens wrote:
>
> Looks a lot like command pattern. You should really think about if you 
> really need that pattern. It often sounds nice but it always results in 
> lots of classes. Just to illustrate:
>
> interface LoginService extends RemoteService {
>   UserInformationDto login(String user, pass) throws 
> InvalidCredentialsException;
>   boolean isLoggedIn(String token);
> }
>
> Applying the command pattern to the above straight forward service will 
> result in 2 commands, 2 responses, 2 handlers and 1 dispatch service that 
> takes any command, performs some common tasks and finally dispatches the 
> command to its responsible handler (in your case you sub class'ed your 
> abstract service which would be equivalent to having handlers, although in 
> your case you need to create the client service interfaces as well). So 
> basically each remote method call will become 3 classes (input, output, 
> handler). With a bit of thought and a bit of reflection you can reduce the 
> amount of classes a bit but its like a water drop on a hot stone.
>
> I have one project that uses the command pattern and I tell you I don't 
> want to count the amount of classes related to this pattern. But the 
> pattern also provides a lot of compelling benefits and depending on the 
> requirements it can be a good fit.
>
> If you want to go the command pattern route then take a look at 
> gwt-dispatch or at least read 
> https://code.google.com/p/gwt-dispatch/wiki/GettingStarted to get the 
> idea on how to reduce the amount of classes used in your current solution.
>
> -- 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: What's the minimum number of interfaces and classes that I should need to create for a new RpcService?

2013-08-12 Thread Michael Prentice
OK, I've finally got some time to look at this again. But I'm still having 
some issues. Based on your feedback, I should eliminate the following two 
classes:

   - Class to represent the request and hold its DTO
   - Class to represent the response and hold its DTO

These currently both extend an abstract generic class (one implements 
Action and one implements Response). I haven't been able to make those 
classes generic enough that these 2 request/response classes can be removed.

I suppose that I may need to use GIN to make this happen, but I have not 
yet figured out if that would be required and/or how to do it yet.

*Here are the abstract classes:*

public abstract class CustomRequest implements 
Action>, Serializable
{
private static final long serialVersionUID = 2497682157216814807L;
 private T request;
 public void setRequest(T request)
{
this.request = request;
}
 public T getRequest()
{
return request;
}
}

public abstract class CustomResponse implements Response, Serializable
{
private static final long serialVersionUID = -7854717568064553824L;
private T response;
private String statusString = "";
private int msgStatus = 0;
 public T getResponse()
{
return response;
}
 public void setResponse(T response)
{
this.response = response;
}

// Getters and setters.
}

*Then the classes that extend these abstract req/response classes:*

public class Login extends CustomRequest
{
private static final long serialVersionUID = 2497682157216814807L;
 public Login() {}
public Login(MyLoginReqDto creds)
{
setRequest(creds);
}
}

public class LoginResponse extends CustomResponse
{
private static final long serialVersionUID = -7854717568064553824L;
public LoginResponse() {}
public LoginResponse(MyLoginReqDto creds)
{
setResponse(creds);
}
}

So obviously for each of my ~40 DTOs, I need to send/receive a different 
DTO. I'm not completely clear on how to do this while eliminating all 4 of 
the classes above.

*Here are my service interfaces:*

@RemoteServiceRelativePath("Login") 
public interface LoginService extends RemoteService
{
@SuppressWarnings("rawtypes")
CustomResponse sendRequest(Login req);
}

public interface LoginServiceAsync
{
void sendRequest(Login req, AsyncCallback> callback);
}

*And then my service implementation:*

public class LoginServiceImpl
extends CustomService implements LoginService
{
private static final long serialVersionUID = 8883630570739973203L;
public LoginResponse getDataFromJNI(Login req)
{
// custom code to deal with the backend data retrieval.
}
}

*Finally, my abstract service:*
*
*
public abstract class CustomService extends RemoteServiceServlet
{
 // static System.loadLibrary() call for JNI connection.

public RSP sendRequest(REQ req)
{
RSP response = null;
 try
{
if (jniConnection == null)
{
// custom JNI connection code.
}
 response = getDataFromJNI(req);
}
catch (Exception ex)
{
ex.printStackTrace();
}
 return response;
}

protected abstract RSP getDataFromJNI(REQ req);
}

So this does get my JNI connection code factored out into a single class. 
But it still is causing me to need to define a specific Request/Response 
for every service.

I'd love to have a single service handle all of the different DTOs with a 
single service implementation and various methods to handle each DTO. I'm 
just not clear on how I can make that happen and I'm running short on 
schedule time to be contemplating and researching. I've looked at a ton of 
examples online, but I haven't been able to find one that really maps to 
what I need and makes sense. I haven't found one that handles many 
different DTOs in a single service implementation.

Please let me know if I'm way off here. Is DI the way to solve all of this? 
Is it just a minor tweak to my classes? Or do I need to start from scratch 
with a whole new approach? If you have a link to a project or bit of code 
that already demonstrates this, I would love to see it.

Thank you,

Michael Prentice
GDG Space Coast
Hope to see you at http://gwtcreate.com/ in December!

On Saturday, August 3, 2013 5:18:21 AM UTC-4, Thomas Broyer wrote:
>
>
> How about using a single service/serviceAsync/serviceImpl for more than 
> one request/response/DTOs? Instead of "40 services" with all that 
> boilerplate, you'd *only* need 40 methods on a single *service*.
>

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




What's the minimum number of interfaces and classes that I should need to create for a new RpcService?

2013-08-02 Thread Michael Prentice
Currently, I am looking at creating 2 interfaces and 3 classes for every 
RpcService. I'm wondering if I can do better before I start implementing a 
ton of services.


   - Interface to extend RemoteService
   - Interface for AsyncCallback
   - Class to represent the request and hold its DTO
   - Class to represent the response and hold its DTO
   - Class to implement my Interface above that extends RemoteService.

I've been looking at trying to do better here wvia DI. But so far I haven't 
really hit on the right solution. I did get Guice to manage my servlets via 
ServletModule and GuiceServletContextListener though.

I need to implement about 40 services in the shortest time possible and I 
don't want to create more boilerplate than I need. I already have all of 
the DTOs (auto generated) and I just need to hook them up to new services.

If anyone can identify the part of this that can be improved, I can provide 
some sample code to help identify the solution easier.

Thank you,

Michael Prentice
GDG Space Coast
Hope to see you at http://gwtcreate.com/ in December!

-- 
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 Designer crashes Eclipse when i switch the editor-tab to Design...

2013-07-14 Thread Michael Prentice
I tried this recently and I have not yet been able to get the GWT Designer 
to work on Ubuntu 13.04 with Eclipse 4.3 or 4.2.2. On 4.2.2, I get the same 
issue that you posted:

java.lang.ClassNotFoundException: 
org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate

On Eclipse 4.3, I get the problems detailed in this 
bug: https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=224

There are a number of Ubuntu related bugs posted on the GPE issue tracker 
(I guess since the GWT Designer issue tracker appears to be abandoned) 
here: 
https://code.google.com/p/google-plugin-for-eclipse/issues/list?can=2&q=GWT+Designer+Ubuntu&sort=-stars&colspec=ID+Type+Status+Priority+Milestone+Owner+Summary+Stars&cells=tiles


Update: Here is the fix! 
https://code.google.com/p/gwt-designer/issues/detail?id=4 the same guy who 
posted the issue has an update site which contains the fix! Gift wrapped 
for the GWT Designer team, but still not fixed since April!


On Wednesday, May 8, 2013 4:21:08 PM UTC-4, Michael Prentice wrote:
>
> You may be able to get some more info or help at the Eclipse WindowBuilder 
> forums here: http://www.eclipse.org/forums/index.php/f/214/
>
> Eric Clayberg is usually monitoring those forums and responding to issues. 
> There are some posts there that mention Ubuntu.
>
>
>
> On Wednesday, May 8, 2013 3:31:13 PM UTC-4, Costis Aivalis wrote:
>>
>> Thank you Kimosabe! I rather feel like Tonto... 
>> I do like the Designer, when it works, and seem to miss it. Fortunately 
>> It still works in Ubuntu 12.10 and in Windows 7. I have spent too much time 
>> trying to get it to work...
>>
>> On Wednesday, May 8, 2013 8:57:03 PM UTC+3, Thad wrote:
>>>
>>> Yeah, don't feel like the Lone Ranger. :)  I've had this problem on both 
>>> openSUSE Linux and Windows 7. I've seen others complaining about it also.
>>>
>>> Fortunately (I guess) I never found GWT Designer very useful for 
>>> drag-and-drop GUI building. However I do miss it for quick glimpses into 
>>> how my edits in the XML work. It saved time over running DevMode.
>>>
>>> On Wednesday, May 8, 2013 5:54:26 AM UTC-4, Costis Aivalis wrote:
>>>>
>>>> Hello Michael! Thank you for your suggestions. I have done some 10 
>>>> fresh installs on empty work-spaces.
>>>> There seems to be an incompatibility with xulrunner. GWT designer needs 
>>>> 1.9.1.x or 1.9.2.x, while these versions may be incompatible with Ubuntu 
>>>> 13.04. 
>>>> I have Icedtea-plugin 1.3.2-1ubuntu1, installed which should include 
>>>> xulrunner 1.9.2.
>>>>
>>>> I get this message as soon as the Designer tries to render:
>>>> "GWT Designer uses the SWT Browser widget to render the GWT UI. SWT 
>>>> Browser requires a compatible xulrunner version installed: it should be 
>>>> 1.9.1.x or 1.9.2.x version and meet the current environment architecture. 
>>>> See http://www.eclipse.org/swt/faq.php#whatisbrowser and related 
>>>> topics for more information.
>>>>
>>>>
>>>> On Saturday, May 4, 2013 1:03:10 AM UTC+3, Michael Prentice wrote:
>>>>>
>>>>> Have you tried uninstalling them and reinstalling the GPE w/ the 
>>>>> latest and matching GWT Designer? It looks like your install might have 
>>>>> left stuff around or didn't fully complete.
>>>>>
>>>>> Many people have had this kind of issue with the installer in 4.2. 
>>>>> Most people recommend just starting with a new Eclipse install completely 
>>>>> when you hit this, rather than trying to fix your existing install. 
>>>>>
>>>>> You may need to export/import your preferences (including external 
>>>>> tools, run configs, debug configs, etc that you don't store in .settings) 
>>>>> but some of that will come over if you use the same workspace.
>>>>>
>>>>>

-- 
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.create conference - call for presentations

2013-07-11 Thread Michael Prentice
This is great news. I will start making some plans to visit San Francisco 
in December!


On Wednesday, July 10, 2013 7:10:08 AM UTC-4, Ashton Thomas wrote:
>
> Also, it may make sense to do a poster room/showcase on the second day 
> after people (especially newcomers) have different types of GWT topics on 
> their minds and can discuss their use in the wild.
>
>
> On Wednesday, July 10, 2013 7:03:33 AM UTC-4, Ashton Thomas wrote:
>>
>> +1 for the showcase session. 
>>
>> Many people build internal or private applications with GWT and this may 
>> be a good opportunity to showcase and spark conversation within the context 
>> of live apps.
>>
>> I would also love to showcase Acrinta's application (public app - due for 
>> release before the event).
>>
>> - AT
>>
>> On Tuesday, July 9, 2013 2:32:32 AM UTC-4, Frank Hossfeld wrote:
>>>
>>> I agree with Thomas. The idea of a poster room is fantistic. Especially 
>>> for new GWT Users is this room a good chance to see, what could be made 
>>> with GWT. Talking about best practicves, experiences, etc. and see the 
>>> solution is a good thing,
>>>
>>> I will be in Frankfurt and would spend some time in this room 
>>> explaining, showing and talking about best practices, experiences etc..
>>>
>>> I have a demo server running::
>>>
>>> https://demo.hossfeld-solutions.de/leelaV5/s2/logon/Logon.jsp
>>>
>>> user: user003
>>> password: pass03
>>>
>>>
>>>
>>>
>>> Am Montag, 8. Juli 2013 23:41:23 UTC+2 schrieb Thomas Lefort:

 In addition to the formal presentations, I think it would be nice to 
 run some kind of "poster session" - a seperate room with a few tables and 
 screens (no printed poster necessary ;-)) - where people can showcase 
 their 
 web application and their use of GWT. This would help triggering 
 discussions and exchanging best practice + see what can be done with GWT 
 these days.

 Personally I have been developing a rather large app for the past year 
 (you can view some of it in this intro video 
 https://www.youtube.com/watch?v=Kycc6O_sAvE) with a good mix of 
 technologies. I am an average GWT user and I have no material for a 50mns 
 presentation, but I wouldn't mind showing what I've done and sharing ideas 
 (and get some advice) around their use of GWT and mine. In fact, I 
 sometimes manage to have one to one meet ups with other companies and 
 people using GWT in Madrid (where I am based) and the discussions are 
 always very interesting (and useful).



 On Sunday, 7 July 2013 10:11:51 UTC+2, Joonas Lehtinen wrote:
>
>
>
> Sounds very interesting. Could you submit presentation proposal 
> through the CFP form on the gwtcreate.com website?
>


-- 
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 Designer crashes Eclipse when i switch the editor-tab to Design...

2013-05-08 Thread Michael Prentice
You may be able to get some more info or help at the Eclipse WindowBuilder 
forums here: http://www.eclipse.org/forums/index.php/f/214/

Eric Clayberg is usually monitoring those forums and responding to issues. 
There are some posts there that mention Ubuntu.



On Wednesday, May 8, 2013 3:31:13 PM UTC-4, Costis Aivalis wrote:
>
> Thank you Kimosabe! I rather feel like Tonto... 
> I do like the Designer, when it works, and seem to miss it. Fortunately It 
> still works in Ubuntu 12.10 and in Windows 7. I have spent too much time 
> trying to get it to work...
>
> On Wednesday, May 8, 2013 8:57:03 PM UTC+3, Thad wrote:
>>
>> Yeah, don't feel like the Lone Ranger. :)  I've had this problem on both 
>> openSUSE Linux and Windows 7. I've seen others complaining about it also.
>>
>> Fortunately (I guess) I never found GWT Designer very useful for 
>> drag-and-drop GUI building. However I do miss it for quick glimpses into 
>> how my edits in the XML work. It saved time over running DevMode.
>>
>> On Wednesday, May 8, 2013 5:54:26 AM UTC-4, Costis Aivalis wrote:
>>>
>>> Hello Michael! Thank you for your suggestions. I have done some 10 fresh 
>>> installs on empty work-spaces.
>>> There seems to be an incompatibility with xulrunner. GWT designer needs 
>>> 1.9.1.x or 1.9.2.x, while these versions may be incompatible with Ubuntu 
>>> 13.04. 
>>> I have Icedtea-plugin 1.3.2-1ubuntu1, installed which should include 
>>> xulrunner 1.9.2.
>>>
>>> I get this message as soon as the Designer tries to render:
>>> "GWT Designer uses the SWT Browser widget to render the GWT UI. SWT 
>>> Browser requires a compatible xulrunner version installed: it should be 
>>> 1.9.1.x or 1.9.2.x version and meet the current environment architecture. 
>>> See http://www.eclipse.org/swt/faq.php#whatisbrowser and related topics 
>>> for more information.
>>>
>>>
>>> On Saturday, May 4, 2013 1:03:10 AM UTC+3, Michael Prentice wrote:
>>>>
>>>> Have you tried uninstalling them and reinstalling the GPE w/ the latest 
>>>> and matching GWT Designer? It looks like your install might have left 
>>>> stuff 
>>>> around or didn't fully complete.
>>>>
>>>> Many people have had this kind of issue with the installer in 4.2. Most 
>>>> people recommend just starting with a new Eclipse install completely when 
>>>> you hit this, rather than trying to fix your existing install. 
>>>>
>>>> You may need to export/import your preferences (including external 
>>>> tools, run configs, debug configs, etc that you don't store in .settings) 
>>>> but some of that will come over if you use the same workspace.
>>>>
>>>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Desktop application work with gwt website

2013-05-07 Thread Michael Prentice
Ah, a requirement for serial data connectivity. That is one that I 
certainly did not think of. 

Here are a couple of posts on that:

http://stackoverflow.com/questions/10608997/how-do-i-read-and-write-data-to-from-com-port-in-html-pages

http://stackoverflow.com/questions/13689672/html5-serial-port-access

The last one has an interesting bit of info:

*"Google Chrome has a Javascript API to do that (
http://developer.chrome.com/apps/serial.html) but it is browser specific, 
no HTML5"*

I searched for any article or post about using Chrome.serial with GWT, but 
was not able to find any. At least, that is an alternative to investigate. 
I suppose that enabling this library would be considerably cheaper than 
re-writing your app as a desktop application.



On Tuesday, May 7, 2013 2:04:32 PM UTC-4, Boris Son wrote:
>
> My application use some devices through comport thats why I use desktop 
> edition
>
>
> вторник, 7 мая 2013 г., 1:54:56 UTC+4 пользователь Michael Prentice 
> написал:
>>
>> GWT is open sourced and available on GitHub. So you are free to take a 
>> look at the code that handles serialization.
>>
>> But my first question is why would you want/need to create a desktop 
>> application?
>>
>> Is GWT not high performance enough for you in the browser? Does HTML5 not 
>> provide you with rich enough forms, controls, data visualization?
>>
>> That seems unlikely.
>>
>>
>> On Monday, May 6, 2013 3:51:45 PM UTC-4, Boris Son wrote:
>>>
>>> I have GWT project web application. Now I have to create desktop 
>>> application to work with this website. Is there any libraries? Web 
>>> application uses rpc from GWT framework. Objects are serialized by 
>>> framework. So now in desktop application I have to send http request with 
>>> serialized objects(integer). How can I solve problem with serializing 
>>> objects? Where to get appropriate methods/algorithms? Is my approach wrong? 
>>> Should I just create my own servlets for desktop application and handle 
>>> serialization.
>>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Desktop application work with gwt website

2013-05-06 Thread Michael Prentice
GWT is open sourced and available on GitHub. So you are free to take a look 
at the code that handles serialization.

But my first question is why would you want/need to create a desktop 
application?

Is GWT not high performance enough for you in the browser? Does HTML5 not 
provide you with rich enough forms, controls, data visualization?

That seems unlikely.


On Monday, May 6, 2013 3:51:45 PM UTC-4, Boris Son wrote:
>
> I have GWT project web application. Now I have to create desktop 
> application to work with this website. Is there any libraries? Web 
> application uses rpc from GWT framework. Objects are serialized by 
> framework. So now in desktop application I have to send http request with 
> serialized objects(integer). How can I solve problem with serializing 
> objects? Where to get appropriate methods/algorithms? Is my approach wrong? 
> Should I just create my own servlets for desktop application and handle 
> serialization.
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT Designer crashes Eclipse when i switch the editor-tab to Design...

2013-05-03 Thread Michael Prentice
Have you tried uninstalling them and reinstalling the GPE w/ the latest and 
matching GWT Designer? It looks like your install might have left stuff 
around or didn't fully complete.

Many people have had this kind of issue with the installer in 4.2. Most 
people recommend just starting with a new Eclipse install completely when 
you hit this, rather than trying to fix your existing install. 

You may need to export/import your preferences (including external tools, 
run configs, debug configs, etc that you don't store in .settings) but some 
of that will come over if you use the same workspace.


On Thursday, May 2, 2013 4:22:49 AM UTC-4, Costis Aivalis wrote:
>
> The GWT-Designer crashes my Eclipse completely. 
> This problem started, after upgrading from Ubuntu 32bit 12.10 to 32bit 
> 13.04. 
> Windowbuilder plugin installs and works correctly. It designs even 
> preciser than it did in 12.04. 
> The GWT plugin for Eclipse 4.2 Juno, on the other hand, installs 
> correctly, allows generating projects with sample code, that run,
> but does not allow Designer Editing. I crashes Eclipse. 
>
> Here are the error messages. A larger portion of the log file is attached. 
>
> !SESSION 2013-05-02 01:49:35.609 
> ---
> eclipse.buildId=M20130204-1200
> java.version=1.7.0_17
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Framework arguments:  -product org.eclipse.epp.package.jee.product
> Command-line arguments:  -os linux -ws gtk -arch x86 -product 
> org.eclipse.epp.package.jee.product
>
> !ENTRY org.eclipse.ui 4 4 2013-05-02 01:51:10.339
> !MESSAGE Plug-in 'org.eclipse.jpt.jpa.ui' contributed an invalid Menu 
> Extension (Path: 'org.eclipse.jpt.jpa.ui.menu.JpaTools' is invalid): 
> org.eclipse.jpt.jpa.ui.generateEntities
>
> !ENTRY org.eclipse.ui 4 4 2013-05-02 01:51:50.979
> !MESSAGE Could not create action delegate for id: 
> org.eclipse.jdt.debug.ui.actions.ManageBreakpointRulerAction
>
> !ENTRY org.eclipse.equinox.registry 4 1 2013-05-02 01:51:50.979
> !MESSAGE Plug-in org.eclipse.wb.core.java was unable to load class 
> org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate.
> !STACK 0
> java.lang.ClassNotFoundException: 
> org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: WindowBuilder (GWTDesigner) error

2013-05-03 Thread Michael Prentice
What does init() do? It is part of MyControlPanel()? Hard to tell you 
without seeing what it does.


On Friday, May 3, 2013 1:58:27 AM UTC-4, Mike Dee wrote:
>
> I'm getting the following error when I try to switch to design mode.
>
> GWT Designer can't load a module because of error in gwt.xml module 
> description, incorrect resource which requires processing with GWT 
> generator or by some other configuration error.
>
> Please check your *$project_dir/.gwt/.gwt-log* for GWT-specific errors 
> (not GWT Designer errors).
> This log has the following error messages:
>
> [ERROR] Failed to create an instance of 
> 'com.mycompany.app.client.panels.MyControlPanel' via deferred binding 
>
>
> This error occurs when attempting to view  MyView.ui.xml in design mode. 
>  MyView includes MyControlPanel.ui.xml.
>
> The app actually runs fine.  I just can't use WindowBuilder.
>
> After playing around with this for a while I noticed that MyControlPanel() 
> has two constructors (as shown below).  They both call init() which does 
> common initialization.  If I remove the call to init(null) in the first, it 
> works fine!
>
> public MyControlPanel()
> {
> initWidget( uiBinder.createAndBindUi( this ) );
> init( null );
> }
> public MyControlPanel( Settings settings )
> {
> initWidget( uiBinder.createAndBindUi( this ) ); 
> init( settings );
> }
>
> Any clues?
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Could not find the main class: com.google.gwt.user.tools.WebAppCreator

2013-05-02 Thread Michael Prentice
What is your configuration? Are you using the GPE? Is GWT installed via the 
GPE or separately? Under Window->Preferences->Google->Web Toolkit, is your 
SDK listed and is the location correct?

Can you find WebAppCreator in your GWT SDK directory? Mine is 
here: eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.5.1\gwt-2.5.1

Have you tried the WebAppCreator.cmd found in there?

More information here: 
https://developers.google.com/web-toolkit/gettingstarted


On Wednesday, May 1, 2013 10:36:03 AM UTC-4, Nirjhar Sarkar wrote:
>
> I am also getting the same error for Juno + SDK 2.5.1
>
> On Thursday, April 25, 2013 12:28:07 AM UTC+5:30, Nagesh Lakinepally wrote:
>>
>> Hi Maria,
>>  
>> did you get a solution for this error? I am using Eclipse Juno and Google 
>> SDK 2.5.1
>>  
>> Please let me know if you have any solution for this.
>>  
>> thanks,
>> --Nagesh
>> On Tuesday, May 24, 2011 11:48:57 AM UTC-4, María wrote:
>>
>>> When I want to create a web application project, this message appears: 
>>>
>>> Could not find the main class: 
>>> com.google.gwt.user.tools.WebAppCreator 
>>>
>>> Creation of element failed 
>>> Reason: 
>>> Invocation of com.google.gwt.user.tools.WebAppCreator failed 
>>>
>>>
>>> What could be wrong? 
>>>
>>> thank you very much in advance 
>>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT designer in Eclipse Juno

2013-04-30 Thread Michael Prentice
Looks good to me. Only difference I see is that you have the latest GPE 
(mine is 1 version behind this).

This happens when creating a new GWT Project or when creating a new UI 
class? Are you doing 'New->Web Application Project'?

Have you tried with a project created by webAppCreator.cmd? It is found 
in eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.5.1\gwt-2.5.1.


On Sunday, April 28, 2013 6:30:19 AM UTC-4, Daniel Bonniot de Ruisselet 
wrote:
>
> Hi,
>
> On Thursday, April 25, 2013 7:12:14 PM UTC+2, Michael Prentice wrote:
>>
>> What plugins do you have installed? Install New Software -> already 
>> installed. Can you post a screenshot with the GWT items expanded?
>>
>

> I have the same issue. Please see the requested screenshot attached.
>
> Thanks!
>
> Daniel
>  
>
>>
>> On Wednesday, April 24, 2013 11:37:22 AM UTC-4, Robert Kabwogi wrote:
>>>
>>> im having the same problem...
>>> what is the solution to this problem?
>>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT - So terribly slow that makes development hard ... very hard ... extremely hard ...

2013-04-25 Thread Michael Prentice
What version of GWT are you using? Have you done anything with your 
settings to improve performance of the compiler? There are a lot of 
documents, slides, and videos that cover this. Have you used SuperDev mode?

Your post is lacking of any real content and almost looks like trolling.

On Thursday, April 18, 2013 1:22:15 PM UTC-4, Ani wrote:
>
> Now that we have been using GWT for a while ... what do you think? Was it 
> the right choice or thinking of migrating to other framework?
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT designer in Eclipse Juno

2013-04-25 Thread Michael Prentice
What plugins do you have installed? Install New Software -> already 
installed. Can you post a screenshot with the GWT items expanded?

On Wednesday, April 24, 2013 11:37:22 AM UTC-4, Robert Kabwogi wrote:
>
> im having the same problem...
> what is the solution to this problem?
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Google Plus api php

2013-04-08 Thread Michael Prentice
Looks like a problem with the Google APIs and not GWT. Perhaps contact 
someone responsible for Google+ APIs?


On Sunday, April 7, 2013 5:35:34 PM UTC-4, Олег Ильїн wrote:
>
> Hi to all.
>
> I have a some problem width using google api.
>
> I use php sdk for generate oAuth 2.0 access_token, and try to get my 
> friends by circles width 
> https://www.googleapis.com/plus/v1/people/{googleplus id 
> user}/people/visible?access_token=XXX request
>
> but in result i get error 403 Daily Limit for Unauthenticated Use 
> Exceeded. Continued use requires signup.
>
> Why is it so?
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Problems adding Click Handler to Grid

2013-04-05 Thread Michael Prentice
I just tried this:

grid.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
System.out.println("Grid Clicked!");
}
});

And it works just fine. 

What Window class are you importing? I just tried it with import 
com.google.gwt.user.client.Window; and it worked fine in dev mode.


On Thursday, April 4, 2013 1:27:43 PM UTC-4, skippy wrote:
>
> I am using GWT 2,4 if that helps. 
>
>
> On Apr 4, 10:35 am, skippy  wrote: 
> > I am trying to add a Click Handler to a Grid object, but it never 
> > fires. 
> > 
> > tableData.addClickHandler(new ClickHandler() 
> > { 
> >  public void onClick(ClickEvent event) 
> >  { 
> > Window.alert("I am here"); 
> >   } 
> > 
> > }); 
> > 
> > Any ideas would be great. 
> > 
> > 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Hover Functionality

2013-04-05 Thread Michael Prentice
In your dev mode, do you see any errors in the console (might need to send 
a sever request to see it) like this?

[WARN] Server class 'com.x.x.Class' could not be found in the web app, but 
was found on the system classpath
   [WARN] Adding classpath entry 'file:/D:/librarydir/library.jar' to the 
web app classpath for this session
   For additional info see: 
file:/D:/Eclipse_4.2.2/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.5.1/gwt-2.5.1/doc/helpInfo/webAppClassPath.html

If so, then you might have a library that is accessible (via GWT fixing 
your classpath for you) in dev mode, but not in production.


On Friday, April 5, 2013 2:46:24 AM UTC-4, bongy_Cabs wrote:
>
> Hi,
>
> I extend a gwt celltable to create a custom celltable, i register the 
> sinkevents ie onmouseover/onmouseout.
> when you hover on the row of the table the row data is populated on the 
> hover widget(custom hover popup panel).
> its works as it supose to do on development mode but once deployed on 
> tomcat when you move the mouse over different rows on the celltable it
> does not update the hover data on the popup panel unless you click away 
> from the table(loose focus) and the hover again on the row.
>
>
>
> Thanks,
> Bongy
>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT Designer - MenuBar

2013-04-04 Thread Michael Prentice
The links in this discussion show that this was fixed on Jan 16th, 2013.

http://code.google.com/p/gwt-designer/source/detail?r=99

But it is not clear from the change or the issue in what version this fix 
was delivered. I would guess 2.5.1?

On Wednesday, April 3, 2013 2:28:14 PM UTC-4, polyg...@gmail.com wrote:
>
> Same problem here. Is there a solution??
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT Beginner's Tutorial

2013-03-28 Thread Michael Prentice
I really have enjoyed Marty Hall's slides and tutorials. The one that I 
have been using lately is 
http://www.slideshare.net/martyhall/gwt-tutorial-laying-out-windows-with-panels-part-ii-composite-panels
 (GWT 
2.5 from May 2012).

But you can find all of his GWT training slides here: 
http://www.slideshare.net/martyhall/tag/gwt

This is great stuff for beginners who are just getting into GWT!


On Friday, June 8, 2007 3:17:31 AM UTC-4, mP wrote:
>
> On Jun 8, 5:15 am, Marty Hall  wrote:
> > On Jun 6, 5:32 pm, Sanjiv Jivan  wrote:
> >
> > > I still think that "Big learning curve" listed as a disadvantage is
> > > not an accurate statement, certainly not for Java developers. Even if
> > > I was attending a Tapestry class, I wouldn't want to see one of the
> > > first slides say that it has a big learning curve ;) Maybe after the
> > > class the audience can decide if GWT is their cup of tea.
> >
> > Well, the tact I take is to *not* try to be an advocate for a
> > particular technology, but rather summarize what I think are the pros
> > and the cons as accurately as possible at the beginning. Besides, I
> > think in the long run people will be more satisfied if they have
> > realistic expectations at the beginning.
> >
> > The single most common course I teach is on JSF, and I get so many
> > requests for JSF training courses that I can hardly keep up. (A course
> > Down Under in Sydney is next: yay!).
>
> Dont come you wont like it here :)
>
> But you should see all the
> > negatives I cite about JSF early on. I am much harsher than I am with
> > GWT. In general, I think it is unhelpful to potential developers if
> > you cite the advantages without also citing the disadvantages.
> >
> > Anyhow, back to "big learning curve", I still think this is true. With
> > most other Ajax tools, developers start with what they already know
> > (xhtml, JavaScript, maybe JSP custom tags) and add in a few things.
> > With GWT, they have to think in a whole new way, and they have to
> > learn a new class for each xhtml form element that they already knew.
> > Now, I think this is *more* productive in the medium and long term,
> > but, still, my empirical observation is that people who start with GWT
> > take longer to get going *initially* than they do with other Ajax
> > tools. Instead of denying this initial ramp up time, I think it is
> > better to argue that it is well worth it in the medium to long term.
> > Or even in the just-a-bit-longer-than-short term. :-)
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Are VerticalPanel and HorizontalPanel (informally) deprecated in GWT 2.0?

2013-03-28 Thread Michael Prentice
That's a great question. I would like to know where this stands today.


On Saturday, March 13, 2010 7:10:19 AM UTC-5, Δημήτρης Μενούνος wrote:
>
> I hope not! There is nothing wrong with using Components backed by
> tables. Especially in the context of building complex web-app UIs,
> where floated divs won't cut it. So we are left with absolute
> positioning and / or tables. Absolute layout can be more precise but
> also perform worse. Personally I use a mixture of both.
>
> On Mar 12, 11:53 pm, Marty Hall  wrote:
> > Now that we have LayoutPanel and its derivatives, are we supposed to
> > eschew VerticalPanel and HorizontalPanel because they use HTML tables
> > behind the scenes?
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Diagnose GWT DMP Plugin crashes on Chrome

2013-03-28 Thread Michael Prentice
No luck. Just ran into this again. Restarting Chrome, again, fixed it.

On Wednesday, March 27, 2013 2:28:50 PM UTC-4, Michael Prentice wrote:
>
> OK, I'll give that a shot with:
>
> *-XX:MaxPermSize=384m*
>
> Thanks a lot.
>
> On Wednesday, March 27, 2013 10:03:08 AM UTC-4, xsee wrote:
>>
>> Try setting your maxPermSize in the VM args section of your launch config 
>> (mine is at 384). This keeps my Chrome plugin running all day with no 
>> problems on a medium sized project.
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Diagnose GWT DMP Plugin crashes on Chrome

2013-03-27 Thread Michael Prentice
OK, I'll give that a shot with:

*-XX:MaxPermSize=384m*

Thanks a lot.

On Wednesday, March 27, 2013 10:03:08 AM UTC-4, xsee wrote:
>
> Try setting your maxPermSize in the VM args section of your launch config 
> (mine is at 384). This keeps my Chrome plugin running all day with no 
> problems on a medium sized project.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Diagnose GWT DMP Plugin crashes on Chrome

2013-03-26 Thread Michael Prentice
I'm having a lot of issues with this too. It will run fine for a number of 
hours, but often by the end of the day, I can't load up the website because 
the plugin never even contacts the server. I have to re-start Chrome to get 
things working again. It is really not ideal.

I've briefly looked at super-dev-mode, but I haven't seen a simple tutorial 
on how to set it up or use it effectively. I guess that these Chrome plugin 
issues are the whole reason that super-dev-mode is being worked on.


On Saturday, July 21, 2012 8:12:56 AM UTC-4, Ice13ill wrote:
>
> I believe I have a similar problem. I post it here:
>
> http://stackoverflow.com/questions/11578471/gwt-development-mode-unable-to-load-module-in-chrome
>  
>
> On Wednesday, February 1, 2012 10:14:50 PM UTC+2, JoseM wrote:
>>
>> Nobody has any ideas how we can diagnose our issue?
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Closing GWT application

2013-03-26 Thread Michael Prentice
It looks like 

public static native void closeWindow() /*-{  $wnd.closeWindow();}-*/;

Should be:

public static native void closeWindow() /*-{  $doc.closeWindow();}-*/;

And the JavaScript should be:


document.closeWindow = function close() {
window.open('','_self',''); 
window.close(); 
}


On Monday, March 25, 2013 1:07:23 PM UTC-4, Michael Prentice wrote:
>
> This answer has what you are looking for:
>
> http://stackoverflow.com/questions/8617055/how-to-run-javascript-function-from-gwt-java-with-jsni
>
>
> Specifically in Java:
>
> myButton.addClickHandler(new ClickHandler(){
> public void onClick(ClickEvent event) {
> closeWindow();
> };
> });
>
> public static native void closeWindow() /*-{  $wnd.closeWindow();}-*/;
>
> Then in JavaScript in your app's .html page:
>
> 
> function closeWindow() {
> window.open('','_self',''); 
> window.close(); 
> }
>
> Someone please correct me if this isn't the proper way to call JavaScript 
> from Java within GWT. I haven't tested this, but from the documentation and 
> a lot of various questions/answers, this appears to be the way to do it. 
> Especially when not using UIBinder and doing everything through GWT 
> Designer and/or normal Java editors as Nalini needs.
>
>
>
> On Tuesday, March 12, 2013 11:40:15 PM UTC-4, Michael Prentice wrote:
>>
>> Here is how you do it on Chrome and IE:
>> http://productforums.google.com/forum/#!topic/chrome/GjsCrvPYGlA
>> http://productforums.google.com/forum/#!topic/chrome/k7aKtZlalqU
>>
>>  
>>
>>function closeWindow(){ 
>> window.open('','_self',''); 
>> window.close(); 
>>} 
>>
>>  
>>
>> There is more discussion here:
>>
>> http://stackoverflow.com/questions/8301780/javascript-code-to-close-tab-that-works-in-ie-firefox-and-chrome
>>
>> It explains that JavaScript can only close windows that were opened by 
>> JavaScript.
>>
>>
>> On Tuesday, March 12, 2013 5:44:03 PM UTC-4, nalin...@googlemail.comwrote:
>>>
>>> Hi,
>>>  
>>> I use JSNI code
>>>  
>>> public static native void closeBrowser()
>>> /*-{
>>> $wnd.close();
>>> }-*/;
>>>  
>>> to close my GWT app. It doesnt work with browsers other than IE
>>>  
>>> Any suggestions?
>>>  
>>> Regards,
>>> Nalini.K
>>>  
>>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT RPC Serialization stops working when migration from 2.4.0 to 2.5.1

2013-03-25 Thread Michael Prentice
Have you cleared out your gwt-unitCache?


On Monday, March 25, 2013 1:01:28 PM UTC-4, Paulo Martins wrote:
>
> I've updated my project from GWT 2.4.0 to GWT 2.5.1 and suddenly a 
> specific RPC serialization has stopped work (all other are still working).
>
> I have this class:
>
> public class StatusChangeMapEntity extends RecordStamp implements 
> Serializable {
>
> private HashMap>>> 
> map;
> ...
> ...
> }
>
> The exception message is:
>
> Attempt to deserialize an object of type class Pair when an object of type 
> class Slide is expected
>
> The class Slide extends StatusChangeMapEntity and is the object that is 
> being deserialized.
>
> Any ideias how to solve this problems?
>
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Closing GWT application

2013-03-25 Thread Michael Prentice
This answer has what you are looking for:
http://stackoverflow.com/questions/8617055/how-to-run-javascript-function-from-gwt-java-with-jsni


Specifically in Java:

myButton.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
closeWindow();
};
});

public static native void closeWindow() /*-{  $wnd.closeWindow();}-*/;

Then in JavaScript in your app's .html page:


function closeWindow() {
window.open('','_self',''); 
window.close(); 
}

Someone please correct me if this isn't the proper way to call JavaScript 
from Java within GWT. I haven't tested this, but from the documentation and 
a lot of various questions/answers, this appears to be the way to do it. 
Especially when not using UIBinder and doing everything through GWT 
Designer and/or normal Java editors as Nalini needs.



On Tuesday, March 12, 2013 11:40:15 PM UTC-4, Michael Prentice wrote:
>
> Here is how you do it on Chrome and IE:
> http://productforums.google.com/forum/#!topic/chrome/GjsCrvPYGlA
> http://productforums.google.com/forum/#!topic/chrome/k7aKtZlalqU
>
>  
>
>function closeWindow(){ 
> window.open('','_self',''); 
> window.close(); 
>} 
>
>  
>
> There is more discussion here:
>
> http://stackoverflow.com/questions/8301780/javascript-code-to-close-tab-that-works-in-ie-firefox-and-chrome
>
> It explains that JavaScript can only close windows that were opened by 
> JavaScript.
>
>
> On Tuesday, March 12, 2013 5:44:03 PM UTC-4, nalin...@googlemail.comwrote:
>>
>> Hi,
>>  
>> I use JSNI code
>>  
>> public static native void closeBrowser()
>> /*-{
>> $wnd.close();
>> }-*/;
>>  
>> to close my GWT app. It doesnt work with browsers other than IE
>>  
>> Any suggestions?
>>  
>> Regards,
>> Nalini.K
>>  
>>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Compiler exception after upgrade to 2.5.1

2013-03-20 Thread Michael Prentice
I thought that it might be the temp folder in /applocal/temp, but 
that didn't fix it.

The fix came when I deleted the /gwt-unitCache dir within the root 
directory of my project.

Thank you! I hit this today after upgrading to 2.5.1 yesterday.


On Wednesday, March 20, 2013 2:14:22 PM UTC-4, mdwarne wrote:
>
> Thanks,
> I'm using the Netbeans plugin for GWT can anyone point me to where the 
> gwt-unitCache folder would be?
> Thanks,
> Mike.
>
> On Tuesday, March 19, 2013 11:11:14 PM UTC-10, Thomas Broyer wrote:
>>
>> Delete the gwt-unitCache and try again.
>>
>> On Wednesday, March 20, 2013 3:27:16 AM UTC+1, mdwarne wrote:
>>>
>>> Hi,
>>>
>>> My project compiles and runs OK with GWT 2.5.0.
>>> After upgrading to version 2.5.1 Compiling the project causes an 
>>> exception (see below)
>>>
>>> This is using Java EE 6 (Mac OSX)
>>>
>>> Any ideas?
>>> Thanks,
>>> Mike
>>>
>>>
>>>[ERROR] Unexpected internal compiler error
>>> java.lang.RuntimeException: Unexpected IOException on in-memory stream
>>> at 
>>> com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:360)
>>> at 
>>> com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:670)
>>> at 
>>> com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:983)
>>> at 
>>> com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:531)
>>> at 
>>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:637)
>>> at 
>>> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
>>> at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
>>> at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
>>> at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
>>> at com.google.gwt.dev.Compiler.run(Compiler.java:232)
>>> at com.google.gwt.dev.Compiler.run(Compiler.java:198)
>>> at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
>>> at 
>>> com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
>>> at 
>>> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
>>> at com.google.gwt.dev.Compiler.main(Compiler.java:177)
>>> Caused by: java.io.InvalidClassException: 
>>> com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream 
>>> classdesc serialVersionUID = -1052417216019896795, local class 
>>> serialVersionUID = -8155793964565947646
>>> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:560)
>>> at 
>>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
>>> at 
>>> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
>>> at 
>>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1580)
>>> at 
>>> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
>>> at 
>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1729)
>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
>>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
>>> at java.util.ArrayList.readObject(ArrayList.java:593)
>>> at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at 
>>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969)
>>> at 
>>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1852)
>>> at 
>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)
>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
>>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
>>> at 
>>> com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:203)
>>> at 
>>> com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:358)
>>> ... 14 more
>>>  
>>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Not able to store JSON data in offline mode( SQLLite + MGWT)

2013-03-20 Thread Michael Prentice
How big is your database? i.e. how much data did you put in there before 
this call failed?


On Monday, March 18, 2013 10:51:52 AM UTC-4, rahul@darkhorseboa.com 
wrote:
>
> I am using Mgwt and SQLLite for andriod development. I am not able to 
> store the JSON Data in offline mode. I am getting following error.
>
> As I m new to Mgwt Plz 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Where can I find gwt-servlet.jar source jar?

2013-03-20 Thread Michael Prentice
OK, thank you. I verified that I do not have swt-servlet.jar in my 
classpath. I also verified that I have gwt-user.jar in my classpath and 
that it is set to point to itself for sources. I don't use Maven. It seems 
like Eclipse figured things out now as I'm getting JavaDoc and can browse 
to source.


On Wednesday, March 20, 2013 5:23:45 AM UTC-4, Jens wrote:
>
> gwt-servlet.jar is a subset of gwt-user.jar and as along as you have 
> gwt-user.jar in your classpath you don't need to have gwt-servlet.jar in 
> your classpath (although it needs to be deployed). So you can either 
> exclude gwt-servlet.jar in Eclipse or you make sure that gwt-user.jar is 
> before gwt-servlet.jar in your classpath. That way you will see 
> sources/JavaDoc in your IDE (provided from gwt-user.jar).
>
> If you use maven you can simple download the sources through maven. They 
> can also be found here: 
> http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22gwt-servlet%22
>
> -- 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Where can I find gwt-servlet.jar source jar?

2013-03-19 Thread Michael Prentice
The source is included with gwt-dev.jar and gwt-user.jar and likely some 
others. But it is not included with gwt-servlet.jar. I've done a number of 
Google searches and searched here on Google Groups. But I haven't found an 
answer to this specific issue.

Specifically, I am trying to get at the JavaDoc for 
com.google.gwt.place.shared.PlaceController.Delegate
 
atm.

Thank you.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't get through the GWT Designer quick start

2013-03-18 Thread Michael Prentice
I took a look at the GWT Designer Quick Start Guide 
here: https://developers.google.com/web-toolkit/tools/gwtdesigner/quick_start

And it is quite out of date. It has links and instructions for Eclipse 3.5 
and 3.6. Also the screenshots on the linked pages are no longer accurate.

There is a much more helpful presentation video here at Google I/O 2011 by 
Eric 
Clayberg: 
http://www.youtube.com/watch?v=kV5H3rGfqOE&list=PL054F0C97D9D7706B&index=12


On Monday, March 18, 2013 10:29:24 AM UTC-4, Michael Prentice wrote:
>
> When you install the GPE with GWT, your SDK dir will be something like 
> this:
>
>  dir>eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.5.0.v201212122042-rel-r42\gwt-2.5.0
>
> You should have selected to install the GWT Designer when you installed 
> the GPE from here: 
> https://developers.google.com/eclipse/docs/getting_started
>
> There is an old out of date GWT Designer update page here: 
> https://developers.google.com/web-toolkit/tools/download-gwtdesigner but 
> you should be using the update sites from the above link rather than this 
> one.
>
> Selecting 'Web Application Project' from that list should get you the 
> wizard to create your project. Then you should have something that you can 
> use GWT Designer on.
>
>
>
> On Monday, March 18, 2013 4:10:29 AM UTC-4, o.vand...@xso.nl wrote:
>>
>> Hi,
>>
>> I try to use the GWT Designer and tried starting with the quick start 
>> guid, but can't get through it.
>>
>> At step 1: I have installed a new/fresh installation of Eclipse and 
>> installed all 6 available plugins using 'install new software' in Eclipse. 
>>
>> At step 2 (*Install the latest GWT Designer build*) you can see 
>> installation instructions about how to install a plugin in eclipse, but not 
>> were you can find the GWT Designer. I think I have found it and installed 
>> the GWT Designer.
>>
>> I think step 1 and 2 are done successfully.
>>
>> At step 3: *If you have installed the GWT 
>> SDK<https://developers.google.com/web-toolkit/download?hl=nl-NL>, 
>> you need to specify the path to your GWT installation 
>> directory<https://developers.google.com/web-toolkit/tools/gwtdesigner/preferences/gwt/index?hl=nl-NL>
>> .*.  I don't know were I can found the GWT installation directory. Where 
>> can I find taht one?
>>
>> At step 4 :  *Create a new GWT project using the 
>> GPE<https://developers.google.com/eclipse/docs/creating_new_webapp?hl=nl-NL>or
>>  the GWT Designer GWT/Java 
>> project 
>> wizard<https://developers.google.com/web-toolkit/tools/gwtdesigner/wizards/gwt/project?hl=nl-NL>.
>>  
>> *I want to create a GWT project with the GWT Designer but I can't find  
>> the menu options shown there. The image shows the menu items I have got now.
>>
>> Please help me starting GWT, Thanks
>>
>>
>>
>> <https://lh6.googleusercontent.com/-b_baoawuQYw/UUNCA38zVjI/AAU/FfA5Ivvj9-Q/s1600/menu.jpg>
>>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Can't get through the GWT Designer quick start

2013-03-18 Thread Michael Prentice
When you install the GPE with GWT, your SDK dir will be something like this:

eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.5.0.v201212122042-rel-r42\gwt-2.5.0

You should have selected to install the GWT Designer when you installed the 
GPE from here: https://developers.google.com/eclipse/docs/getting_started

There is an old out of date GWT Designer update page 
here: https://developers.google.com/web-toolkit/tools/download-gwtdesigner 
but you should be using the update sites from the above link rather than 
this one.

Selecting 'Web Application Project' from that list should get you the 
wizard to create your project. Then you should have something that you can 
use GWT Designer on.



On Monday, March 18, 2013 4:10:29 AM UTC-4, o.vand...@xso.nl wrote:
>
> Hi,
>
> I try to use the GWT Designer and tried starting with the quick start 
> guid, but can't get through it.
>
> At step 1: I have installed a new/fresh installation of Eclipse and 
> installed all 6 available plugins using 'install new software' in Eclipse. 
>
> At step 2 (*Install the latest GWT Designer build*) you can see 
> installation instructions about how to install a plugin in eclipse, but not 
> were you can find the GWT Designer. I think I have found it and installed 
> the GWT Designer.
>
> I think step 1 and 2 are done successfully.
>
> At step 3: *If you have installed the GWT 
> SDK, 
> you need to specify the path to your GWT installation 
> directory
> .*.  I don't know were I can found the GWT installation directory. Where 
> can I find taht one?
>
> At step 4 :  *Create a new GWT project using the 
> GPEor
>  the GWT Designer GWT/Java 
> project 
> wizard.
>  
> *I want to create a GWT project with the GWT Designer but I can't find  
> the menu options shown there. The image shows the menu items I have got now.
>
> Please help me starting GWT, 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Aw: what kind of MVP to use, what is "current" best practice

2013-03-16 Thread Michael Prentice
Thank you very much for this discussion. I found it very helpful in 
clarifying Activities, Places, and MVP.

I've got my server side architecture figured out mostly (other than 
Guice/DI). Now this helps me to put into place my client side architecture 
(other than GIN/DI).

Now I just need to spend some more time wrapping my head around DI and how 
exactly to make it work for my project. I've looked at most of the examples 
on the GIN and Guice project pages but I just haven't really been able to 
tie them into my project cleanly yet. Perhaps it will be easier for me to 
do on the client side while using MVP + Activities and Places.


On Wednesday, April 27, 2011 11:45:28 AM UTC-4, Thomas Broyer wrote:
>
>
>
> On Wednesday, April 27, 2011 4:55:06 PM UTC+2, tanteanni wrote:
>>
>> Is it possible (or probably preferable) to "aid" the implementation of 
>> MVP by a MVP-Framework (like those mentioned above)? or would this raise 
>> some conflicts with gwt's places and ativities?
>>
>
> GWTP and Mvp4g both do much more than just "MVP" (because you really don't 
> need any kind of framework for MVP: just create two interfaces, two 
> implementations of those interfaces and you're done; the hard part is the 
> lifecycle of your "components", and how you "plug" them together, and this 
> is where activities, GWTP and Mvp4g chime in), so they indeed "conflict" 
> with the activities framework (that's the deal with frameworks vs. 
> toolkits/libraries).
> In the end, you'll have to choose one of them three. My choice is 
> activities, but YMMV, and both GWTP and Mvp4g are very good frameworks 
> (made by really nice and skillful guys). It's just that I don't like 
> frameworks, and "activities" is so lightweight that it's hardly more than a 
> toolkit: if there's a part of it you don't like, you can very easily 
> replace it with your own, because you still have to do the bootstrap 
> yourself (contrary to most said "frameworks"; see, with GWTP your 
> EntryPoint is almost empty, and with Mvp4g you don't even have your own 
> EntryPoint!)
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: No Source code is available for type client.Utilityt, did you forget to inherit a required module?

2013-03-15 Thread Michael Prentice
I ran into this sort of a problem today. I followed the steps from TONS of 
articles, tutorials, guides, and posts. But none worked!

Here was the final solution after hours of banging my head:

I was using the source path tag wrong in gwt.xml in my external jar:

*WRONG:*


*RIGHT:*


None of the other guides covered the possibility of only including a 
sub-dir of your module as translatable code, so I didn't find an example of 
how this path should be formatted. But I should have realized that it was a 
path and not a package name, duh!


On Monday, February 7, 2011 12:09:33 PM UTC-5, Hilco Wijbenga wrote:
>
> On 5 February 2011 21:14, Dallas007 > 
> wrote:
> > Hi,
> > i am new to GWT so need help please. I'm am not able to compile my
> > code due to below error.
> >
> > Here are my project details,
> > I have added a new class Utility.java which is out side of Client
> > package. I have instantiae the Utiltity object inside cliant code and
> > imported the class. So I am not sure how to fix this could you please
> > advise me on this?. How to use my Utility class in side client code?
>
> See 
> http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html
> ,
> specifically the  tag.
>
> I would suggest you create a separate module for your utility code.
> The generated JAR should contain:
>
> org/example/utils/Code.java
> org/example/utils/Code.class
> org/example/Utilities.gwt.xml
>
> Where Utilities.gwt.xml has
>
> 
>PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.0.1//EN"
>   "
> http://google-web-toolkit.googlecode.com/svn/tags/2.0.1/distro-source/core/src/gwt-module.dtd
> "
> >
> 
>   
>   
> 
>
> Then you can use  to use your
> utility code in other 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT 2.5.1 now available

2013-03-15 Thread Michael Prentice
As Thomas posted earlier, *"Google Plugin for Eclipse team, you should ask 
on https://groups.google.com/d/forum/google-plugin-eclipse".*

To clarify on that, the update site installs the GPE (Google Plugin for 
Eclipse) which includes GWT. The GPE team needs to build the new GWT into 
their next release, then they will make it available via the update site 
and your Eclipse update will appear.

Re-downloading the latest SDK from the update site will still get you GWT 
2.5.0 until the new GPE version with GWT 2.5.1 is made available.


On Thursday, March 14, 2013 9:17:35 PM UTC-4, jduffy wrote:
>
>
> Thanks for the feedback, Matthew
>
> Eclipse still reports that no updates are available.
>
> Just for clarity, I originally installed the GWT SDK and related Eclipse 
> plugins by doing the following:
>
> 1. Clicked 'Help->Install New Software' from the Eclipse menu
> 2. Clicked 'Add' to create a new Repository
> 3. Added the URL located on the GWT Download site: 
> http://dl.google.com/eclipse/plugin/4.2
> 4. Selected all packages except for the "Google App Engine" stuff.
>
> This installed the plugins and the SDK and setup my Eclipse workspace to 
> point to the SDK (2.5.0)
>
> Now, I go to 'Help->Check for Updates' in hopes that Eclipse will indicate 
> that GWT 2.5.1 is there but instead it says that no updates are available. 
>
> My theory is that the SDK itself is maybe not "technically" part of any 
> Eclipse plugin so the update site is unable to distinguish between the 
> Eclipse plugins and the SDK itself. This is because I do get periodic 
> updates to the GWT related plugins such as GWTDesigner and so on.
>
> Anyway, just wanted to clarify this. In order to update now I will simply 
> reinstall Eclipse and re download the latest SDK from the update site.
>
> Thanks!
>
> On Thursday, March 14, 2013 10:05:40 AM UTC-7, Matthew Dempsky wrote:
>>
>> On Wed, Mar 13, 2013 at 10:33 PM, jduffy  wrote:
>>
>>> Has 2.5.1 been posted to the Eclipse update site yet? When I check for 
>>> software updates in Eclipse it says that none are available.. Should it 
>>> automatically update from 2.5.0 to 2.5.1?
>>>
>>
>> I'm not very familiar with the Eclipse plugin to be honest, but I believe 
>> it should work as we uploaded the 2.5.1 SDK to the Eclipse repository 
>> yesterday.  E.g., http://dl.google.com/dl/eclipse/gwt/site.xml currently 
>> redirects to 
>> http://commondatastorage.googleapis.com/eclipse_toolreleases/products/sdks/gwt/gwt-2.5.1/site.xml
>> .
>>
>> Can you try again and let me know if things still aren't working as 
>> expected?
>>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: GWT 2.5.1 now available

2013-03-14 Thread Michael Prentice
Looking forward to checking it out once the GPE update is available. Thank 
you.

On Thursday, March 14, 2013 4:24:06 AM UTC-4, Thomas Broyer wrote:
>
> The p2 release is made by the Google Plugin for Eclipse team, you should 
> ask on https://groups.google.com/d/forum/google-plugin-eclipse
>
> On Thursday, March 14, 2013 6:33:36 AM UTC+1, jduffy wrote:
>>
>>
>> Thank you to all the GWT contributors for this new release. Keep up the 
>> great work!
>>
>> Has 2.5.1 been posted to the Eclipse update site yet? When I check for 
>> software updates in Eclipse it says that none are available.. Should it 
>> automatically update from 2.5.0 to 2.5.1?
>>
>>
>>
>>
>> On Monday, March 11, 2013 6:11:16 PM UTC-7, Matthew Dempsky wrote:
>>>
>>> Hi everyone,
>>>
>>> We're excited to announce the GWT 2.5.1 release!  There will be an 
>>> announcement soon on the GWT Blog, 
>>> and you can download it 
>>> here.
>>>  
>>>  This release has been uploaded to Maven Central with the version string of 
>>> "2.5.1".
>>>
>>> GWT 2.5.1 contains over 50 new bug fixes, many of which were contributed 
>>> by the community.  Thanks to everyone who reported issues and/or submitted 
>>> patches.
>>>
>>> -Matthew, on behalf of the GWT team
>>>
>>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Closing GWT application

2013-03-12 Thread Michael Prentice
Here is how you do it on Chrome and IE:
http://productforums.google.com/forum/#!topic/chrome/GjsCrvPYGlA
http://productforums.google.com/forum/#!topic/chrome/k7aKtZlalqU

 

   function closeWindow(){ 
window.open('','_self',''); 
window.close(); 
   } 

 

There is more discussion here:
http://stackoverflow.com/questions/8301780/javascript-code-to-close-tab-that-works-in-ie-firefox-and-chrome

It explains that JavaScript can only close windows that were opened by 
JavaScript.


On Tuesday, March 12, 2013 5:44:03 PM UTC-4, nalin...@googlemail.com wrote:
>
> Hi,
>  
> I use JSNI code
>  
> public static native void closeBrowser()
> /*-{
> $wnd.close();
> }-*/;
>  
> to close my GWT app. It doesnt work with browsers other than IE
>  
> Any suggestions?
>  
> Regards,
> Nalini.K
>  
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Java7 Langauge Feature Support

2013-03-12 Thread Michael Prentice
2.5.1 release notes include the following:

*Developer Mode*
*Fixed compatibility with OpenJDK 7.*

I don't believe that that includes support for Java 7 language features 
though.

This same discussion already exists 
here: 
https://groups.google.com/forum/#!topic/google-web-toolkit/dM8D9imIvAI/discussion

There is discussion there that Eclipse JDT needed to be updated to Java7. 
That has been completed:
*The Eclipse Java 7 support is no longer in BETA phase. It has been 
integrated into the existing streams.*
*
*
The latest post in that thread has the following info:
*GWT 2.5 is fully compatible with JDK 7 (see 
https://developers.google.com/web-toolkit/release-notes#Release_Notes_2_5_0_RC2
).*
*Just make sure you only use Java 6 constructs in your client code (in 
Eclipse, Project properties → Java Compiler, set “JDK Compliance” to 1.6; 
in Maven, set “maven.compiler.source” and “maven.compiler.target” to 1.6 or 
6).*

There was also this post:
*We've occasionally talked about supporting Java 7 features, but there's no 
concrete plan or schedule to implement them.*
*
*
*
*

On Tuesday, March 12, 2013 11:28:42 AM UTC-4, Stefan McDaniel wrote:
>
> The company I work for uses GWT in a fashion that allows us to reuse logic 
> that was originally run only on the server. Since this server code changes 
> over time, and the company updates to the latest version of Java fairly 
> quickly, there is a growing amount of developers using Java7 language 
> features. Occasionally the new language features are added to files 
> examined by the GWT compiler, which of course fails and requires the 
> changes to be backed out. This results in a medium sized brew-haha every 
> three months or so as to why we are using a technology that isn't keeping 
> current with Java while the company is commited to doing so.
>  
> So, two questions:
> 1) What is the timeframe to update the ECJ to a version that handles Java7 
> language features?
> 2) I've messed around in the GWT compiler quite a bit. What is the level 
> of diffciulty related to updating the ECJ used by the GWT Compiler myself?
>  
> Thanks,
> Stefan
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: I/O 2013 - GWT Sessions?

2013-03-10 Thread Michael Prentice
I'm certainly hoping to see some GWT sessions at this year's I/O 
conference. It will be quite disappointing if there are none. A separate 
conference sounds interesting, but I doubt that I could get approval to 
attend a GWT only conference on the west coast. The idea about Atlanta 
would be great. I could almost certainly get approval to go to ATL for a 
GWT event since it is so close to FL.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.