How to save data for both GAE and Tomcat?

2013-04-26 Thread membersound
Hi,

I'm in the start of integrating some storage system for my pet project.

During development I'm using GAE. Someday I'm gonna release the app 
probably to a Tomcat server.

Is the GWT Datastore limited to be used with GAE? If so, is there any 
storage technique I can use on both servers?

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: How to save data for both GAE and Tomcat?

2013-04-26 Thread Ashwin Desikan
Gwt and gae are two different entities. Yea they r from Google so you can 
expect them to work well together. 

You can use GWt with any database. 



membersound kodyreco...@gmail.com wrote:

Hi,

I'm in the start of integrating some storage system for my pet project.

During development I'm using GAE. Someday I'm gonna release the app probably 
to a Tomcat server.

Is the GWT Datastore limited to be used with GAE? If so, is there any storage 
technique I can use on both servers?

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.
 
 

-- 
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: Theme GWT, how does it works?

2013-04-26 Thread sebastien . ribeil
If I delete:

   inherits name='com.google.gwt.user.theme.clean.Clean'/
   inherits name='com.google.gwt.user.theme.standard.Standard'/


and if I run the project with eclipse, my project just use the CSS. And if 
I copy the same project on the server, the CSS doesn't do anything.

In fact, if I put the 2 line (for the theme) in the gwt.xml or if I don't 
do that, and if I delete the CSS on my server, I have the same result. The 
theme and the CSS don't do anything. Why? 

I just copy my file on the server, and I open the .html in a web browser, I 
have to do something else to make it works with theme and CSS?

Le jeudi 25 avril 2013 14:49:39 UTC-4, sebastie...@isen-lille.fr a écrit :

 Hi,

 My web application has serveral widgets like 
 datePicker, dynamicDecorator... If I run my project with eclipse, widgets 
 are ok.

 I want to build my project on lighthttpd, so I just copy my folder on my 
 server. When I open website with a web broswer, it works but all my widgets 
 have no style. ( for example, there are only the numbers for the 
 datePicker: no color, no background...). 


 I guess that the theme doesn't work without eclipse but in my gwt.xml I 
 have:

   inherits name='com.google.gwt.user.theme.clean.Clean'/
   inherits name='com.google.gwt.user.theme.standard.Standard'/


  Do I really need to fill my CSS file to do the same thing with or without 
 eclipse? Can I use the GWT theme without eclipse? I don't really understand 
 the connections between the themes and the CSS..

 Thank you 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: Theme GWT, how does it works?

2013-04-26 Thread Jens
First you only need one theme, either Standard or Clean.

After you have compiled your app to Javascript, your war/WebContent folder 
should have a folder with the name of your GWT module and inside that 
folder there should be all the compiled JS files (hash.cache.html) and a 
folder called gwt which contains the theme images/css. Make sure you have 
copied all this to your web server.

Then use Firebug (for Firefox) or Chrome developer tools to check if css 
files are loaded correctly by checking the network requests. Fix any HTTP 
404 errors.

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




Startupurl when having maven structure

2013-04-26 Thread Kris
Hi, when running in dev mode I get problem with the startup url.. 
I have a maven struture, so the html file is in 
src/main/webapp. 

see attached pic... 

But I get a 

HTTP ERROR: 404

NOT_FOUND

RequestURI=/ppmock.html

*Powered by Jetty:// http://jetty.mortbay.org/*

What should the -startupurl be in the arguments in the run configuration in 
eclipse. ?? 

-war C:\jsi-workspace2\JSI\ppmock\target\ppmock-1.0.0-SNAPSHOT -remoteUI 
${gwt_remote_ui_server_port}:${unique_id} -startupUrl ppmock.html 
-logLevel INFO -codeServerPort 9997 -port  com.farheap.jsi.ppmock.ppmock


*
*

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


attachment: ppmock.png

Re: Startupurl when having maven structure

2013-04-26 Thread Juan Pablo Gardella
Try http://localhost:port/yourfile.html in startupUrl


2013/4/26 Kris kli...@gmail.com

 Hi, when running in dev mode I get problem with the startup url..
 I have a maven struture, so the html file is in
 src/main/webapp.

 see attached pic...

 But I get a

 HTTP ERROR: 404

 NOT_FOUND

 RequestURI=/ppmock.html

 *Powered by Jetty:// http://jetty.mortbay.org/*

 What should the -startupurl be in the arguments in the run configuration
 in eclipse. ??

 -war C:\jsi-workspace2\JSI\ppmock\target\ppmock-1.0.0-SNAPSHOT -remoteUI
 ${gwt_remote_ui_server_port}:${unique_id} -startupUrl ppmock.html
 -logLevel INFO -codeServerPort 9997 -port  com.farheap.jsi.ppmock.ppmock


 *
 *

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




-- 
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: Startupurl when having maven structure

2013-04-26 Thread Thomas Broyer


On Friday, April 26, 2013 7:58:16 PM UTC+2, Kris wrote:

 Hi, when running in dev mode I get problem with the startup url.. 
 I have a maven struture, so the html file is in 
 src/main/webapp. 

 see attached pic... 

 But I get a 

 HTTP ERROR: 404

 NOT_FOUND

 RequestURI=/ppmock.html

 *Powered by Jetty:// http://jetty.mortbay.org/*

 What should the -startupurl be in the arguments in the run configuration 
 in eclipse. ?? 

 -war C:\jsi-workspace2\JSI\ppmock\target\ppmock-1.0.0-SNAPSHOT -remoteUI 
 ${gwt_remote_ui_server_port}:${unique_id} -startupUrl ppmock.html 
 -logLevel INFO -codeServerPort 9997 -port  com.farheap.jsi.ppmock.ppmock


This is OK, but did you run an mvn package or mvn compile war:exploded 
before you run the DevMode?
See https://developers.google.com/eclipse/docs/faq#gwt_with_maven
 

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




How to execute periodic timers on the server side GAE?

2013-04-26 Thread membersound
Hi,

how can I schedule a periodic timer (every X minutes) on the serverside?
I have a ScheduledExecutorService, but discovered that I cannot use this on 
GAE serverside.

Is there any possibility to create a schedule task that just runs in the 
background, without having to trigger it explicit from the client side?
Thnx

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




UiField cellBrowser with 'provided = true' was null

2013-04-26 Thread Kris
When running in dev mode I get : 

Caused by: java.lang.AssertionError: UiField cellBrowser with 'provided = 
true' was null
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl$Widgets.build_cellBrowser(PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.java:129)
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl$Widgets.get_cellBrowser(PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.java:124)
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl$Widgets.build_f_HTMLPanel1(PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.java:99)
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl$Widgets.get_f_HTMLPanel1(PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.java:86)
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl$Widgets.access$0(PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.java:85)
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.createAndBindUi(PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.java:30)
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.createAndBindUi(PrintProviderCellBrowser_PrintProviderCellBrowserUIBinderImpl.java:1)
at 
com.farheap.jsi.ppmock.client.PrintProviderCellBrowser.init(PrintProviderCellBrowser.java:30)
at com.farheap.jsi.ppmock.client.Main.onModuleLoad(Main.java:47)
... 9 more


package com.farheap.jsi.ppmock.client;

import java.beans.Beans;
import java.util.ArrayList;
import java.util.List;

import com.farheap.jsi.ppmock.client.service.PrintProviderMockService;
import com.farheap.jsi.ppmock.client.service.PrintProviderMockServiceAsync;
import com.farheap.jsi.ppmock.shared.pojo.PrintProviderMock;
import com.farheap.jsi.ppmock.shared.pojo.PrintProviderMockError;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellBrowser;
import com.google.gwt.user.cellview.client.CellBrowser.Builder;
import 
com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy.KeyboardSelectionPolicy;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class PrintProviderCellBrowser extends Composite {
private final PrintProviderMockServiceAsync ppmockService = 
GWT.create(PrintProviderMockService.class);
private static PrintProviderCellBrowserUIBinder uiBinder = 
GWT.create(PrintProviderCellBrowserUIBinder.class);
interface PrintProviderCellBrowserUIBinder extends UiBinderWidget, 
PrintProviderCellBrowser {}

@UiField(provided=true)
CellBrowser cellBrowser;

public PrintProviderCellBrowser() throws Exception {
initWidget(uiBinder.createAndBindUi(this));
final PrintProviderModel model = new PrintProviderModel();
if (!Beans.isDesignTime()  Main.live) {
ppmockService.getPrintProviders(new 
AsyncCallbackArrayListPrintProviderMock() {

@Override
public void onSuccess(ArrayListPrintProviderMock result) {
model.setData(result);
}

@Override
public void onFailure(Throwable t) {
t.printStackTrace();
}
});
} else {
PrintProviderMock printProviderMock1 = new PrintProviderMock();
printProviderMock1.setId(1L);
printProviderMock1.setName(Print Provider 1);

PrintProviderMock printProviderMock2 = new PrintProviderMock();
printProviderMock2.setId(2L);
printProviderMock2.setName(Print Provider 2);

PrintProviderMockError error1 = new PrintProviderMockError();
error1.setEnabled(true);
error1.setErrorCode(1);
error1.setId(1L);
error1.setName(Error 1);

PrintProviderMockError error2 = new PrintProviderMockError();
error2.setEnabled(true);
error2.setErrorCode(2);
error2.setId(2L);
error2.setName(Error 2);

PrintProviderMockError error3 = new PrintProviderMockError();
error3.setEnabled(true);
error3.setErrorCode(3);
error3.setId(3L);
error3.setName(Error 3);

printProviderMock1.addPrintProviderMockError(error1);
printProviderMock1.addPrintProviderMockError(error2);
printProviderMock1.addPrintProviderMockError(error3);

printProviderMock2.addPrintProviderMockError(error1);
printProviderMock2.addPrintProviderMockError(error2);

ListPrintProviderMock list = new ArrayListPrintProviderMock();
list.add(printProviderMock1);
list.add(printProviderMock2);

model.setData(list);

}

BuilderPrintProviderMock builder = new BuilderPrintProviderMock(model, 
null);
cellBrowser = builder.build();
cellBrowser.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
Widget widget = uiBinder.createAndBindUi(this);
initWidget(widget);

}
}





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

Re: UiField cellBrowser with 'provided = true' was null

2013-04-26 Thread Jens
You have to create cellBrowser before 
calling uiBinder.createAndBindUi(this).

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




Re: UiField cellBrowser with 'provided = true' was null

2013-04-26 Thread Kris
Isn't that what I am doing here... 

cellBrowser = builder.build();

-- 
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: UiField cellBrowser with 'provided = true' was null

2013-04-26 Thread Kris
This is actually working... I had that before I changed the code after 
going through a tutorial.. 

public class PrintProviderCellBrowser extends Composite {
private final PrintProviderMockServiceAsync ppmockService = 
GWT.create(PrintProviderMockService.class);

interface Binder extends UiBinderWidget, PrintProviderCellBrowser {
}

private static Binder uiBinder = GWT.create(Binder.class);

/**
 * The CellBrowser.
 */
@UiField(provided = true)
CellBrowser cellBrowser;

public PrintProviderCellBrowser() throws Exception {
final PrintProviderModel model = new PrintProviderModel();
BuilderPrintProviderMock builder = new BuilderPrintProviderMock(model, 
null);
cellBrowser = builder.build();
cellBrowser.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
Widget widget = uiBinder.createAndBindUi(this);
initWidget(widget);

}
}

-- 
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: UiField cellBrowser with 'provided = true' was null

2013-04-26 Thread Jens
Hehe I didn't read to the bottom because the first line in your constructor 
is already initWidget(uiBinder.createAndBindUi(this));

Delete the first line and it should work.

-- J.

Am Freitag, 26. April 2013 21:52:09 UTC+2 schrieb Kris:

 Isn't that what I am doing here... 

 cellBrowser = builder.build();


-- 
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: UiField cellBrowser with 'provided = true' was null

2013-04-26 Thread Kris
ahh I see it... :) has uiBinder.createAndBindUi(this) twice

initWidget(uiBinder.createAndBindUi(this));

has to be after creating the cellbrowser. 

-- 
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: IE10 support in Gwt

2013-04-26 Thread Colin Alworth


In most cases that is true, but CssResource is an interesting exception. 
The fallback rules work by looking to see if there is no implementation for 
a particular value, and if not, looking to see if there *is* an 
implementation for some other value. In the case of ClientBundle and 
CssResource, they are generated at compile time - when you refer to @if 
user.agent ie9, that will be compiled *only* into the ie9 build, and not 
into any ie10 build, which will only contain non-qualified code or 
statements that actually evaluate to true for ie10.

But yes, otherwise it should behave as you've described.
On Monday, April 22, 2013 5:01:56 AM UTC-5, Honza Rames wrote:

 It does but out of curiosity, if I add IE10 permutation/browser detection 
 to UserAgent.gwt.xml to which value should I set the property-fallback? I 
 mean is property fallback-recursive (I would assume it is) so setting it to 
 IE9 should work? In case IE9 rule isn't specified it will recursively 
 fallback to IE8 (and generate a compiler warning) right?

 On Wednesday, April 17, 2013 12:40:04 AM UTC+2, Thomas Broyer wrote:



 On Tuesday, April 16, 2013 2:07:34 PM UTC+2, Mariusz Magdziarz wrote:

 When you add support for IE10??


 AFAIK, IE10 works OK with the ie9 permutation.
 Vaadin has started working on bringing MSPointerEvents to support 
 touch-enabled (and touch-only) devices.



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




java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

2013-04-26 Thread Kris
Hi, I have a class path problem. 

Using eclipse juno, maven plugin and gwt plugin. 

In my gwt server code I use slf4j. When doing something on the gui that 
makes a RPC I get.. 

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

My project has a maven structure, and has 
dependency
groupIdorg.slf4j/groupId
artifactIdslf4j-api/artifactId
scopeprovided/scope
/dependency

Google settings : War directory : src/main/webapp

I seem to have a lot of problem with having a maven GWT project. Seems like 
the maven plugin and the GWT plugin really dont work together that well. 



-- 
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: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

2013-04-26 Thread Kris
Actually it is caused by... 
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory

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




In the suggest box, is there a way to avoid highlighting the matched letter?

2013-04-26 Thread Mohammad Al-Quraian
As it says in the title, is there an easy way? Because it doesn't look very 
pretty in the Arabic language.

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




New To GWT: Objects in composite object not aligned correctly

2013-04-26 Thread Chris Brown
I created a composite object for a date range that is supposed to be all 
bottom aligned. My text boxes are not aligned with my listbox and it's 
driving me crazy. Thanks for the help.


import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

public class YearWeekInput extends Composite{

ListBox listBox;
YearWeekPanel fromPanel;
YearWeekPanel toPanel;

public YearWeekInput() {

HorizontalPanel mainPanel = new HorizontalPanel();
mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
mainPanel.setSpacing(5);
 mainPanel.add(getListBox());
mainPanel.add(getFromPanel());
mainPanel.add(getToPanel());

initWidget(mainPanel);
setStyleName(year-week-input);
}

private ListBox getListBox(){

if(listBox == null){
listBox = new ListBox(false);
listBox.setVisibleItemCount(1);
listBox.addItem( Year/Week Single);
listBox.addItem(Year/Week Range);
}

return listBox;
}

private YearWeekPanel getFromPanel(){

if(fromPanel == null){
fromPanel = new YearWeekPanel(From);
}

return fromPanel;
}

private YearWeekPanel getToPanel(){

if(toPanel == null){
toPanel = new YearWeekPanel(To);
}

return toPanel;
}

private class YearWeekPanel extends Composite {

private TextBox year;
private TextBox week;

public YearWeekPanel(String title) {

VerticalPanel mainPanel = new VerticalPanel();
mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
mainPanel.setBorderWidth(0);

mainPanel.add(new Label(title));
mainPanel.add(getTextFields());

initWidget(mainPanel);
setStyleName(title + -year-week-panel);
}

private Panel getTextFields(){

HorizontalPanel hPanel = new HorizontalPanel();
hPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
hPanel.setSpacing(2);

hPanel.add(getYearTextBox());
hPanel.add(getWeekTextBox());

return hPanel;
}
 private TextBox getYearTextBox(){
if(year == null){
year = new TextBox();
year.setWidth(4em);
}
 return year;
}
 private TextBox getWeekTextBox(){
if(week == null){
week = new TextBox();
week.setWidth(2.5em);
}
 return week;
}
}
}

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




GWT 2.5.1 - Incubator Deprecated Classes

2013-04-26 Thread Sivakumar Natarajan
We are migrating one of our web projects written in gwt 2.4.0 to 2.5.1. We 
see that the gwt-incubator classes has been deprecated in 2.5.1. We could 
nt find the alternative classes for the corresponding incubator classes 
which were working fine with 2.4.1 version in the maven pom. 

Once we remove the pom specification of gwt-incubator 2.4.1 we get the 
following issues in the maven compile

package com.google.gwt.gen2.table.client does not exist
package com.google.gwt.gen2.table.client.AbstractScrollTable does not exist
package com.google.gwt.gen2.table.client.TableModel does not exist
package com.google.gwt.gen2.table.client.TableModelHelper does not exist
package com.google.gwt.gen2.table.event.client.TableEvent does not exist
com.google.gwt.gen2.table.client.CachedTableModel
com.google.gwt.gen2.table.client.PagingOptions

com.google.gwt.gen2.table.client.PagingScrollTable

com.google.gwt.gen2.table.client.AbstractScrollTable.ScrollPolicy

com.google.gwt.gen2.table.override.client.Grid

com.google.gwt.gen2.table.client.AbstractColumnDefinition

com.google.gwt.gen2.table.client.DefaultTableDefinition

com.google.gwt.gen2.table.client.MutableTableModel

com.google.gwt.gen2.table.client.TableDefinition

com.google.gwt.gen2.table.client.TableModel

com.google.gwt.gen2.table.client.TableModel.Callback

com.google.gwt.gen2.table.client.TableModelHelper.Request

com.google.gwt.gen2.table.client.TableModelHelper.Response
Per some discussion forums, it has been mentioned that all the incubator 
and widget classes has been moved to gwt trunk. 

We just checked the GWT Incubator Wiki Site for the replacement classes. 
https://code.google.com/p/google-web-toolkit-incubator/ 

Not all the classes that we have used in gwt have been mentioned with the 
gwt replacement classes.

Could you please let us know what should be the replacement api or the 
alternate classes that we would have to use for the gwt incubator related 
deprecated apis while using gwt 2.5.1. We appreciate your valuable 
suggestions here.

thanks,

shiva

-- 
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: Parametrized Css class

2013-04-26 Thread Goktug Gokdogan
For anyone waiting for this;
Sorry guys, priorities are changed and it doesn't look like I will be able
to work on it anytime soon :(

Feel free to give it a try yourself  send a patch; I'll try to help you
out along the way.


On Tue, Jan 29, 2013 at 12:56 PM, Rob rob.fergu...@uptick.com.au wrote:

 Hi,

 What about using SASS (Syntactically Awesome Stylesheets)?

 Take a look at this post:

 https://vaadin.com/blog/-/blogs/link-to-the-client-side-from-sass

 Cheers
 Rob

 On Tuesday, January 29, 2013 7:11:42 AM UTC+11, Joseph Lust wrote:

 Thanks Goktug! CSS3 and GWT have been the biggest issue for me in the
 last year. I can't wait! And, as TBroyer pointed out in a post last 
 year,https://groups.google.com/forum/?fromgroups=#!searchin/google-web-toolkit/Closure$20Stylesheets/google-web-toolkit/jd5y7nHyUdU/m1tOVMJMSRkJonce
  this is ready, it should be possible to use as a custom
 ResourceGenerator, so hopefully some of us could use it before GWT 2.5+1


 Sincerely,
 Joseph

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




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




[gwt-contrib] Change in gwt[master]: Introduces generic Composite widgets.

2013-04-26 Thread Thomas Broyer

Thomas Broyer has posted comments on this change.

Change subject: Introduces generic Composite widgets.
..


Patch Set 1:

(3 comments)

Why couldn't we just make Composite (and ResizeComposite) generic rather  
than introducing a new class? All current uses of Composite would be seen  
by the compiler as extending the raw class, so all you get is a warning.  
Changing ResizeComposite would be a breaking-change API-wise but I doubt  
anyone uses a ResizeComposite with a non-RequiresResize widget anyway as it  
breaks at runtime, so it shouldn't break anyone in practice.



File user/src/com/google/gwt/user/client/ui/PanelComposite.java
Line 39: this.add(asWidgetOrNull(w));
How about:

   T widget = getCheckedWidget();
   if (widget instance of HasWidgets.ForIsWidget) {
  widget.add(w);
   } else {
  this.add(getWidgetOrNull(w));
   }

in case the wrapped widget defers the call to asWidget(). If all HasWidgets  
used in the app are HasWidgets.ForIsWidget (or with a bit of luck, those  
used within a PanelComposite; I don't know how smart the compiler can be in  
this case), then the if() will be evaluated statically and simplified in  
the generated JS.


AFAICT, all stock HasWidgets are HasWidgets.ForIsWidget.



File user/src/com/google/gwt/user/client/ui/ResizeComposite.java
Line 23:  * If you want initWidget/getWidget to be type safe please use
Should ResizeComposite be deprecated then?



File user/src/com/google/gwt/user/client/ui/TypedComposite.java
Line 118: if (widget == null) {
onAttach will fail already with an NPE.

IMO, render() should check it when renderable==null (if renderable!=null,  
then widget should be !=null so there's no need to test, though we could  
add an 'assert')



--
To view, visit https://gwt-review.googlesource.com/2582
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I41e5c07e978d442db7d8402c57605cec1b3ea09e
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Matthew Dempsky mdemp...@gwtproject.org
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: Yes

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gwt-contrib] Change in gwt[master]: Introduces generic Composite widgets.

2013-04-26 Thread Goktug Gokdogan

Goktug Gokdogan has posted comments on this change.

Change subject: Introduces generic Composite widgets.
..


Patch Set 1:

Thomas, I sent an email to gwt contributors list that discusses the  
advantages and disadvantages.


--
To view, visit https://gwt-review.googlesource.com/2582
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I41e5c07e978d442db7d8402c57605cec1b3ea09e
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Matthew Dempsky mdemp...@gwtproject.org
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: No

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gwt-contrib] Change in gwt[master]: Fixes a missing flow in DataflowOptimizer that might cause i...

2013-04-26 Thread Roberto Lublinerman

Roberto Lublinerman has abandoned this change.

Change subject: Fixes a missing flow in DataflowOptimizer that might cause  
incorrect code.

..


Abandoned

Submitted, thanks!

--
To view, visit https://gwt-review.googlesource.com/2600
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: abandon
Gerrit-Change-Id: I608bd25157eb0c76ac771697ca70756751c10750
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Roberto Lublinerman rlu...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: John Stalcup stal...@google.com
Gerrit-Reviewer: Matthew Dempsky mdemp...@google.com
Gerrit-Reviewer: Matthew Dempsky mdemp...@gwtproject.org
Gerrit-Reviewer: Ray Cromwell cromwell...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[gwt-contrib] Change in gwt[master]: Introduces generic Composite widgets.

2013-04-26 Thread Goktug Gokdogan

Goktug Gokdogan has posted comments on this change.

Change subject: Introduces generic Composite widgets.
..


Patch Set 1:

(6 comments)

Just to be clear, I'm not oppose to add generics to Composite itself. I'm  
just concerned about simple case where people don't need any generics  
(which is much more common).

I would like to hear what other people think about alternatives.


File user/src/com/google/gwt/user/client/ui/PanelComposite.java
Line 39: this.add(asWidgetOrNull(w));
I'm not sure what are we trying to solve with this alternative?



File user/src/com/google/gwt/user/client/ui/ResizeComposite.java
Line 23:  * If you want initWidget/getWidget to be type safe please use
Actually, this class exist for the same reason non-generic Composite exists.
I didn't extend TypeComposite to keep it backward compatible but we can  
change that.




File user/src/com/google/gwt/user/client/ui/TypedComposite.java
Line 34:  * {@example com.google.gwt.examples.CompositeExample}
Will take a look after we decide how to move forward.


Line 118: if (widget == null) {
Any of the public APIs of the widget can be called from outside without the  
widget attached to the dom. When that happens, if initwidget is not called  
yet, they will end up with NPE.
Although I used getCheckedWidget in new ones, Composite class itself is  
still prone to this issue as it is not using getCheckedWidget itself:

https://code.google.com/p/google-web-toolkit/issues/detail?id=6997

I can send another CL to fix that?


Line 118: if (widget == null) {
Actually I'm totally lost in Renderable part. Wouldn't it also fail with  
with NPE when initializeClaimedElement called? Isn't that a better place to  
put the check?




File user/src/com/google/gwt/user/client/ui/TypedResizeComposite.java
Line 25: public abstract class TypedResizeCompositeT extends Widget   
RequiresResize
I like the idea that it will show up next to Composite but I think that  
feels same as deprecating the old one. If we want everybody to use  
Composite2 then we can just change Composite itself to add generics - which  
is OK with me.



--
To view, visit https://gwt-review.googlesource.com/2582
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I41e5c07e978d442db7d8402c57605cec1b3ea09e
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: Matthew Dempsky mdemp...@gwtproject.org
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: Yes

--
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups Google Web Toolkit Contributors group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.