what is the difference between the two packages of event

2014-04-23 Thread wahaha
com.google.web.bindery.event.shared

 
 com.google.gwt.event.shared

what is the difference please?
 

-- 
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: what is the difference between the two packages of event

2014-04-23 Thread Juan Pablo Gardella
They are similar, but the bindery package was a refactor introduced to make
eventBus available outside GWT package. The shared package is deprecated.
See http://gwt-code-reviews.appspot.com/1394803/


2014-04-23 5:43 GMT-03:00 wahaha zzz...@gmail.com:

 com.google.web.bindery.event.shared


  com.google.gwt.event.shared

 what is the difference please?

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


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


Re: RadioButton does not get selected when setValue is called events not fired in IE

2014-04-23 Thread Ben Hahne
dhoffer dhoffer6@... writes:

 
 I have two RadioButtons on a panel, each have an
 addValueChangeHandler() listener.  Later after all the widgets are
 created and added to the panelI call readiobutton1.setValue(true,
 true) to both set it as selected and to fire events which the
 addValueChangeHandler() listener should pickup.
 
 However here is what happens.
 
 - Most of the time the selected RadioButton is not enabled, that is,
 neither of the RadioButtons are selected when the panel loads.
 However most of the time the event is fired/caught which causes other
 buttons to be enabled/disabled.
 
 - However in IE, most of the time the event (above) is not fired.
 Well actually all I can see is that the results of the event do not
 happen so it must not be fired.
 
 Am I doing something wrong?  What is the right way to create
 RadioButtons with a default one and then have a listener to act based
 on what is selected either by the user or by code?
 
 Thanks much!
 


So, this has been driving me insane for almost a day.

Finally I have figured out how to get this to work.  I presume it isn't 
working because the widget hasn't been attached to the DOM.  I haven't a 
clue why this should matter to the browser, but I have found that putting 
the RadioButton.setValue(state,state) works fine after the item has been 
added to the initialized widget!

I know this is an old post, but I couldn't find a work around anywhere!

-- 
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: RadioButton does not get selected when setValue is called events not fired in IE

2014-04-23 Thread Ben Hahne
So, this fix evidently only satiates IE :( WTH CHROME?!



-- 
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: RadioButton does not get selected when setValue is called events not fired in IE

2014-04-23 Thread Ben Hahne
OK!

So I have just realized my issue was because I was using tabs and had radio 
buttons with the same group name.  This was causing confusion with who was to 
be checked evidently.  So, after making different group names for each set of 
tabs, I see the expected results.

#DontCopyPastCode

-- 
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: RadioButton does not get selected when setValue is called events not fired in IE

2014-04-23 Thread Jens


 So I have just realized my issue was because I was using tabs and had 
 radio 
 buttons with the same group name.  This was causing confusion with who was 
 to 
 be checked evidently.  So, after making different group names for each set 
 of 
 tabs, I see the expected results. 


If you don't care about the group name itself you can use 
HTMLPanel.createUniqueId() to generate a unique String.

-- J. 

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


Re: DockLayoutPanel as root with fixed width

2014-04-23 Thread Magnus
No ideas?
I see such sites very often: a fixed-width layout but with still some 
content in the remaining space.

So the root layout panel should cover the whole viewport.

Thanks
Magnus

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


Re: DockLayoutPanel as root with fixed width

2014-04-23 Thread Jens


 I see such sites very often: a fixed-width layout but with still some 
 content in the remaining space.

 So the root layout panel should cover the whole viewport.


I don't get it. What remaining space do you mean and why should something 
fill the whole viewport in a fixed-width layout? In a fixed-width layout 
the whole point is that your page has a defined width, which in most cases 
is 960px, and possible remaining space left and right of that 960px page is 
intentionally empty so that users don't have to scroll horizontally if they 
use a small screen, e.g. 1024x768. 

So maybe you don't mean a fixed-width layout? If you really meant it then 
your outer most container should have a fixed width, which in case of GWT 
would be the container widget you put into the RootPanel (which represents 
the body tag). In case of RootLayoutPanel it would be the RootLayoutPanel 
itself, as it puts itself into the RootPanel behind the scenes.

So you either have

FlowPanel fixedWidthPage = new FlowPanel(); // or any other widget
fixedWidthPage.setWidth(960px);
fixedWidthPage.getElement().getStyle().setProperty(margin,auto);
RootPanel.get().add(fixedWidthPage);

or

DockLayoutPanel page = new DockLayoutPanel(); // or any other layout widget
RootLayoutPanel fixedWidthRootLayoutPanel = RootLayoutPanel.get();
fixedWidthRootLayoutPanel.setWidth(960px);
fixedWidthRootLayoutPanel.getElement().getStyle().setProperty(margin,auto);



-- J.

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


Re: images not showing in any browser

2014-04-23 Thread Adam
When i made the first post i was experiencing 2 problems, one the images 
weren't showing, and two the path wouldn't change, no matter how i tried, 
ie (1.jpg) or (2.jpg) etc. However this was resolved after i created a 
new project. Your right though NewProject did in fact show twice, i also 
noticed this at the time but after creating a new project that problem was 
also rectified..

As for Google Chrome inspector img src=1.jpg class=gwt-Image

In the end you nailed it with your first post, the instruction to use the 
war directory, for some reason doing this the first time made no 
difference, but now it works!! Thanks to all that helped, well appreciated.


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


Exception while dispatching incoming RPC call

2014-04-23 Thread Charles Nelson
I have an app that works perfectly in my development environment of 
eclipse/jetty. It also work fine when I deploy it locally to tomcat 7 on my 
development machine. But it fails on my production server with the 
following error,

...
SEVERE: Exception while dispatching incoming RPC call
at com.google.gwt.user.server.
rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
SEVERE: Exception while dispatching incoming RPC call
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
SEVERE: Exception while dispatching incoming RPC call
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
...

Help!

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


Why doesn't GWTP allow Object (created by us) to pass through ActionHandler?

2014-04-23 Thread Tom
 

Ok, Here is the scenarios.

I have:

CustomerPresenter.java in myproject.client package.

GetCustomer.java in myproject.client package.

GetCustomerResult.java in myproject.client package.

Customer.java in myproject.shared package.

GetCustomerActionHandler.java in myproject.shared package.

all these files were automatically generated by eClipse except 
Customer.java which were created by myself.

CustomerPresenter.java: user can enter customer attributes into textbox  
click button then the system should search customers that match the 
attributes provided.

GetCustomer.java to hold customer attributes such as setCustomerName  
getCustomerName, setEmail.. etc

GetCustomerResult.java has setCustomer(customer)  getCustomer(); // 
customer from shared package

GetCustomerActionHandler.java connect to Db  select name, email... then 
pass these info into Customer. Ex:

In GetCustomerActionHandler.java

@Override
public GetCustomerResult execute(GetCustomer action, ExecutionContext context)
throws ActionException {
String sql=select name, email... from Customer...;
.
String name=dbResults.getString(1);
Customer c =new Customer();
c.setName(name);
GetCustomerResult getCustomerResult=new GetCustomerResult();
getCustomerResult.setCustomer(c);
return getCustomerResult;

}

But after ran, i got this err:

Starting Jetty on port 
   [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 
'myproject.shared.Customer' was not included in the set of types which can be 
serialized by this SerializationPolicy or its Class object could not be loaded. 
For security purposes, this type will not be serialized.: instance = 
myproject.shared.Customer@31e4aa02
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:665)
at 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
..

If we don't put data into object at server level then we have to put it at 
client level, but it will make the code cumbersome.

Maybe we can make Customer become Serialised or something like that... but 
i have no idea about that technique.

Why that happened? Do you know how to fix it? 

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


Why doesn't GWTP allow Object (created by us) to pass through ActionHandler?

2014-04-23 Thread Tom
 

Ok, Here is the scenarios.

I have:

CustomerPresenter.java in myproject.client package.

GetCustomer.java in myproject.client package.

GetCustomerResult.java in myproject.client package.

Customer.java in myproject.shared package.

GetCustomerActionHandler.java in myproject.server package.

all these files were automatically generated by eClipse except 
Customer.java which were created by myself.

CustomerPresenter.java: user can enter customer attributes into textbox  
click button then the system should search customers that match the 
attributes provided.

GetCustomer.java to hold customer attributes such as setCustomerName  
getCustomerName, setEmail.. etc

GetCustomerResult.java has setCustomer(customer)  getCustomer(); // 
customer from shared package

GetCustomerActionHandler.java connect to Db  select name, email... then 
pass these info into Customer. Ex:

In GetCustomerActionHandler.java

@Override
public GetCustomerResult execute(GetCustomer action, ExecutionContext context)
throws ActionException {
String sql=select name, email... from Customer...;
.
String name=dbResults.getString(1);
Customer c =new Customer();
c.setName(name);
GetCustomerResult getCustomerResult=new GetCustomerResult();
getCustomerResult.setCustomer(c);
return getCustomerResult;

}

But after ran, i got this err:

Starting Jetty on port 
   [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 
'myproject.shared.Customer' was not included in the set of types which can be 
serialized by this SerializationPolicy or its Class object could not be loaded. 
For security purposes, this type will not be serialized.: instance = 
myproject.shared.Customer@31e4aa02
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:665)
at 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
..

If we don't put data into object at server level then we have to put it at 
client level, but it will make the code cumbersome.

Maybe we can make Customer become Serialised or something like that... but 
i have no idea about that technique.

Why that happened? Do you know how to fix it? 

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