How to use image in global css

2012-04-27 Thread Alex Luya
Below is my code:

public interface Resources extends ClientBundle
{
   @NotStrict
   @Source(Global.css)
   CssResource css();
 }

@Override
public void onModuleLoad()
{
Resources resources = injector.getResources();
resources.css().ensureInjected();
 
 }
//Global.css

  .rule1{
 background:url(images/img1.png);
   }
If referring images like,as you can see in rule1,
background:url(images/img1.png);(images directory is under war
directory),img1.png can't be loaded properly in dev mode,but it got
loaded in web mode.So Question are: 1, how to use image in this
Global.css? 2,Is it possible to use image sprites here?

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



Re: how to avoid mulitple dilogbox opening from the parent window

2012-04-27 Thread Dayananda B V
Hi Andrei,
setGlassEnabled is worked.
thanks you so much, appreciate your help



On Apr 25, 12:39 am, Andrei vol...@spiraluniverse.com wrote:
 Add .setGlassEnabled to your dialog boxes.

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



Re: How to make parent window read only and background color to gray when dialogbox open

2012-04-27 Thread Dayananda B V
Hi All,
setGlassEnabled is worked.
thanks you so much, appreciate your help



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



Difficulty to run simple GWT application on tomcat server.

2012-04-27 Thread Rahul Sharma
I am creating a gwt application as following steps:
First install gwt plugin in my eclipse(Helios).
Create GWT project
Add Dynamic web plugin
going to property page of the project
project Facets tab
Select Dynamic Web Module and java
ok to apply changes.
Write code
and i try to run on server tomcat7 then it shows resources not
available.But when i run as internal server of gwt as just right
clicking on project and selecting run as web application.
then it run successfully. so please help to run my application on
tomcat server.
Thanks
Rahul

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



Re: Difficulty to run simple GWT application

2012-04-27 Thread Rahul Sharma
Hi Sebastian,

i am creating application as you suggest but when i deploying it on
tomcat server then it shows resources ins not available.so now what
should i do? help me .
Thanks
Rahul

On Apr 26, 7:38 pm, Sebastian Gurin sgu...@softpoint.org wrote:
 Hi Rahul, this is what I shlud do for getting started.

 first of all do not use tomcat yet, first feel confortable with the 
 GWT+eclipse

 1) File-New-(Google)New Application proyect - create your gwt web 
 application project. Here use Google Web toolkit only, don't use Google App 
 engine yet.

 That will create you a new project with some interesting things:

 a) your.proj.YourProject.gwt.xml - this file is called a gwt module 
 definition.
 b) packages client, shared, server
 c) a root folder named war with a html file inside. This war folder is the 
 web application folder (what you put inside webapps in tomcat - but not yet.)

 in client package that is where your java that will be translated to 
 javascript by gwt are, there is two Greeting* classes (dont worry about these 
 yet) and a third class named YourProject.java (or whatever name you give to 
 your new project). thi s class is your entry point.

 the project has a sample applicatoin ready to be executed, right click on 
 your.proj.YourProject.gwt.xml and run as Web application. The Developer 
 mode view will be shows and after the app is loaded, it will show you an url 
 likehttp://127.0.0.1:/Test12.html?gwt.codesvr=127.0.0.1:9997. Open this 
 url with firefox (version =10) or with chrome. It will ask you to install a 
 browser plugin, do it. When the plugin is installed reopen that url and you 
 will be executing your sample webapp using the GWT hosted-mode. You can make 
 changes in the java sources, save then and reoloading the page will reflect 
 the changes. Try to change something...

 Now what about putting all this on a tomcat? its easy, first compile your 
 project like this: ijn package explorer view, right click your new project 
 - Google - GWT Compile... - compile. When this is finish, GWT will put in 
 war the entinre webapp. just copy or link the war folder to your tomcat's 
 webapps folder and rename it acordingly, for example, yourproject. Start 
 tomcat and go tohttp://localhost:8080/yourProject/yourProject.html.

 I have ant scripts for doing all this with ant if you want I can share.

 hope this can help you ...

 On Thu, 26 Apr 2012 07:06:04 -0700 (PDT)









 Rahul Sharma rahul.sharma1...@gmail.com wrote:
  I am making gwt application as following step: 1. Firstly i install
  gwt plugin in my eclipse(Helios). 2. now i am creating dynamic
  project. 3. now i am adding gwt plugin through goto to property page
  of the project, select google-webtoolkit, check use GWT, then go to
  google-web application, the directory name to web-content. 4.now i
  am creating gwt module in my project then create entry point class
  then html. 5.now i am creating a button in onModule method of entry
  point class.

  and then i am running application in tomcat server just right click on
  project and select run as web application(run with tomcat server). As
  result of this I am getting a blank page on browser? There is no
  excption in server log. I am not able to debug where i am doing wrong?
  Please help me to sort out this problem.

  I am not using google web application because i was getting difficulty
  to create war file. As i solution of this I got the above process to
  develop GWT application.

  Thanks Rahul

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Sebastian Gurin sgu...@softpoint.org

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



Please recommend table widget to display a number of similar widgets

2012-04-27 Thread Vitaly Trifanov
Hi everybody.

I need to display a big amount(1000+) of similar widgets (each widget
contains photo + descrption - about 400*400 px total) in a table -
say, 10 rows and 2 columns per page. I don't need option to select,
drag, highlight or do smth else with these widgets - just display
them.

It seems that FlexTable doesn't support paging. CellTable does, but it
seems to be too complicated and best suited for displaying different
data in different columns while I need just to place similar widgets
in each cell.

So, I'm a bit confused about what table to use and need some help
about this.

Thanks in advance!

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



FlexTable.getColumnFormatter().setWidth has no effect

2012-04-27 Thread tong123123
I have set the column width as follow but the output does not follow the 
.getColumnFormatter().setWidth as attached image, for example, column 3 
should be 5% but from the attached image, column 3 (the textbox next to the 
listbox) is must larger than 5%, why will these happen?

FlexTable ehr_noTable = new FlexTable();
 ehr_noTable.setWidget(0, 0, lblEhr_No);
 //miscTable.getFlexCellFormatter().setColSpan(0, 0, 3);
 ehr_noTable.setWidget(0, 1, lbEhr_No);
 ehr_noTable.setWidget(0, 2, txtEhr_No);
 FlexTable miscTable = new FlexTable();
 miscTable.setWidth(100%);
 miscTable.getColumnFormatter().setWidth(0, 14%);
 miscTable.getColumnFormatter().setWidth(1, 6%);
 miscTable.getColumnFormatter().setWidth(2, 5%);
 miscTable.getColumnFormatter().setWidth(3, 14%);
 miscTable.getColumnFormatter().setWidth(4, 6%);
 miscTable.getColumnFormatter().setWidth(5, 5%);
 miscTable.getColumnFormatter().setWidth(6, 14%);
 miscTable.getColumnFormatter().setWidth(7, 6%);
 miscTable.getColumnFormatter().setWidth(8, 5%);
 miscTable.getColumnFormatter().setWidth(9, 14%);
 miscTable.getColumnFormatter().setWidth(10, 6%);
 miscTable.getColumnFormatter().setWidth(11, 5%);
 miscTable.setWidget(1, 0, lblText1);
 miscTable.setWidget(1, 1, lbText1);
 miscTable.setWidget(1, 2, txtText1);
 miscTable.setWidget(1, 3, lblText2);
 miscTable.setWidget(1, 4, lbText2);
 miscTable.setWidget(1, 5, txtText2);
 miscTable.setWidget(1, 6, lblText3);
 miscTable.setWidget(1, 7, lbText3);
 miscTable.setWidget(1, 8, txtText3);
 miscTable.setWidget(1, 9, lblText4);
 miscTable.setWidget(1, 10, lbText4);
 miscTable.setWidget(1, 11, txtText4);
 //
 miscTable.setWidget(2, 0, lblText5);
 miscTable.setWidget(2, 1, lbText5);
 miscTable.setWidget(2, 2, txtText5);
 miscTable.setWidget(2, 3, lblText6);
 miscTable.setWidget(2, 4, lbText6);
 miscTable.setWidget(2, 5, txtText6);
 miscTable.setWidget(2, 6, lblText7);
 miscTable.setWidget(2, 7, lbText7);
 miscTable.setWidget(2, 8, txtText7);
 miscTable.setWidget(2, 9, lblText8);
 miscTable.setWidget(2, 10, lbText8);
 miscTable.setWidget(2, 11, txtText8);
 //
 miscTable.setWidget(3, 0, lblText9);
 miscTable.setWidget(3, 1, lbText9);
 miscTable.setWidget(3, 2, txtText9);
 miscTable.setWidget(3, 3, lblText10);
 miscTable.setWidget(3, 4, lbText10);
 miscTable.setWidget(3, 5, txtText10);
 miscTable.setWidget(3, 6, lblText11);
 miscTable.setWidget(3, 7, lbText11);
 miscTable.setWidget(3, 8, txtText11);
 miscTable.setWidget(3, 9, lblText12);
 miscTable.setWidget(3, 10, lbText12);
 miscTable.setWidget(3, 11, txtText12);
 //
 miscTable.setWidget(4, 0, lblText13);
 miscTable.setWidget(4, 1, lbText13);
 miscTable.setWidget(4, 2, txtText13);
 miscTable.setWidget(4, 3, lblText14);
 miscTable.setWidget(4, 4, lbText14);
 miscTable.setWidget(4, 5, txtText14);
 miscTable.setWidget(4, 6, lblText15);
 miscTable.setWidget(4, 7, lbText15);
 miscTable.setWidget(4, 8, txtText15);
 miscTable.setWidget(4, 9, lblText16);
 miscTable.setWidget(4, 10, lbText16);
 miscTable.setWidget(4, 11, txtText16);
 //
 miscTable.setWidget(5, 0, lblText17);
 miscTable.setWidget(5, 1, lbText17);
 miscTable.setWidget(5, 2, txtText17);
 miscTable.setWidget(5, 3, lblText18);
 miscTable.setWidget(5, 5, lbText18);
 miscTable.setWidget(5, 5, txtText18);
 miscTable.setWidget(5, 6, lblText19);
 miscTable.setWidget(5, 7, lbText19);
 miscTable.setWidget(5, 8, txtText19);
 miscTable.setWidget(5, 9, lblText20);
 miscTable.setWidget(5, 10, lbText20);
 miscTable.setWidget(5, 11, txtText20);
 FlowPanel miscFlowPanel = new FlowPanel();
 miscFlowPanel.add(ehr_noTable);
 miscFlowPanel.add(miscTable);
 DisclosurePanel miscPanel = new DisclosurePanel(search criteria - misc);
 miscPanel.setContent(miscFlowPanel);
 miscPanel.setWidth(100%);
 return miscPanel;


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/hGOLvKT1TWMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

attachment: flextable.png

Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-27 Thread Ashu
How to initialize entity manager here
Iam not able to intialize this.
 
Could you please help me on this?
On Monday, 23 April 2012 17:21:48 UTC+5:30, Ashu wrote:

 Hi,
  
 I am getting the above exception while running the GWT application.
  
 I am using Entity and EntityProxies.
  
 Below is the code:
  
 @Entity
 @Table(name = tlkpState)
 public class State{
 .
 }
 @ProxyFor(value = State.class)
 public interface StateProxy extends EntityProxy {
   
  public String getFips();
  public String getName();
  EntityProxyIdStateProxy stableId();
 }
 @Service(value = StateServiceImpl.class)
  public interface StateRequest extends RequestContext {
   RequestListStateProxy getStates() throws Exception;
   //RequestVoid getStates() throws Exception;
  }
 in widget.java
 try {

 clientFactory.getRequestFactory().stateRequestContext().getStates().fire(new 
 ReceiverListStateProxy(){
 @Override
 public void onSuccess(ListStateProxy response) {
  // TODO Auto-generated method stub
  System.out.println(on success);
 }
 
  @Override
  public void onFailure(ServerFailure error) {
  System.out.println(on Failure);
  }
});
   } catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
   }
  
 when i call getstate() method with return type void it is working fine.
 but the same method with return type ListStateProxy it is throwing the 
 following exception:
  
  
 * 

 com.google.web.bindery.requestfactory.server.UnexpectedException
 *: Could not find static method with a single parameter of a key type 

 at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.die(
 *ServiceLayerDecorator.java:216*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
 *ReflectiveServiceLayer.java:253*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
 *ReflectiveServiceLayer.java:271*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.getFind(
 *ReflectiveServiceLayer.java:271*) 

 at 
 com.google.web.bindery.requestfactory.server.ReflectiveServiceLayer.isLive(
 *ReflectiveServiceLayer.java:200*) 

 at 
 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.isLive(
 *ServiceLayerDecorator.java:116*) 

 at 
 com.google.web.bindery.requestfactory.server.LocatorServiceLayer.doIsLive(
 *LocatorServiceLayer.java:186*) 

 at com.google.web.bindery.requestfactory.server.LocatorServiceLayer.isLive(
 *LocatorServiceLayer.java:85*) 

 at 
 com.google.web.bindery.requestfactory.server.ServiceLayerDecorator.isLive(
 *ServiceLayerDecorator.java:116*) 

 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.createReturnOperations(
 *SimpleRequestProcessor.java:274*) 

 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
 *SimpleRequestProcessor.java:232*) 

 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(
 *SimpleRequestProcessor.java:127*) 

 at 
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(
 *RequestFactoryServlet.java:133*) 

 at javax.servlet.http.HttpServlet.service(
 *HttpServlet.java:637*) 

 at javax.servlet.http.HttpServlet.service(
 *HttpServlet.java:717*) 

 at org.mortbay.jetty.servlet.ServletHolder.handle(
 *ServletHolder.java:487*) 

 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
 *ServletHandler.java:1097*) 

 at com.yieldstar.mpfui.server.MpfAuthFilter.doFilter(
 *MpfAuthFilter.java:41*) 

 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
 *ServletHandler.java:1088*) 

 at org.mortbay.jetty.servlet.ServletHandler.handle(
 *ServletHandler.java:360*) 

 at org.mortbay.jetty.security.SecurityHandler.handle(
 *SecurityHandler.java:216*) 

 at org.mortbay.jetty.servlet.SessionHandler.handle(
 *SessionHandler.java:181*) 

 at org.mortbay.jetty.handler.ContextHandler.handle(
 *ContextHandler.java:729*) 

 at org.mortbay.jetty.webapp.WebAppContext.handle(
 *WebAppContext.java:405*) 

 at org.mortbay.jetty.handler.HandlerWrapper.handle(
 *HandlerWrapper.java:152*) 

 at org.mortbay.jetty.handler.RequestLogHandler.handle(
 *RequestLogHandler.java:49*) 

 at org.mortbay.jetty.handler.HandlerWrapper.handle(
 *HandlerWrapper.java:152*) 

 at org.mortbay.jetty.Server.handle(
 *Server.java:324*) 

 at org.mortbay.jetty.HttpConnection.handleRequest(
 *HttpConnection.java:505*) 

 at org.mortbay.jetty.HttpConnection$RequestHandler.content(
 *HttpConnection.java:843*) 

 at org.mortbay.jetty.HttpParser.parseNext(
 *HttpParser.java:647*) 

 at org.mortbay.jetty.HttpParser.parseAvailable(
 *HttpParser.java:211*) 

 at org.mortbay.jetty.HttpConnection.handle(
 *HttpConnection.java:380*) 

 at org.mortbay.io.nio.SelectChannelEndPoint.run(
 *SelectChannelEndPoint.java:395*) 

 at org.mortbay.thread.QueuedThreadPool$PoolThread.run(
 *QueuedThreadPool.java:488*) 

 

Entities in GWT 2.4

2012-04-27 Thread Ashu
Hi,
 
I am using GWT2.4 version.
 
how to use value proxies without entities?
 
If possible please provide me some sample example.
 
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VZMr_N4-kSsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: does any Breedcrumb widget in gwt 2.4?

2012-04-27 Thread 大橋啓介
Hi guys.
I'm one of gwt-bootstrap commiter.

GWT-bootstrap is library to use Twitter's interface library with
Google Web Toolkit.

Right now,we don't provide Breedcrumb widgets.
we don't plan providing it on our first release *yet*.
But we plan to implement all Bootstrap features. ;-)

If you guys have any questions, Please post our mailing list.
http://groups.google.com/group/gwt-bootstrap

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



Preventing selection event propagation

2012-04-27 Thread ALB-PSP-DV1
Our application has two tabs. On selecting the tabs we have to display
a confirmation window(dialog box). Depending on whether user clicks
Yes or No button in the confirmation window, the tab selection
event should proceed or stop.

I know we have event.stopPropagation() method for click event. However
there is no such method for selection event.

Is there any work around to stop the propagation of the selection
event. Any help is much appreciated.

Thanks in advance.

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



GWT for starters

2012-04-27 Thread sbt
Suggest the book/tutorial to learn Google Web Toolkit for 
newbies.?http://answers.yahoo.com/question/index;_ylt=AgX26MknlITV36YaE086BnPsy6IX;_ylv=3?qid=20120425021651AA6ju6M

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kCq8IZa_1nAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Thoughts on User defined time in the UI

2012-04-27 Thread GlasgowSteve
I would like to have a field in my UI which allows the user to pass a
24h time - I will then use the time to do a search on events occuring
after that time. There should not be a date asociated with the time on
the UI. The time passed should be in the format hh:mm:ss.

I'm using plain ol' GWT - extensions or addtional libraries are
unavailble here for all intents and purposes (I've seen a few options
in gwt-ext and smartGWT but would rather avoid.

What would be the best method of allowing users to define time in the
UI using core GWT? A textbox which assumes 6 digits (hhmmss) that can
then be parsed? Three seperate text boxes for hour minute second which
would be easier to validate? Extending a Calander Widgit? Another
Widgit I've overlooked that should be considered? Or something I
haven't considered at all?


Thanks for your help

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



Re: ff11 gwt dev plugin

2012-04-27 Thread guy2
Hello Alan,


Mozilla have just released FF 12.

Can you please compile the plugin for FF 12 ?

Personnally, I need the version for Win XP 32bits and Win 7 32/64 bits.

FYI, Mozilla changed at the end of 2011 (if I remember well) their policy 
about releasing FF.
Now, they release a new version every 6 weeks (FF12 has been released in 
fact 5 weeks after FF11).


Best regards,

Guy2


Le vendredi 16 mars 2012 20:58:34 UTC+1, Alan Leung a écrit :

 Wow! I didn't know it was released already.

 Some how I thought I had more time until FF11. I'll get on it. thanks for 
 the reminder.


 -Alan


 On Fri, Mar 16, 2012 at 7:08 AM, Olivier Scherler oliv...@gasser-media.ch
  wrote:

 I’m wondering, how long until Mozilla releases new version of Firefox 
 faster than the GWT community can recompile the plugin?


 On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote:

 Hello Alan.
 Can you compile the plugin for FF11?

 regards

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




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pl5hPv_haIQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT RequestBuilder not working in Chrome and FireFox

2012-04-27 Thread the.wizard
Hi everyone,
I have a problem with RequestBuilder. When I run my code that using
RequestBuilder in IE 8, it's working well, but in Chrome and FireFox,
it just keep returning empty string. When I tried to debug it, the
response is com.google.gwt.http.client.Request$1@5a7667be, and have
no headers, the code is 0. I also get an exception like this :
07:33:50.734 [ERROR] [chameleonmain] Uncaught exception escaped

com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
connection lost
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
354)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.SocketException: Connection reset by peer: socket
write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:
123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at com.google.gwt.dev.shell.BrowserChannel
$ReturnMessage.send(BrowserChannel.java:1310)
at com.google.gwt.dev.shell.BrowserChannel
$ReturnMessage.send(BrowserChannel.java:1315)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
340)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:662)

Is there any way to solve this problem?
Here is my code :
RequestBuilder request = new RequestBuilder(RequestBuilder.GET, url);
request.setHeader(Content-Type, text/html);
RequestCallback callback = new RequestCallback() {
@Override
public void onResponseReceived(Request request, Response response) {
String userIdentity = response.getText();
}

@Override
public void onError(Request request, Throwable exception) {
exception.printStackTrace();
}
};
request.sendRequest(null, callback);

Please anyone kindly help me to solve this problem.
Thank you.

Regards,
Willy


GWT SERIALIZATION PROBLEM

2012-04-27 Thread Nitheesh Chandran
Hello  Guys ,

I have a problem ,I want to save an object to the database. I passed
the object to the server using a function. Like this
http://www.easywayserver.com/blog/how-to-serializable-object-in-java-2/.
But my RPC is getting failed every time. What will be the problem ? i
used isSerializable marker interface for serialization. Cant we send
client object to the server through RPC?

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



Re: Compile Gin-enabled GWT application with ant

2012-04-27 Thread Sergey Stupin
I have exactly the same problem. I've been spent already 2 days researching 
this case. How can I fix this f***ing error?

суббота, 12 декабря 2009 г., 23:16:58 UTC+4 пользователь Chris написал:

 Hi 

 I'm trying to build by gwt application with ant. I can succesfully 
 compile everything together, but I'm having trouble actually doing the 
 gwt-compile. 

 These are what my two tasks look like: 

 target name=compile depends= description=Compiling web-app 
 mkdir dir=${output.dir} / 
 javac srcdir=src destdir=${output.dir} 
 classpathref=classpath 
 /javac 
 /target 

 target name=compile-gwt depends=compile 
 java 
 failonerror=true 
 fork=true 
 classname=com.google.gwt.dev.Compiler 
  
   classpath 
 pathelement location=src/main/java/ 

 path refid=classpath/ 
   /classpath 
 jvmarg value=-Xmx256M/ 
 arg 
 value=com.tyndalehouse.step.web.stepwebapp/ 
 /java 


 I get the following errors: 



 compile-gwt: 
  [java] Compiling module com.tyndalehouse.step.web.stepwebapp 
  [java]Resolving 
 com.tyndalehouse.step.web.client.gin.StepInjector 
  [java]   Found type 
 'com.tyndalehouse.step.web.client.gin.StepInjector' 
  [java]  [ERROR] Annotation error: cannot resolve 
 com.tyndalehouse.step.web.client.gin.StepClientModule 
  [java] java.lang.ClassNotFoundException: 
 com.tyndalehouse.step.web.client.gin.StepClientModule 
  [java] at 
 java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
  [java] at java.security.AccessController.doPrivileged(Native 
 Method) 
  [java] at 
 java.net.URLClassLoader.findClass(URLClassLoader.java: 
 188) 
  [java] at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
  [java] at sun.misc.Launcher$AppClassLoader.loadClass 
 (Launcher.java:301) 
  [java] at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
  [java] at java.lang.ClassLoader.loadClassInternal 
 (ClassLoader.java:320) 
  [java] at java.lang.Class.forName0(Native Method) 
  [java] at java.lang.Class.forName(Class.java:247) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue 
 (TypeOracleMediator.java:666) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue 
 (TypeOracleMediator.java:605) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation 
 (TypeOracleMediator.java:399) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation 
 (TypeOracleMediator.java:568) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations 
 (TypeOracleMediator.java:583) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveClass 
 (TypeOracleMediator.java:724) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits 
 (TypeOracleMediator.java:353) 
  [java] at 
 com.google.gwt.dev.javac.CompilationState.assimilateUnits 
 (CompilationState.java:135) 
  [java] at com.google.gwt.dev.javac.CompilationState.init 
 (CompilationState.java:79) 
  [java] at 
 com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom 
 (CompilationStateBuilder.java:284) 
  [java] at 
 com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom 
 (CompilationStateBuilder.java:181) 
  [java] at 
 com.google.gwt.dev.cfg.ModuleDef.getCompilationState 
 (ModuleDef.java:280) 
  [java] at com.google.gwt.dev.Precompile.precompile 
 (Precompile.java:502) 
  [java] at com.google.gwt.dev.Precompile.precompile 
 (Precompile.java:414) 
  [java] at com.google.gwt.dev.Compiler.run(Compiler.java:201) 
  [java] at 
 com.google.gwt.dev.Compiler$1.run(Compiler.java:152) 
  [java] at com.google.gwt.dev.CompileTaskRunner.doRun 
 (CompileTaskRunner.java:87) 
  [java] at 
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger 
 (CompileTaskRunner.java:81) 
  [java] at com.google.gwt.dev.Compiler.main(Compiler.java:159) 
  [java]  [ERROR] Annotation error: expected class 
 java.lang.Class, got null 
  [java]Scanning for additional dependencies: file:/D:/STEPSVN/ 
 StepWebApp/src/main/java/com/tyndalehouse/step/web/client/ 
 StepEntryPoint.java 
  [java]   Computing all possible rebind results for 
 'com.tyndalehouse.step.web.client.gin.StepInjector' 
  [java]  Rebinding 
 com.tyndalehouse.step.web.client.gin.StepInjector 
  [java] Invoking 
 

RequestFactory Error -- java.lang.IllegalArgumentException: Something other than a Java object was returned from JSNI method

2012-04-27 Thread Pradeep B Pillai


The following is the other error i get  frequently and this seems like
its more related to request factory
and I dont know why its happening ..Should I open a bug ?

I'm using GWT 2.4, browser Chrome 18.0.1025.1065

One or more exceptions caught, see full set in
UmbrellaException#getCauses -
 CAUSE java.lang.IllegalArgumentException: Something other than a Java
object was returned from JSNI method
'@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext
$Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/
AbstractAutoBean;Ljava/lang/String;)': JS value of type boolean,
expected java.lang.Object
java.lang.IllegalArgumentException: Something other than a Java object
was returned from JSNI method
'@com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext
$Setter::beanSetter(Lcom/google/web/bindery/autobean/shared/impl/
AbstractAutoBean;Ljava/lang/String;)': JS value of type boolean,
expected java.lang.Object
 STACKTRACE :
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$StandardPayloadDialect.processPayload(AbstractRequestContext.java:
387)
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$5.onTransportSuccess(AbstractRequestContext.java:1108)
com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
$1.onResponseReceived(DefaultRequestTransport.java:136)
com.citrix.ws.democenter.module.shared.client.requestfactory.DemoCenterRequestTransport
$1.onResponseReceived(DemoCenterRequestTransport.java:84)
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:395)
sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
337)
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
com.google.gwt.core.client.impl.Impl.apply(Impl.java)
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
292)
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
java.lang.Thread.run(Thread.java:680)
 from
sourceClasscom.google.web.bindery.event.shared.UmbrellaExceptionwith
exception com.google.web.bindery.event.shared.UmbrellaException: One
or more exceptions caught, see full set in UmbrellaException#getCauses

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



Unicode security considerations in GWT

2012-04-27 Thread Endovélico
Are there any real unicode security considerations would should taken
into account when it comes to user input?

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



RequestFactory check if client got most recent proxy

2012-04-27 Thread Kiril P
Hi,

I my requestfactory implementation I have use case where entities can be 
updated by multiple clients.

Is there a way for client to check that it has got latest version of entity 
proxy before trying to save changes?


-- 
Best regards,
Kiril Piskunov

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/t-D1SL93Kp4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: A problem with richtextareas in Firefox 11.0

2012-04-27 Thread antoine

We also have the same issue with FF11 when using multiple richtextareas but 
when we try resizing the screen, the text comes back.

Does anyone have found another way around ?
Any bug report ?

Thanks in advance,
Antoine


Le mardi 17 avril 2012 16:48:56 UTC+2, pop.ionut84 a écrit :

 I have the same issue with Firefox 11. The strange thing is that if you 
 investigate with firebug, the text is present in the iframe.

 On Thursday, April 5, 2012 6:26:44 PM UTC+3, Niki wrote:

 Hi,
 I am developing a web-application with GWT 2.4.It was working pretty 
 well in all major browsers.Until I upgraded my Firefox 8 with Firefox 11.0.
 Then only in FF 11 I noticed this problem.
 The app has one TabPanel at the top.In every tab there are different 
 number of Richtextarea-s.
 After loading,all richtextareas on the first tab are working well.
 The problem rise when I go to some other tab.Then only one richtextarea 
 per page is working.Namely the first one.
 All the consequent RTA-s in the tab neither accept the cursor,neither 
 accept input,neither show the initial text.
 And this happens in every tab I go,including back to the first one.
 Do you have any idea, how I can solve this issue?
 Maybe submit a bug report to Mozilla?
 I have made a sample app.You can take a look here:
 http://firefox11problem.appspot.com/Index.html
 Regards!
 Niki



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FJmVQKr78WcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Dynamic CompositeCell

2012-04-27 Thread Aoxiang Cui
The title is too short, let me explain and simplify my situation.

Say, I have a dto which contains a list of Booleans. I need a column whose 
cell looks like below:

item_1  checkbox_1
item_2  checkbox_2
...
item_n  checkbox_n

If n is a fixed number, it is fine to use CompositeCell. The problem is we 
don't know the size of list and each cell can have different list size.
Is there any way to extend CompositeCell so as to make it support my 
situation. Or maybe I should write a new Cell?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/slhetcYlVBsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT The type XXX is already defined error on package-private classes with NO previous definition.

2012-04-27 Thread Darek kay
Since I spent some time searching for a solution, here it is. Don't put top 
level classes like this:

public class1{
}

class2{
}

Although it's a valid java syntax, GWT doesn't seem to handle this very 
well. That's what it should look like:

public class1{
 static class2{
 }
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/HBYrUR5lW9wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Introducing DataGrid to an older code base

2012-04-27 Thread Stephen Lawlor
I think this might be the underlying problem:
   [ERROR] Errors in 
'jar:file:/C:/Program%20Files/eclipse-i/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201203300216-rel-r37/gwt-2.4.0/gwt-user.jar!/com/google/gwt/user/client/ui/NativeHorizontalScrollbar.java'
  [ERROR]  Internal compiler error
java.lang.AbstractMethodError: 
com.documentum.xerces_2_6_2.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
at 
com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java:127)
at 
com.documentum.xerces_2_6_2.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:491)
at 
com.documentum.xerces_2_6_2.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:806)
at 
com.documentum.xerces_2_6_2.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:325)
at 
com.documentum.xerces_2_6_2.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:620)
at 
com.documentum.xerces_2_6_2.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1635)
at 
com.documentum.xerces_2_6_2.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
at 
com.documentum.xerces_2_6_2.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:831)
at 
com.documentum.xerces_2_6_2.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:761)
at 
com.documentum.xerces_2_6_2.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at 
com.documentum.xerces_2_6_2.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1184)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at 
com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java:64)
at 
com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerator.java:201)
at 
com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:171)
at 
com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:127)
at 
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at 
com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at 
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at 
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at 
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at 
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at 
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at 
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at 
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
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)

   [ERROR] Unexpected internal compiler error
java.lang.AbstractMethodError: 
com.documentum.xerces_2_6_2.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;
at 
com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentBuilder.java:127)
at 

Re: Firefox 12 release

2012-04-27 Thread mark
Can you also create the Windows xpi? Thanks man.

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



Re: Firefox 12 release

2012-04-27 Thread Daniel Dunér
Thank you Allan, you are a hero!

Windows? Heh.. how quaint.

On Thursday, April 26, 2012 3:45:52 PM UTC+2, Marcel Stör wrote:

 What about Windows?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3DVU2MkxXjwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT applications session management

2012-04-27 Thread Adio
Hi guys, i am a new to GWT applications to AJAX applications in
general. i am making sample applications, to learn GWT applications. I
am creating a very simple bank system -ok, by very simple i mean very
very simple- and i reached the part the authentication and
authorization logic is needed.

Can someone explain the authentication logic in GWT apps ?

Anyone explain the entire authentication and authorization logic in
Ajax application ?

Session management in Ajax applications ?

If you don't want to bother yourselves with explaining and code
writing any useful links will be fine.

Thank you very mush.

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



Clear queue method invocations on RequestContext

2012-04-27 Thread Alex Vakaloudis
To perform a save  in a view I am using the RequestFactoryEditorDriver to 
flush any changes to a RequestContext and then I call save(the edited 
proxy).to(MyReceiverVoid).fire();

MemberRequest s = (MemberRequest)editorDriver.flush();
MemberProxy sectorProxy = (MemberProxy)getProxy();
s.saveMember(sectorProxy).to(new MyReceiverVoid()).fire();

MyReceiver has a onConstraintViolation method which displays violations 
generated in the server. I am using my own ServiceLayerDecorator.validate() 
to check for any business-related constraints.

To this point it works fine. However when after more than one  attempts the 
user finally fixes all violations and the entity reaches the service 
layer, the save method is invoked multiple times (as many attempts it took 
to pass validation). I understand that this is because the request context 
is queuing all method invocations and by calling onConstraintViolation. 
this queue is not cleared. As a result, when it passes validation there is 
a number of onvocations for saving which all then succeed in inserting to 
the database.

My question is how/where to clear the request context of any method 
invocations that have lead to the call of onConstraintViolation so the save 
to the service layer is called once only.

thanks in Advance
Alex

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FqrtGq3fvxAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Firefox 12 release

2012-04-27 Thread Mark Piergrossi
I second that - for Windows.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/tG6GvK_FBEwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT + Hibernate + hsqldb

2012-04-27 Thread rahul.gamit89
Hello i have created a simple GWT application which allows user to
add  Name,address,email,sex and phone number.

E.G On UI there is 4 text boxes for Name,address,phone,email and
select box for sex

I have implemented hibernate and hsqldb, but when i am running the
program it gives me the following error.

[TRACE] [gwt_hibernate] - Finding entry point classes
[ERROR] [gwt_hibernate] - Errors in 'file:/I:/PROJECTS/gwt_hibernate/
src/gwt_hibernate/client/Gwt_hibernate.java'
[ERROR] [gwt_hibernate] - Line 39: The import
org.hibernate.HibernateException cannot be resolved
[ERROR] [gwt_hibernate] - Line 40: The import 
org.hibernate.Session
cannot be resolved
[ERROR] [gwt_hibernate] - Line 41: The import
org.hibernate.SessionFactory cannot be resolved
[ERROR] [gwt_hibernate] - Line 42: The import
org.hibernate.Transaction cannot be resolved
[ERROR] [gwt_hibernate] - Line 43: The import org.hibernate.cfg
cannot be resolved
[ERROR] [gwt_hibernate] - Line 164: SessionFactory cannot be
resolved to a type
[ERROR] [gwt_hibernate] - Line 166: Configuration cannot be 
resolved
to a type
[ERROR] [gwt_hibernate] - Line 168: Session cannot be resolved 
to a
type
[ERROR] [gwt_hibernate] - Line 191: HibernateException cannot be
resolved to a type
[ERROR] [gwt_hibernate] - Unable to find type
'gwt_hibernate.client.Gwt_hibernate'
[ERROR] [gwt_hibernate] - Hint: Previous compiler errors may 
have
made this type unavailable
[ERROR] [gwt_hibernate] - Hint: Check the inheritance chain from
your module; it may not be inheriting a required module or a module
may not be adding its source path entries properly
[ERROR] [gwt_hibernate] - Failed to load module 'gwt_hibernate' from
user agent 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML,
like Gecko) Chrome/18.0.1025.162 Safari/535.19' at activate.adobe.com:
60298


I have created one hibernate.cfg.xml file, one persistent class and
other xml file.

Here is the code i did.

Persistent Class: cls_tbl_user
package gwt_hibernate.client;

public class cls_tbl_user
{

private String id;
private String name;
private String address;
private String email;
private String phone;
private String sex;

public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}

}



hibernate.cfg.xml

?xml version='1.0' encoding='utf-8'?
!DOCTYPE hibernate-configuration PUBLIC
-//Hibernate/Hibernate Configuration DTD//EN
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
hibernate-configuration

session-factory

!-- Database connection settings --
property
name=connection.driver_classorg.hsqldb.jdbcDriver/property
property name=connection.urljdbc:hsqldb:file:i:/HSQLDB/
test1db/property
property name=connection.usernameSA/property
property name=connection.password/property

   !-- JDBC connection pool (use the built-in) --
property name=connection.pool_size1/property

!-- SQL dialect --
property name=dialectorg.hibernate.dialect.HSQLDialect/
property

!-- Enable Hibernate's automatic session context management --

property name=current_session_context_classthread/
property

!-- Disable the second-level cache  --
property
name=cache.provider_classorg.hibernate.cache.NoCacheProvider/
property

!-- Echo all executed SQL to stdout --
property name=show_sqltrue/property


!-- Drop and re-create the database schema on startup
property name=hbm2ddl.updatecreate/property--

mapping resource=gwt_hibernate.client.cls_tbl_user.hbm.xml/



/session-factory

/hibernate-configuration


cls_tbl_user.hbm.xml

?xml version=1.0 encoding=UTF-8?

 !DOCTYPE hibernate-mapping PUBLIC
-//Hibernate/Hibernate Mapping DTD 3.0//EN
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd;

hibernate-mapping
class 

Problem requiring GWT app to use HTTPS

2012-04-27 Thread David Robison
I have a GWT app that has been running fine over HTTP. I now want to
restrict it to using HTTPS. I've modified the web.xml file as follows:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//
EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  filter
filter-nameguiceFilter/filter-name
filter-classcom.google.inject.servlet.GuiceFilter/filter-
class
  /filter

  filter-mapping
filter-nameguiceFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping

  listener
listener-classcom.orci.vicads.server.AppConfigListener/
listener-class
  /listener

  welcome-file-list
welcome-fileAlarmClips.html/welcome-file
  /welcome-file-list

  security-constraint
web-resource-collection
web-resource-namesecuredapp/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

/web-app

I am running inside of JBoss AS5. When JBoss tries to startup the app
I get the following error:

ERROR org.apache.catalina.core.ContainerBase.[jboss.web].
[localhost].[/ORCI-GWT-V5MilestoneAlarmClips-1.0]  Error configuring
application listener of class com.orci.vicads.server.AppConfigListener
java.lang.ClassNotFoundException:
com.orci.vicads.server.AppConfigListener

However, when I remove the security-constraint, the app starts up
normally. Am I doing something wrong?
Thanks, David

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



Please - I 2nd the request for a Windows plugin

2012-04-27 Thread mark
Thanks Alan.

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



Re: Compile Gin-enabled GWT application with ant

2012-04-27 Thread Sergey Stupin
I find the answer. Modify classpath by adding your compiled GWT classes 
(that's why GWT compiler could not found it), because GIN needs class files 
to compile successfully.
classpath 
pathelement location=src/main/java/ 
pathelement location=${classes.dir}/  
 path refid=classpath/ 
/classpath  

It helps to me.

суббота, 12 декабря 2009 г., 23:16:58 UTC+4 пользователь Chris написал:

 Hi 

 I'm trying to build by gwt application with ant. I can succesfully 
 compile everything together, but I'm having trouble actually doing the 
 gwt-compile. 

 These are what my two tasks look like: 

 target name=compile depends= description=Compiling web-app 
 mkdir dir=${output.dir} / 
 javac srcdir=src destdir=${output.dir} 
 classpathref=classpath 
 /javac 
 /target 

 target name=compile-gwt depends=compile 
 java 
 failonerror=true 
 fork=true 
 classname=com.google.gwt.dev.Compiler 
  
   classpath 
 pathelement location=src/main/java/ 

 path refid=classpath/ 
   /classpath 
 jvmarg value=-Xmx256M/ 
 arg 
 value=com.tyndalehouse.step.web.stepwebapp/ 
 /java 


 I get the following errors: 



 compile-gwt: 
  [java] Compiling module com.tyndalehouse.step.web.stepwebapp 
  [java]Resolving 
 com.tyndalehouse.step.web.client.gin.StepInjector 
  [java]   Found type 
 'com.tyndalehouse.step.web.client.gin.StepInjector' 
  [java]  [ERROR] Annotation error: cannot resolve 
 com.tyndalehouse.step.web.client.gin.StepClientModule 
  [java] java.lang.ClassNotFoundException: 
 com.tyndalehouse.step.web.client.gin.StepClientModule 
  [java] at 
 java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
  [java] at java.security.AccessController.doPrivileged(Native 
 Method) 
  [java] at 
 java.net.URLClassLoader.findClass(URLClassLoader.java: 
 188) 
  [java] at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
  [java] at sun.misc.Launcher$AppClassLoader.loadClass 
 (Launcher.java:301) 
  [java] at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
  [java] at java.lang.ClassLoader.loadClassInternal 
 (ClassLoader.java:320) 
  [java] at java.lang.Class.forName0(Native Method) 
  [java] at java.lang.Class.forName(Class.java:247) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue 
 (TypeOracleMediator.java:666) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue 
 (TypeOracleMediator.java:605) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation 
 (TypeOracleMediator.java:399) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation 
 (TypeOracleMediator.java:568) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations 
 (TypeOracleMediator.java:583) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.resolveClass 
 (TypeOracleMediator.java:724) 
  [java] at 
 com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits 
 (TypeOracleMediator.java:353) 
  [java] at 
 com.google.gwt.dev.javac.CompilationState.assimilateUnits 
 (CompilationState.java:135) 
  [java] at com.google.gwt.dev.javac.CompilationState.init 
 (CompilationState.java:79) 
  [java] at 
 com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom 
 (CompilationStateBuilder.java:284) 
  [java] at 
 com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom 
 (CompilationStateBuilder.java:181) 
  [java] at 
 com.google.gwt.dev.cfg.ModuleDef.getCompilationState 
 (ModuleDef.java:280) 
  [java] at com.google.gwt.dev.Precompile.precompile 
 (Precompile.java:502) 
  [java] at com.google.gwt.dev.Precompile.precompile 
 (Precompile.java:414) 
  [java] at com.google.gwt.dev.Compiler.run(Compiler.java:201) 
  [java] at 
 com.google.gwt.dev.Compiler$1.run(Compiler.java:152) 
  [java] at com.google.gwt.dev.CompileTaskRunner.doRun 
 (CompileTaskRunner.java:87) 
  [java] at 
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger 
 (CompileTaskRunner.java:81) 
  [java] at com.google.gwt.dev.Compiler.main(Compiler.java:159) 
  [java]  [ERROR] Annotation error: expected class 
 java.lang.Class, got null 
  [java]Scanning for additional dependencies: file:/D:/STEPSVN/ 
 StepWebApp/src/main/java/com/tyndalehouse/step/web/client/ 
 StepEntryPoint.java 
  [java]   Computing all possible rebind 

Re: chrome - prompting me to install gwt plugin but already installed

2012-04-27 Thread Xavophonic
Hello,

I have got the same problem. Here is my Congiguration

Eclipse 3.5
Google Web Toolkit 2.0.4
Chrome 18.0.1025.162 m
GWT Developer Plugin1.0.9738 (enabled)
The options of the plugin are :
localhost   Include
127.0.0.1:1460  Include
127.0.0.1:9997  Include
127.0.0.1   Include
127.0.0.1:  Include

I run my Application with the Jetty Server by rick-clicking in Eclipse
and select Run as + g Web Application.
Then I richt click in the Development Mode tab on the url and select
Open With : Google Chrome.
A page is diplayed : Development Mode requires the Google Web Toolkit
Developer Plugin

I haved tried to install the old version of the plugins but the URLs
displayed above are now broken.

Can someone help me ?

Best regards,

Xavier

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



Re: chrome - prompting me to install gwt plugin but already installed

2012-04-27 Thread Xavophonic
Hi,

Here is my configuration

Google Web Toolkit 2.0.4 on my server Jetty.
Chrome version 18.0.1025.162 m
Windows XP PS3.
Google Web Toolkit Developer Plugin version 1.0.9738.

After installed the plugin, I restart Chrome. I come back to my
development page. I still have got the message : Development Mode
requires the Google Web Toolkit Developer Plugin. I tried the former
URLs to an old version of the plugin, but they are broken.

Publishing the old version of the plugin in the extention gallery
would be helpfull.

Could someone help me ?

Best regards,

Xavier

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



Request Context clear queue on method invocations when onConstraintViolation is called

2012-04-27 Thread Alex Vakaloudis
To perform save  in a view I am using RequestFactoryEditorDriver to flush 
any changes to a RequestContext and then I call 

save(the edited proxy).to(MyReceiverVoid).fire();

MemberRequest s = (MemberRequest)editorDriver.flush();
MemberProxy sectorProxy = (MemberProxy)getProxy();
s.saveMember(sectorProxy).to(new MyReceiverVoid()).fire();

MyReceiver has a onConstraintViolation method which displays violations 
generated in the server. I am using my own 
 ServiceLayerDecorator.validate() to check for any business-related 
constraints.

To this point it works fine. However when after more than one attempts the 
user fixes all violations and the entity reaches the service, the save 
method is invoked multiple times (as many attempts it took to pass 
validation). I understand that  this is because the request context is 
queuing all method invocations and by calling onConstraintViolation. this 
queue is not cleared and this leads to multiple calls to the server.

My question is how/where to clear the request context of any method 
invocations that have lead to the call of onConstraintViolation 

thanks in Advance
Alex

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-xRnHK7QqzEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Firefox 12 release

2012-04-27 Thread yassine
works perfect on ubuntu 11.10 thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VgU-kR4jj74J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to stop the move to Place

2012-04-27 Thread st1ll
Hello.
I need to create model window, which appears, when I try to go from
current page via links.
I may initiate the creation of window into onPlaceChangeRequest
(PlaceChangeRequestEvent.Handler ()).
But I dont know, how to interrupt the process of transition.
It is possible?

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



Re: Can UI components be tested through JUnit/GWTTestCase?

2012-04-27 Thread Clint Gilbert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've been able to test Widgets with JUnit in a project I'm working on.
I'm able to make widgets, see that they respond to external events
(notifications about state they observe, or event types they're
subscribed to via an EventBus, that sort of thing), and even send UI
events to them:

final MyWidget myWidget = new MyWidget(...);

myWidget.someButton.fireEvent(new ClickEvent() { });

//assert that the right things happened

The anonymous subclass of ClickEvent feels a little hacky, but it works
for us because our widgets (for the most part) just care that they got
clicked, they don't care about x and y coords, etc etc.

Writing the tests was relatively straightforward, but getting them to
run as part of a Maven build took some doing. A pom with all the
necessary incantations is here:

https://open.med.harvard.edu/svn/shrine/trunk/code/webclient/pom.xml

I don't know if that's minimal or not; I started with what was generated
by the gwt-maven-plugin, and tweaked the pom until it did what I wanted.
:/  We use a TestSuite (ugh) and follow the naming conventions for test
classes and suites recommended by the gwt-maven-plugin docs.

On 04/24/2012 04:50 PM, King_V wrote:
 Ok, I found some old messages (several years old) that says this
 cannot be done.
 
 However, when I look at:
 https://developers.google.com/web-toolkit/doc/latest/DevGuideTesting#DevGuideJUnitSetUp
 
 this seems to imply that you can actually test GUI items on a browser
 with such tests.  I might well be completely misinterpreting what it's
 there for, though.
 
 However, I'm baffled as to how to do so.
 
 For example, I might normally put MyWidget into the RootPanel as
 follows:
 
 RootPanel.get().add(new MyWidget(Some text here));
 
 
 But how would I do this in a JUnit test case / GWTTestCase?
 
 Thanks.
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk+XRSEACgkQ0GFaTS4nYxviVACeMqLdXljCkWI3lrS9tCDBulvF
pqkAn24TZuVGsdOccZTBDCWlGsGjpMi/
=G4pS
-END PGP SIGNATURE-

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



How to add External Java Classes to GWT Project?

2012-04-27 Thread Danish
Hi im new in this some one Guide me...

i create a java project

import java.sql.DriverManager;

public class DB_Conn {

private java.sql.Connection con = null;
//private final String url = jdbc:microsoft:sqlserver://;
private final String serverName = 192.168.1.103;
//private final String portNumber = 1433;
private final String databaseName = sdportaldb1;
private final String userName = sddb1ownr;
private final String password = judgmentDAY786;

// Informs the driver to use server a side-cursor,
// which permits more than one active statement
// on a connection.
//private final String selectMethod = cursor;

public DB_Conn() {
}

private java.sql.Connection getConnection() {
try {
// Note: this class name changes for ms sql
server 2000 thats it
// It has to match the JDBC library that goes
with ms sql 2000
 
Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver);
con =
DriverManager.getConnection(getConnectionUrl());

if (con != null)
System.out.println(Connection
Successful!);
} catch (Exception e) {
e.printStackTrace();
System.out.println(Error Trace in
getConnection() : 
+ e.getMessage());
}
return con;
}

private String getConnectionUrl() {
String url = jdbc:sqlserver:// + serverName +
;user= + userName
+ ;password= + password +
;databaseName= + databaseName
+ ;;
return url;
}

/*
 Display the driver properties, database details
 */

public void displayDbProperties() {
java.sql.DatabaseMetaData dm = null;
java.sql.ResultSet rs = null;
try {
con = this.getConnection();
if (con != null) {
dm = con.getMetaData();
System.out.println(Driver
Information);
System.out.println(\tDriver Name:  +
dm.getDriverName());
System.out
.println(\tDriver
Version:  + dm.getDriverVersion());
System.out.println(\nDatabase
Information );
System.out.println(\tDatabase Name: 
+
dm.getDatabaseProductName());
System.out.println(\tDatabase
Version: 
+
dm.getDatabaseProductVersion());
System.out.println(Avalilable
Catalogs );
rs = dm.getCatalogs();
while (rs.next()) {
System.out.println(\tcatalog:
 + rs.getString(1));
}
rs.close();
rs = null;
closeConnection();
} else
System.out.println(Error: No active
Connection);
} catch (Exception e) {
e.printStackTrace();
}
dm = null;
}

private void closeConnection() {
try {
if (con != null)
con.close();
con = null;
} catch (Exception e) {
e.printStackTrace();
}
}

public static void main(String[] args) throws Exception {
DB_Conn myDbTest = new DB_Conn();
myDbTest.displayDbProperties();
}
}

and now i wana use this class in GWT Project

how i used it some one guide me plz

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



Re: Preventing selection event propagation

2012-04-27 Thread Ashwin Desikan
Do u use activities in your app? If yes do you have an activity mapped to each 
of your tabs? You have a mayStop method in activities which can be used to stop 
the user from navigating from current activity. 

~Ashwin

Sent from my iPhone

On Apr 27, 2012, at 5:15 PM, ALB-PSP-DV1 albpsp...@gmail.com wrote:

 Our application has two tabs. On selecting the tabs we have to display
 a confirmation window(dialog box). Depending on whether user clicks
 Yes or No button in the confirmation window, the tab selection
 event should proceed or stop.
 
 I know we have event.stopPropagation() method for click event. However
 there is no such method for selection event.
 
 Is there any work around to stop the propagation of the selection
 event. Any help is much appreciated.
 
 Thanks in advance.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 

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



Re: GWT RequestBuilder not working in Chrome and FireFox

2012-04-27 Thread Alfredo Quiroga-Villamil
SOP violation. You seem to be sending a request crossing domains.

Look up Same Origin Policy online for more info.

Regards,

Alfredo
On Apr 27, 2012 8:37 AM, the.wizard willy.jui...@gmail.com wrote:

 Hi everyone,
 I have a problem with RequestBuilder. When I run my code that using
 RequestBuilder in IE 8, it's working well, but in Chrome and FireFox,
 it just keep returning empty string. When I tried to debug it, the
 response is com.google.gwt.http.client.Request$1@5a7667be, and have
 no headers, the code is 0. I also get an exception like this :
 07:33:50.734 [ERROR] [chameleonmain] Uncaught exception escaped

 com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
 connection lost
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
 354)
at

 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
 218)
at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
at

 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
 91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at

 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
 172)
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
 292)
at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 546)
at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 363)
at java.lang.Thread.run(Thread.java:662)
 Caused by: java.net.SocketException: Connection reset by peer: socket
 write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
 92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
 java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:
 123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1310)
at com.google.gwt.dev.shell.BrowserChannel
 $ReturnMessage.send(BrowserChannel.java:1315)
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
 340)
at

 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
 218)
at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 136)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
at

 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
 91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at

 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
 172)
at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
 292)
at

 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 546)
at

 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 363)
at java.lang.Thread.run(Thread.java:662)

 Is there any way to solve this problem?
 Here is my code :
 RequestBuilder request = new RequestBuilder(RequestBuilder.GET, url);
 request.setHeader(Content-Type, text/html);
 RequestCallback callback = new RequestCallback() {
@Override
public void onResponseReceived(Request request, Response response) {
String userIdentity = 

Re: Preventing selection event propagation

2012-04-27 Thread Jens
Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its 
only a logical event fired by GWT and not a native event fired by the 
browser. Thats why you don't have a stopPropagation() / preventDefault() 
method.

But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the 
BeforeSelectionEvent contains a cancel() method which should cancel the 
upcoming selection. This should help you to solve your problem.

-- J.


Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1:

 Our application has two tabs. On selecting the tabs we have to display 
 a confirmation window(dialog box). Depending on whether user clicks 
 Yes or No button in the confirmation window, the tab selection 
 event should proceed or stop. 

 I know we have event.stopPropagation() method for click event. However 
 there is no such method for selection event. 

 Is there any work around to stop the propagation of the selection 
 event. Any help is much appreciated. 

 Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/YqVKXVu0eCsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to set a Font for all the compoent in GWT

2012-04-27 Thread Dayananda B V
Hi All,

I need to set different  font other than default font which will come
CLEAN Theme. (Arial)
Is i need to set style property for individual component ?

Appreciate your help.

Thanks
Daya

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



Re: Request Context clear queue on method invocations when onConstraintViolation is called

2012-04-27 Thread Jens
Don't enqueue requestContext.saveMember(..).to(..) in the save button 
ClickHandler. Do it once when you start editing the proxy and in your 
ClickHandler you only need to do editorDriver.flush().fire().

-- J.


Am Freitag, 27. April 2012 12:32:28 UTC+2 schrieb Alex Vakaloudis:

 To perform save  in a view I am using RequestFactoryEditorDriver to flush 
 any changes to a RequestContext and then I call 

 save(the edited proxy).to(MyReceiverVoid).fire();

 MemberRequest s = (MemberRequest)editorDriver.flush();
 MemberProxy sectorProxy = (MemberProxy)getProxy();
 s.saveMember(sectorProxy).to(new MyReceiverVoid()).fire();

 MyReceiver has a onConstraintViolation method which displays violations 
 generated in the server. I am using my own 
  ServiceLayerDecorator.validate() to check for any business-related 
 constraints.

 To this point it works fine. However when after more than one attempts the 
 user fixes all violations and the entity reaches the service, the save 
 method is invoked multiple times (as many attempts it took to pass 
 validation). I understand that  this is because the request context is 
 queuing all method invocations and by calling onConstraintViolation. this 
 queue is not cleared and this leads to multiple calls to the server.

 My question is how/where to clear the request context of any method 
 invocations that have lead to the call of onConstraintViolation 

 thanks in Advance
 Alex


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kGm-gKmYgucJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to set a Font for all the compoent in GWT

2012-04-27 Thread Ashwin Desikan
Daya,

Define a font in your CSS or ui:binder  and add it as a style for the widget by 
using any of the styleName or addStyleName properties of the widget

Thanks
Ashwin
Sent from my iPhone

On Apr 27, 2012, at 6:34 PM, Dayananda B V dayanand...@gmail.com wrote:

 Hi All,
 
 I need to set different  font other than default font which will come
 CLEAN Theme. (Arial)
 Is i need to set style property for individual component ?
 
 Appreciate your help.
 
 Thanks
 Daya
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 

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



Re: How to stop the move to Place

2012-04-27 Thread Alfredo Quiroga-Villamil
Hi:

I am not 100% sure what you are trying to do, but in your current
activity, you can override mayStop(). That would be one possible way
to intercept and potentially cancel going to a new place.

If that doesn't do what you need, please provide a little example of
what the ultimate goal is to see what options are available depending
on your use case.

Best regards,

Alfredo

On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote:
 Hello.
 I need to create model window, which appears, when I try to go from
 current page via links.
 I may initiate the creation of window into onPlaceChangeRequest
 (PlaceChangeRequestEvent.Handler ()).
 But I dont know, how to interrupt the process of transition.
 It is possible?

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: ff11 gwt dev plugin

2012-04-27 Thread Juan Pablo Gardella
http://acleung.com/ff12-win.xpi

El 25 de abril de 2012 12:13, guy2 guylesp...@yahoo.fr escribió:

 Hello Alan,


 Mozilla have just released FF 12.

 Can you please compile the plugin for FF 12 ?

 Personnally, I need the version for Win XP 32bits and Win 7 32/64 bits.

 FYI, Mozilla changed at the end of 2011 (if I remember well) their policy
 about releasing FF.
 Now, they release a new version every 6 weeks (FF12 has been released in
 fact 5 weeks after FF11).


 Best regards,

 Guy2


 Le vendredi 16 mars 2012 20:58:34 UTC+1, Alan Leung a écrit :

 Wow! I didn't know it was released already.

 Some how I thought I had more time until FF11. I'll get on it. thanks for
 the reminder.


 -Alan


 On Fri, Mar 16, 2012 at 7:08 AM, Olivier Scherler 
 oliv...@gasser-media.ch wrote:

 I’m wondering, how long until Mozilla releases new version of Firefox
 faster than the GWT community can recompile the plugin?


 On 16 March 2012 14:25, Fabricio Pizzichillo fpizzichi...@gmail.comwrote:

 Hello Alan.
 Can you compile the plugin for FF11?

 regards

  --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@**
 googlegroups.com google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to google-web-toolkit+**
 unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en
 **.


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/pl5hPv_haIQJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: GWT SERIALIZATION PROBLEM

2012-04-27 Thread Alfredo Quiroga-Villamil
Hard to tell without seeing code or stack trace. Please provide:

1. A bit of code illustrating the main players. DTO, Service,
ServiceAsync, ServiceImpl method.
2. Stack Trace for the failure.

Regards,

Alfredo

On Wed, Apr 25, 2012 at 6:20 AM, Nitheesh Chandran
nithe...@aviamatica.com wrote:
 Hello  Guys ,

 I have a problem ,I want to save an object to the database. I passed
 the object to the server using a function. Like this
 http://www.easywayserver.com/blog/how-to-serializable-object-in-java-2/.
 But my RPC is getting failed every time. What will be the problem ? i
 used isSerializable marker interface for serialization. Cant we send
 client object to the server through RPC?

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: Dynamic CompositeCell

2012-04-27 Thread Derek
I personally would just create a new cell, but I'd probably start with
CompositeCell for a starting point.

On Apr 25, 9:16 pm, Aoxiang Cui cuiaoxi...@google.com wrote:
 The title is too short, let me explain and simplify my situation.

 Say, I have a dto which contains a list of Booleans. I need a column whose
 cell looks like below:

 item_1  checkbox_1
 item_2  checkbox_2
 ...
 item_n  checkbox_n

 If n is a fixed number, it is fine to use CompositeCell. The problem is we
 don't know the size of list and each cell can have different list size.
 Is there any way to extend CompositeCell so as to make it support my
 situation. Or maybe I should write a new Cell?

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



Re: How to add External Java Classes to GWT Project?

2012-04-27 Thread Alfredo Quiroga-Villamil
Danish:

Your project out of the box was created by the plugin with a directory
structure as follows:

/client
/shared
/server

The class you created will reside under the server package. Anything
in the /client and /shared will eventually get compiled down to JS. So
in your server you do all your crud operations and return data back to
the client.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 3:21 AM, Danish muhammadan...@gmail.com wrote:
 Hi im new in this some one Guide me...

 i create a java project
 
 import java.sql.DriverManager;

 public class DB_Conn {

        private java.sql.Connection con = null;
        //private final String url = jdbc:microsoft:sqlserver://;
        private final String serverName = 192.168.1.103;
        //private final String portNumber = 1433;
        private final String databaseName = sdportaldb1;
        private final String userName = sddb1ownr;
        private final String password = judgmentDAY786;

        // Informs the driver to use server a side-cursor,
        // which permits more than one active statement
        // on a connection.
        //private final String selectMethod = cursor;

        public DB_Conn() {
        }

    private java.sql.Connection getConnection() {
                try {
                        // Note: this class name changes for ms sql
 server 2000 thats it
                        // It has to match the JDBC library that goes
 with ms sql 2000

 Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver);
                        con =
 DriverManager.getConnection(getConnectionUrl());

                        if (con != null)
                                System.out.println(Connection
 Successful!);
                } catch (Exception e) {
                        e.printStackTrace();
                        System.out.println(Error Trace in
 getConnection() : 
                                        + e.getMessage());
                }
                return con;
        }

        private String getConnectionUrl() {
                String url = jdbc:sqlserver:// + serverName +
 ;user= + userName
                                + ;password= + password +
 ;databaseName= + databaseName
                                + ;;
                return url;
        }

        /*
             Display the driver properties, database details
         */

        public void displayDbProperties() {
                java.sql.DatabaseMetaData dm = null;
                java.sql.ResultSet rs = null;
                try {
                        con = this.getConnection();
                        if (con != null) {
                                dm = con.getMetaData();
                                System.out.println(Driver
 Information);
                                System.out.println(\tDriver Name:  +
 dm.getDriverName());
                                System.out
                                                .println(\tDriver
 Version:  + dm.getDriverVersion());
                                System.out.println(\nDatabase
 Information );
                                System.out.println(\tDatabase Name: 
                                                +
 dm.getDatabaseProductName());
                                System.out.println(\tDatabase
 Version: 
                                                +
 dm.getDatabaseProductVersion());
                                System.out.println(Avalilable
 Catalogs );
                                rs = dm.getCatalogs();
                                while (rs.next()) {
                                        System.out.println(\tcatalog:
  + rs.getString(1));
                                }
                                rs.close();
                                rs = null;
                                closeConnection();
                        } else
                                System.out.println(Error: No active
 Connection);
                } catch (Exception e) {
                        e.printStackTrace();
                }
                dm = null;
        }

        private void closeConnection() {
                try {
                        if (con != null)
                                con.close();
                        con = null;
                } catch (Exception e) {
                        e.printStackTrace();
                }
        }

        public static void main(String[] args) throws Exception {
                DB_Conn myDbTest = new DB_Conn();
                myDbTest.displayDbProperties();
        }
 }
 
 and now i wana use this class in GWT Project

 how i used it some one guide me plz

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web 

Re: Dynamic CompositeCell

2012-04-27 Thread Alfredo Quiroga-Villamil
If you have an n number of values that should be represented in one
single column, I would go for a tree. Its ability to expand nodes when
needed, gives the user a chance to have it expanded or collapsed. So
in your case the column would contain:

Top Of Tree
  CheckBox 1
  CheckBox 2
  CheckBox 3
  CheckBox n

Regards,

Alfredo

On Wed, Apr 25, 2012 at 9:16 PM, Aoxiang Cui cuiaoxi...@google.com wrote:
 The title is too short, let me explain and simplify my situation.

 Say, I have a dto which contains a list of Booleans. I need a column whose
 cell looks like below:

 item_1  checkbox_1
 item_2  checkbox_2
 ...
 item_n  checkbox_n

 If n is a fixed number, it is fine to use CompositeCell. The problem is we
 don't know the size of list and each cell can have different list size.
 Is there any way to extend CompositeCell so as to make it support my
 situation. Or maybe I should write a new Cell?

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/slhetcYlVBsJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: Thoughts on User defined time in the UI

2012-04-27 Thread Alfredo Quiroga-Villamil
I don't recall seeing a TimePicker in GWT. I do recall seeing one and
I found it in the GWT incubator (URL at the end of my response).

Options:

a) Create something fairly simple now to get the job done. Three
SelectionCell's if you want the values to be unmodifiable and save
yourself the trouble of validation if you used TextBoxes. This is
perhaps one of the simplest ways to go.

b) Create something a bit more sophisticated.

c) Take a look at the previous incubator implementation. It's GWT
only, so you might be able to resuscitate it and use it.

http://code.google.com/p/gwt-incubator-lib/source/browse/trunk/GWT-Incubator-TimePicker/src/main/java/com/gwtincubator/widgets/client/timepicker/TimePicker.java

Regards,

Alfredo

On Wed, Apr 25, 2012 at 11:56 AM, GlasgowSteve shsp...@gmail.com wrote:
 I would like to have a field in my UI which allows the user to pass a
 24h time - I will then use the time to do a search on events occuring
 after that time. There should not be a date asociated with the time on
 the UI. The time passed should be in the format hh:mm:ss.

 I'm using plain ol' GWT - extensions or addtional libraries are
 unavailble here for all intents and purposes (I've seen a few options
 in gwt-ext and smartGWT but would rather avoid.

 What would be the best method of allowing users to define time in the
 UI using core GWT? A textbox which assumes 6 digits (hhmmss) that can
 then be parsed? Three seperate text boxes for hour minute second which
 would be easier to validate? Extending a Calander Widgit? Another
 Widgit I've overlooked that should be considered? Or something I
 haven't considered at all?


 Thanks for your help

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: Disable the display of values of a ListBox

2012-04-27 Thread Alfredo Quiroga-Villamil
To better understand the question, why is setEnable(false) not an
option? What is the behavior you would like to see?

Regards,

Alfredo

On Fri, Apr 27, 2012 at 5:57 AM, Ali Thabet thabet.al...@gmail.com wrote:
 Hello, is there a way to disable the display of values of
 the ListBox after the user click? I do not want to use the
 method setEnable(false).

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



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: How to stop the move to Place

2012-04-27 Thread st1ll
Thanks for the answer.
This method (mayStop()) is not suitable to me for one reason - I need to get
 to the window, except for OK and Cancel buttons were also a button 
Save at the touch of which happened to save the data into the database.
I have not found a way to make non-standard window, caused by this method 

On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil wrote:

 Hi: 

 I am not 100% sure what you are trying to do, but in your current 
 activity, you can override mayStop(). That would be one possible way 
 to intercept and potentially cancel going to a new place. 

 If that doesn't do what you need, please provide a little example of 
 what the ultimate goal is to see what options are available depending 
 on your use case. 

 Best regards, 

 Alfredo 

 On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote: 
  Hello. 
  I need to create model window, which appears, when I try to go from 
  current page via links. 
  I may initiate the creation of window into onPlaceChangeRequest 
  (PlaceChangeRequestEvent.Handler ()). 
  But I dont know, how to interrupt the process of transition. 
  It is possible? 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups Google Web Toolkit group. 
  To post to this group, send email to google-web-toolkit@googlegroups.com. 

  To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com. 
  For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en. 
  



 -- 
 Alfredo Quiroga-Villamil 

 AOL/Yahoo/Gmail/MSN IM:  lawwton 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-xYLh1GQF1sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Entities in GWT 2.4

2012-04-27 Thread Alfredo Quiroga-Villamil
https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory

Look there for ValueProxy. They provide a concise example.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 5:41 AM, Ashu swathi.kambhamp...@gmail.com wrote:
 Hi,

 I am using GWT2.4 version.

 how to use value proxies without entities?

 If possible please provide me some sample example.

 Thanks

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/VZMr_N4-kSsJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: How to stop the move to Place

2012-04-27 Thread Alfredo Quiroga-Villamil
Can you please provide the flow for this particular case. I think
it'll help me and others to better understand, sorry if I am not
following 100% still :( Something like:

1. I have a view with a table.
2. The user edits and clicks save.
3. I show them a Modal Dialog with three buttons.
4. The third button triggers navigation to go to a new place...

Something like that to get a better idea.

Thanks in advance,

Alfredo

On Fri, Apr 27, 2012 at 10:28 AM, st1ll scofield...@gmail.com wrote:
 Thanks for the answer.
 This method (mayStop()) is not suitable to me for one reason - I need to
 get to the window, except for OK and Cancel buttons were also a button
 Save at the touch of which happened to save the data into the database.
 I have not found a way to make non-standard window, caused by this method

 On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil wrote:

 Hi:

 I am not 100% sure what you are trying to do, but in your current
 activity, you can override mayStop(). That would be one possible way
 to intercept and potentially cancel going to a new place.

 If that doesn't do what you need, please provide a little example of
 what the ultimate goal is to see what options are available depending
 on your use case.

 Best regards,

 Alfredo

 On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote:
  Hello.
  I need to create model window, which appears, when I try to go from
  current page via links.
  I may initiate the creation of window into onPlaceChangeRequest
  (PlaceChangeRequestEvent.Handler ()).
  But I dont know, how to interrupt the process of transition.
  It is possible?
 
  --
  You received this message because you are subscribed to the Google
  Groups Google Web Toolkit group.
  To post to this group, send email to
  google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 



 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/-xYLh1GQF1sJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: Server detection of client crash

2012-04-27 Thread Alfredo Quiroga-Villamil
Can you please define or explain what you mean by whenever a client crashes?

Thank you in advance,

Alfredo

On Fri, Apr 27, 2012 at 1:49 AM, mmorckos mikey.morc...@gmail.com wrote:
 Hello,

 I'm intending to develop a web-based frontend UI for a control system
 in a research lab. For safety purposes, it's vital that when a client
 crashes, the server is notified immediately and dispatches a stop
 signal to all connected machinery.

 I'm new to gwt and would like to know if there is a way to know
 whenever a client crashes on the server side, specifically inside a
 RemoteServiceServlet.

  Regards,
 Michael

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-27 Thread Mauro
+1

Em segunda-feira, 23 de abril de 2012 12h55min27s UTC-3, Jmscavaleiro 
escreveu:

 We are investing our time, our job and our life on/with GWT so we need 
 to be more informed and we need to know with what we can count.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mu7r5bW_ncMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Disable the display of values of a ListBox

2012-04-27 Thread Ali Thabet
I do not want the list appears to be disabled. It is located in a draggable
component. I do not want the values ​​appear after the click when the drag
operation start. The values ​​in the list are not used in the application
and they are unnecessary, just the appearance of the list is necessary.

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



Re: GWT applications session management

2012-04-27 Thread Joseph Lust
See  https://www.google.com/search?q=google+web+toolit+overview


Joe

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Ejn8spysqL8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT for starters

2012-04-27 Thread Joseph Lust
The best documentation is that of Google. Check out all of their 
docshttps://developers.google.com/web-toolkit/overview. 
Read them all and you'll be an expert.

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_CnwtNBi_cgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to stop the move to Place

2012-04-27 Thread st1ll
The situation is the following:
1) There is a table cell which can be edited
2) the user has not saved the changes, and clicks on any item on the 
navigation menu (try to move to another page)
3) You receive a modal window with the message - There are unsaved changes.
 Do you want to keep them? There are three buttons - Save, Do not Save, 
Cancel
4) By clicking the Save button, the data is sent to the server and takes 
you to a page that the user has selected previously on the menu
5) If the button is pressed, Do not save just takes you to a page that the 
user has selected previously
6) If you press Cancel modal window just closes, switching to a different 
page is not carried out

I'm sorry to write in English until I get bad, so to understand my speech can 
be hard :) 

пятница, 27 апреля 2012 г., 17:36:58 UTC+3 пользователь Alfredo 
Quiroga-Villamil написал:

 Can you please provide the flow for this particular case. I think 
 it'll help me and others to better understand, sorry if I am not 
 following 100% still :( Something like: 

 1. I have a view with a table. 
 2. The user edits and clicks save. 
 3. I show them a Modal Dialog with three buttons. 
 4. The third button triggers navigation to go to a new place... 

 Something like that to get a better idea. 

 Thanks in advance, 

 Alfredo 

 On Fri, Apr 27, 2012 at 10:28 AM, st1ll scofield...@gmail.com wrote: 
  Thanks for the answer. 
  This method (mayStop()) is not suitable to me for one reason - I need to 
  get to the window, except for OK and Cancel buttons were also 
 a button 
  Save at the touch of which happened to save the data into the 
 database. 
  I have not found a way to make non-standard window, caused by this 
 method 
  
  On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil 
 wrote: 
  
  Hi: 
  
  I am not 100% sure what you are trying to do, but in your current 
  activity, you can override mayStop(). That would be one possible way 
  to intercept and potentially cancel going to a new place. 
  
  If that doesn't do what you need, please provide a little example of 
  what the ultimate goal is to see what options are available depending 
  on your use case. 
  
  Best regards, 
  
  Alfredo 
  
  On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote: 
   Hello. 
   I need to create model window, which appears, when I try to go from 
   current page via links. 
   I may initiate the creation of window into onPlaceChangeRequest 
   (PlaceChangeRequestEvent.Handler ()). 
   But I dont know, how to interrupt the process of transition. 
   It is possible? 
   
   -- 
   You received this message because you are subscribed to the Google 
   Groups Google Web Toolkit group. 
   To post to this group, send email to 
   google-web-toolkit@googlegroups.com. 
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com. 
   For more options, visit this group at 
   http://groups.google.com/group/google-web-toolkit?hl=en. 
   
  
  
  
  -- 
  Alfredo Quiroga-Villamil 
  
  AOL/Yahoo/Gmail/MSN IM:  lawwton 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  Google Web Toolkit group. 
  To view this discussion on the web visit 
  https://groups.google.com/d/msg/google-web-toolkit/-/-xYLh1GQF1sJ. 
  To post to this group, send email to google-web-toolkit@googlegroups.com. 

  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com. 
  For more options, visit this group at 
  http://groups.google.com/group/google-web-toolkit?hl=en. 



 -- 
 Alfredo Quiroga-Villamil 

 AOL/Yahoo/Gmail/MSN IM:  lawwton 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WcyEyCnmDZQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Thoughts on User defined time in the UI

2012-04-27 Thread Joseph Lust
Check out how this is done in ExtJs. Basically you just set a listener for 
the character entry to the textbox. You set a regex that is looking for 
something like *\d{1,2}:\d{2}:\d{2}* to confirm that people are entering it 
as desired. Then I just have 2 functions called sec2time() and time2sec() 
so that I can pass the time as seconds back to the server.

This is how I do this for time entry on 
RunPartner.comhttp://www.RunPartner.com, 
but you've have to be a member to play with that widget. I'm working on 
converting it to GWT, but it's still ExtJs for now. I'll throw the time 
widget source up when I get it in GWT.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xBSjVmRhdcYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to use image in global css

2012-04-27 Thread Joseph Lust
To start with, I like to utilize the public/ folders in my packages for 
storing these values. That way, if you put images in any public/images/ 
folder  (I put a public/ folder in every module), they will end up in your 
war in the images/ folder.

First make sure that the above is working correctly for you. You can also 
utilize an ImageBundle which will assure you the images are available 
through compile time checking. I find this the best solution.

With an ImageBundle your rule becomes:

@sprite
.rule1 {

gwt-image:'img1';

}


To investigate this further use FireBug or Chrome dev tools to find what 
image resource your .rule1 is pointing at. That will probably reveal the 
problem.


Sincerely,
Joseph


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vIeyrhMr5g8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Server detection of client crash

2012-04-27 Thread Joseph Lust
I would not recommend operating safety critical machinery with a JS web 
app. An embedded system written in Ada would be better.

Joe

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/AMsz-G3PsmEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Runtime exception: com.google.web.bindery.requestfactory.server.UnexpectedException: Could not find static method with a single parameter of a key type

2012-04-27 Thread Thomas Lefort
You do have to read the doc carefully indeed. I got stuck for a little 
while, I thought I could get away by simply using find but no you need to 
use findEntity, ie replace Entity by your entity name. This got me, 
because at first it worked with a single entity, but when I had two 
entities with relationships, it wouldn't work anymore. By changing the 
method names to respect the convention mentioned above, it worked fine.


On Wednesday, 25 April 2012 11:48:21 UTC+2, Thomas Broyer wrote:



 On Wednesday, April 25, 2012 11:34:56 AM UTC+2, Ashu wrote:

 could you please provide me the sample findby() method for reference?


 See 
 http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/samples/expenses/src/main/java/com/google/gwt/sample/expenses/server/domain/Expense.java#64
  for 
 example (uses JPA for persistence) 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Ailfmb3jx1wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: UIBinder: Overriding obfuscated CSS styleNames

2012-04-27 Thread Joseph Lust
On reading your problem, I became curious how this is achieved.

According to the following article, you can do this using the interfaces.
http://stackoverflow.com/questions/5943895/how-exactly-would-one-override-a-cssresource
 

So, you'll need to use the interfaces in your UiBinder.

Something like:

# put this in your new widget's java class
interface CustomStlye extends ToggleButton.Style
{ 
@Override
public String down(); 
}

# put this in the UiBinder of your new widget
ui:style type=com.mypackage.CustomStyle  
.button .down { 
   background: #fff; 
} 
/ui:style


Let me know if this works for you. I don't have the time to make a module 
to test this on?

Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ZFHeGB1jT0IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google axing GWT?

2012-04-27 Thread Joseph Lust
I'll keep praying for GWT. Let's see what transpires at Google IO in June.


Joe

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VrsH8tPIQs4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: UIBinder: Overriding obfuscated CSS styleNames

2012-04-27 Thread Brad Leupen
Ah, interesting idea! Thanks for the response. I'll try that this evening 
and report back. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gkHMeodaY8oJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google axing GWT?

2012-04-27 Thread Mauro Oliveira
+1

On 27 April 2012 14:11, Joseph Lust lifeofl...@gmail.com wrote:

 I'll keep praying for GWT. Let's see what transpires at Google IO in June.


 Joe

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/VrsH8tPIQs4J.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: where to place css file and image file?

2012-04-27 Thread Joseph Lust
For CssResource and ImageResource users, I find this the most robust way to 
place these files:

*com.myPackage.moduleA.resources (put resource interfaces here)
*com.myPackage.moduleA.resources.images (put image files here)
*com.myPackage.moduleA.resources.css (put css files here) 

The real payoff here is that:

   1. Each module is self contained with all its css/images. Try pulling a 
   module's resources of out a public folder shared by 10 modules.
   2. You can more easily use this module in a different GWT project.
   3. Since you're not using a public folder, only the used 
   selectors/images get compiled into your output war. Saves a lot of 
   time/bytes.

You might ask What images used in multiple modules? In our apps we have a 
common module with these parts.

Hope that helps.


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/A6YyVptQ1kYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google axing GWT?

2012-04-27 Thread Steve
https://plus.google.com/110412141990454266397/posts/8nmmgp4AChM

Enjoy.

On Apr 27, 3:26 pm, Mauro Oliveira mauro.no...@gmail.com wrote:
 +1

 On 27 April 2012 14:11, Joseph Lust lifeofl...@gmail.com wrote:







  I'll keep praying for GWT. Let's see what transpires at Google IO in June.

  Joe

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/VrsH8tPIQs4J.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-27 Thread Steve
Don't know if anyone has posted this link yet, but here goes.

https://plus.google.com/110412141990454266397/posts/8nmmgp4AChM

Not quite a roadmap, but it IS signs of external communication. :) I'm not 
as worried anymore.

I'm betting that we'll see some really cool stuff out of IO.

On Monday, April 2, 2012 11:19:16 AM UTC-4, Joshua Kappon wrote:

 With the rise of the new developers.google.com, and with Google trying to 
 rally up developers using Google technologies and products, and the rise of 
 Dart and unclear future of GWT, I think it's about time that Google will 
 rethink the all We don't and won't have a road map, and there are no 
 release dates for new GWT versions and embrace the GWT developers 
 community.

 What do you guys think? (if you agree, +1 this)

 Best,
 Josh 


On Monday, April 2, 2012 11:19:16 AM UTC-4, Joshua Kappon wrote:

 With the rise of the new developers.google.com, and with Google trying to 
 rally up developers using Google technologies and products, and the rise of 
 Dart and unclear future of GWT, I think it's about time that Google will 
 rethink the all We don't and won't have a road map, and there are no 
 release dates for new GWT versions and embrace the GWT developers 
 community.

 What do you guys think? (if you agree, +1 this)

 Best,
 Josh 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/w78ctdAr5nYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google axing GWT?

2012-04-27 Thread Daniel Mauricio Patino León
I think GWT its a very good open source project. We use it to develop RIA
and we love it. Like  Joseph i'll pray to google make it better and improve
it.
What about a thread where people +1 if want that google keep working on it?
there  exist one?

Greetings from Mexico.

El 27 de abril de 2012 15:12, Steve strat...@gmail.com escribió:

 https://plus.google.com/110412141990454266397/posts/8nmmgp4AChM

 Enjoy.

 On Apr 27, 3:26 pm, Mauro Oliveira mauro.no...@gmail.com wrote:
  +1
 
  On 27 April 2012 14:11, Joseph Lust lifeofl...@gmail.com wrote:
 
 
 
 
 
 
 
   I'll keep praying for GWT. Let's see what transpires at Google IO in
 June.
 
   Joe
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To view this discussion on the web visit
  https://groups.google.com/d/msg/google-web-toolkit/-/VrsH8tPIQs4J.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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




-- 
ISC. Daniel Mauricio Patiño León.
Director ejecutivo
Liondev S.A. de C.V.

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



Re: Server detection of client crash

2012-04-27 Thread mmorckos
What I meant by crash is that the client doesn't cleanly. For
instance, the user can simply close the web-page, or the client's
machine can lose connection to the server. I'm asking if there is a
way that the server can detect that instantly (some sort of a
heartbeat ping between the client and the server, unlike a session
timeout).

On Apr 27, 10:47 am, Alfredo Quiroga-Villamil laww...@gmail.com
wrote:
 Can you please define or explain what you mean by whenever a client crashes?

 Thank you in advance,

 Alfredo









 On Fri, Apr 27, 2012 at 1:49 AM,mmorckosmikey.morc...@gmail.com wrote:
  Hello,

  I'm intending to develop a web-based frontend UI for a control system
  in a research lab. For safety purposes, it's vital that when a client
  crashes, the server is notified immediately and dispatches a stop
  signal to all connected machinery.

  I'm new to gwt and would like to know if there is a way to know
  whenever a client crashes on the server side, specifically inside a
  RemoteServiceServlet.

   Regards,
  Michael

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: How to stop the move to Place

2012-04-27 Thread Alfredo Quiroga-Villamil
Interestingly enough, have to admit, I don't see at a glance unless I
am missing something an easy way to accomplish what you need.

We need something to completely halt execution and act upon the result
of the action/handler (ok or cancel result for example), which is
ultimately what the PlaceController is doing via a DefaultDelegate
using a Window.confirm in mayStop.

I will try to make some time over the weekend and look into this.
Hopefully we are both just missing the obvious and there is an easy
solution to it and someone will respond to the thread with it.

Regards,

Alfredo
 -

2012/4/27 st1ll scofield...@gmail.com:
 The situation is the following:
 1) There is a table cell which can be edited
 2) the user has not saved the changes, and clicks on any item on the
 navigation menu (try to move to another page)
 3) You receive a modal window with the message - There are unsaved
 changes. Do you want to keep them? There are three buttons - Save, Do
 not Save, Cancel
 4) By clicking the Save button, the data is sent to the server and takes
 you to a page that the user has selected previously on the menu
 5) If the button is pressed, Do not save just takes you to a page that the
 user has selected previously
 6) If you press Cancel modal window just closes, switching to a different
 page is not carried out

 I'm sorry to write in English until I get bad, so to understand my
 speech can be hard :)

 пятница, 27 апреля 2012 г., 17:36:58 UTC+3 пользователь Alfredo
 Quiroga-Villamil написал:

 Can you please provide the flow for this particular case. I think
 it'll help me and others to better understand, sorry if I am not
 following 100% still :( Something like:

 1. I have a view with a table.
 2. The user edits and clicks save.
 3. I show them a Modal Dialog with three buttons.
 4. The third button triggers navigation to go to a new place...

 Something like that to get a better idea.

 Thanks in advance,

 Alfredo

 On Fri, Apr 27, 2012 at 10:28 AM, st1ll scofield...@gmail.com wrote:
  Thanks for the answer.
  This method (mayStop()) is not suitable to me for one reason - I need to
  get to the window, except for OK and Cancel buttons were also
  a button
  Save at the touch of which happened to save the data into the
  database.
  I have not found a way to make non-standard window, caused by this
  method
 
  On Friday, April 27, 2012 4:41:51 PM UTC+3, Alfredo Quiroga-Villamil
  wrote:
 
  Hi:
 
  I am not 100% sure what you are trying to do, but in your current
  activity, you can override mayStop(). That would be one possible way
  to intercept and potentially cancel going to a new place.
 
  If that doesn't do what you need, please provide a little example of
  what the ultimate goal is to see what options are available depending
  on your use case.
 
  Best regards,
 
  Alfredo
 
  On Fri, Apr 27, 2012 at 8:33 AM, st1ll scofield...@gmail.com wrote:
   Hello.
   I need to create model window, which appears, when I try to go from
   current page via links.
   I may initiate the creation of window into onPlaceChangeRequest
   (PlaceChangeRequestEvent.Handler ()).
   But I dont know, how to interrupt the process of transition.
   It is possible?
  
   --
   You received this message because you are subscribed to the Google
   Groups Google Web Toolkit group.
   To post to this group, send email to
   google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.
  
 
 
 
  --
  Alfredo Quiroga-Villamil
 
  AOL/Yahoo/Gmail/MSN IM:  lawwton
 
  --
  You received this message because you are subscribed to the Google
  Groups
  Google Web Toolkit group.
  To view this discussion on the web visit
  https://groups.google.com/d/msg/google-web-toolkit/-/-xYLh1GQF1sJ.
  To post to this group, send email to
  google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.



 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/WcyEyCnmDZQJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe 

Re: Server detection of client crash

2012-04-27 Thread Alfredo Quiroga-Villamil
Thanks. I think Joseph said it before and I agree with him. If it's
something of that nature, I would likely try to stay from web stuff.
However, that doesn't mean is not possible or there are no ways to
ensure what you want.

I recently had the chance to speak with a few guys at RedHat about a
project they have been working on based on GWT. I've been meaning to
let people know about it because I was really impressed by a couple of
things I saw. One of them can truly help you and make your requirement
easier or a lot easier to implement.

http://www.jboss.org/errai

A few things:

a) You don't need jboss to use it.
b) Take special attention to CDI (crazy cool and useful).
c) They've done something really interesting where you truly have a
transparent web/server application, blurring completely the lines
between server and UI. Via an annotation you have Server Push. Their
Dependency Injection I thought was also nicer than GIN for the UI.
Although I use GIN and love it!

So what you could do, assuming that you truly want to keep this web
based is to have the server contacting the UI every x amount of
seconds. If no response is received from the UI, then you know that
something is not right. That would be better I think than polling the
server.

Again, this could be done without errai, but take a look at it if you
get a chance.

Best regards,

Alfredo

On Fri, Apr 27, 2012 at 4:44 PM, mmorckos mikey.morc...@gmail.com wrote:
 What I meant by crash is that the client doesn't cleanly. For
 instance, the user can simply close the web-page, or the client's
 machine can lose connection to the server. I'm asking if there is a
 way that the server can detect that instantly (some sort of a
 heartbeat ping between the client and the server, unlike a session
 timeout).

 On Apr 27, 10:47 am, Alfredo Quiroga-Villamil laww...@gmail.com
 wrote:
 Can you please define or explain what you mean by whenever a client 
 crashes?

 Thank you in advance,

 Alfredo









 On Fri, Apr 27, 2012 at 1:49 AM,mmorckosmikey.morc...@gmail.com wrote:
  Hello,

  I'm intending to develop a web-based frontend UI for a control system
  in a research lab. For safety purposes, it's vital that when a client
  crashes, the server is notified immediately and dispatches a stop
  signal to all connected machinery.

  I'm new to gwt and would like to know if there is a way to know
  whenever a client crashes on the server side, specifically inside a
  RemoteServiceServlet.

   Regards,
  Michael

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Please help with CellTable

2012-04-27 Thread Blake McBride
Greetings,

I need a sort of listbox where each row is made up of several columns.  I
don't want to edit the data in the listbox.  I just want to select one or
more rows, click a button, and be able to know which rows were selected.
 Looking around it seems like CellTable is close.  I put it together as
described in the various examples.  It works as described but not how I
want.  Specifically:

1.  I would rather each row not be shown alternately light blue and white
background.  I want the rows all displayed with a white background.


2.  While I can select individual row (they get highlighted in yellow), it
also places a border around the column within the selected row.  I am not
editing the column within the row.  I just want to select the row, not the
column within the row.  How can I configure it to just highlight the
selected row and not add any borders?


3.  When a row is selected, how can I tell which one is selected
programmatically?


4.  How can I control single / multiple row selection?

Thanks for the help!

Blake McBride

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



Re: Google axing GWT?

2012-04-27 Thread Paul Stockley
It looks like the GWT guys who left to go to new startups are still using 
GWT. This bodes well for future support even if Google isn't directly 
involved anymore.

On Friday, April 27, 2012 4:19:47 PM UTC-4, Daniel Mauricio Patino León 
wrote:

 I think GWT its a very good open source project. We use it to develop RIA 
 and we love it. Like  Joseph i'll pray to google make it better and improve 
 it.
 What about a thread where people +1 if want that google keep working on 
 it? there  exist one?

 Greetings from Mexico.

 El 27 de abril de 2012 15:12, Steve strat...@gmail.com escribió:

 https://plus.google.com/110412141990454266397/posts/8nmmgp4AChM

 Enjoy.

 On Apr 27, 3:26 pm, Mauro Oliveira mauro.no...@gmail.com wrote:
  +1
 
  On 27 April 2012 14:11, Joseph Lust lifeofl...@gmail.com wrote:
 
 
 
 
 
 
 
   I'll keep praying for GWT. Let's see what transpires at Google IO in 
 June.
 
   Joe
 
   --
   You received this message because you are subscribed to the Google 
 Groups
   Google Web Toolkit group.
   To view this discussion on the web visit
  https://groups.google.com/d/msg/google-web-toolkit/-/VrsH8tPIQs4J.
   To post to this group, send email to 
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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




 -- 
 ISC. Daniel Mauricio Patiño León.
 Director ejecutivo
 Liondev S.A. de C.V.



 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/p6dWSYv-PsYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Please help with CellTable

2012-04-27 Thread Alfredo Quiroga-Villamil
Hi Blake:

I will try to take a look later at 1 and 2, they are CSS controlled.

For now:

4. See below for an example:

MultiSelectionModelString multiSelectionModel = new
MultiSelectionModelString();
CellTableString cellTable = new CellTableString();
cellTable.setSelectionModel(multiSelectionModel);

3. Handler for the selection model below:

// Handler
cellTable.getSelectionModel().addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
SetString selected = ((MultiSelectionModelString)
cellTable.getSelectionModel()).getSelectedSet();
if (selected != null) {

}

}
});

Hope it helps.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 5:27 PM, Blake McBride blake1...@gmail.com wrote:
 Greetings,

 I need a sort of listbox where each row is made up of several columns.  I
 don't want to edit the data in the listbox.  I just want to select one or
 more rows, click a button, and be able to know which rows were selected.
  Looking around it seems like CellTable is close.  I put it together as
 described in the various examples.  It works as described but not how I
 want.  Specifically:

 1.  I would rather each row not be shown alternately light blue and white
 background.  I want the rows all displayed with a white background.


 2.  While I can select individual row (they get highlighted in yellow), it
 also places a border around the column within the selected row.  I am not
 editing the column within the row.  I just want to select the row, not the
 column within the row.  How can I configure it to just highlight the
 selected row and not add any borders?


 3.  When a row is selected, how can I tell which one is selected
 programmatically?


 4.  How can I control single / multiple row selection?

 Thanks for the help!

 Blake McBride

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



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: Please help with CellTable

2012-04-27 Thread Alfredo Quiroga-Villamil
Also part of 4 is SingleSelectionModel. So you can either use Single
or Multiple as the SelectionModel depending on what you need.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 9:36 PM, Alfredo Quiroga-Villamil
laww...@gmail.com wrote:
 Hi Blake:

 I will try to take a look later at 1 and 2, they are CSS controlled.

 For now:

 4. See below for an example:

        MultiSelectionModelString multiSelectionModel = new
 MultiSelectionModelString();
        CellTableString cellTable = new CellTableString();
        cellTable.setSelectionModel(multiSelectionModel);

 3. Handler for the selection model below:

        // Handler
        cellTable.getSelectionModel().addSelectionChangeHandler(new
 SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(SelectionChangeEvent event) {
                SetString selected = ((MultiSelectionModelString)
 cellTable.getSelectionModel()).getSelectedSet();
                if (selected != null) {

                }

            }
        });

 Hope it helps.

 Regards,

 Alfredo

 On Fri, Apr 27, 2012 at 5:27 PM, Blake McBride blake1...@gmail.com wrote:
 Greetings,

 I need a sort of listbox where each row is made up of several columns.  I
 don't want to edit the data in the listbox.  I just want to select one or
 more rows, click a button, and be able to know which rows were selected.
  Looking around it seems like CellTable is close.  I put it together as
 described in the various examples.  It works as described but not how I
 want.  Specifically:

 1.  I would rather each row not be shown alternately light blue and white
 background.  I want the rows all displayed with a white background.


 2.  While I can select individual row (they get highlighted in yellow), it
 also places a border around the column within the selected row.  I am not
 editing the column within the row.  I just want to select the row, not the
 column within the row.  How can I configure it to just highlight the
 selected row and not add any borders?


 3.  When a row is selected, how can I tell which one is selected
 programmatically?


 4.  How can I control single / multiple row selection?

 Thanks for the help!

 Blake McBride

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



 --
 Alfredo Quiroga-Villamil

 AOL/Yahoo/Gmail/MSN IM:  lawwton



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: GWT Designer

2012-04-27 Thread Gmane

On 4/27/2012 6:47 PM, sbt wrote:

Hi,

I am facing issue in GWT Designer. Unable to open the design mode in
Ecilpse , however everything is done under given instructions.

Image is attached herewith.

--
You received this message because you are subscribed to the Google
Groups Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/M1e9pBNkby8J.
To post to this group, send email to
google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.


You should load layouts without much logic on it so the GWT designer 
will not have hard time drawing up the widget. I mean, in my case my UI 
are pure UI (no logic, MVP pattern) so GWT designer have no problem 
rendering the widget. In case your are using UiBinder you should open 
the ui.xml file and not the .java part of the UiBinder code.


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



Re: How to add External Java Classes to GWT Project?

2012-04-27 Thread Gmane

On 4/27/2012 9:57 PM, Alfredo Quiroga-Villamil wrote:

Danish:

Your project out of the box was created by the plugin with a directory
structure as follows:

/client
/shared
/server

The class you created will reside under the server package. Anything
in the /client and /shared will eventually get compiled down to JS. So
in your server you do all your crud operations and return data back to
the client.

Regards,

Alfredo

On Fri, Apr 27, 2012 at 3:21 AM, Danishmuhammadan...@gmail.com  wrote:

Hi im new in this some one Guide me...

i create a java project

import java.sql.DriverManager;

public class DB_Conn {

private java.sql.Connection con = null;
//private final String url = jdbc:microsoft:sqlserver://;
private final String serverName = 192.168.1.103;
//private final String portNumber = 1433;
private final String databaseName = sdportaldb1;
private final String userName = sddb1ownr;
private final String password = judgmentDAY786;

// Informs the driver to use server a side-cursor,
// which permits more than one active statement
// on a connection.
//private final String selectMethod = cursor;

public DB_Conn() {
}

private java.sql.Connection getConnection() {
try {
// Note: this class name changes for ms sql
server 2000 thats it
// It has to match the JDBC library that goes
with ms sql 2000

Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver);
con =
DriverManager.getConnection(getConnectionUrl());

if (con != null)
System.out.println(Connection
Successful!);
} catch (Exception e) {
e.printStackTrace();
System.out.println(Error Trace in
getConnection() : 
+ e.getMessage());
}
return con;
}

private String getConnectionUrl() {
String url = jdbc:sqlserver:// + serverName +
;user= + userName
+ ;password= + password +
;databaseName= + databaseName
+ ;;
return url;
}

/*
 Display the driver properties, database details
 */

public void displayDbProperties() {
java.sql.DatabaseMetaData dm = null;
java.sql.ResultSet rs = null;
try {
con = this.getConnection();
if (con != null) {
dm = con.getMetaData();
System.out.println(Driver
Information);
System.out.println(\tDriver Name:  +
dm.getDriverName());
System.out
.println(\tDriver
Version:  + dm.getDriverVersion());
System.out.println(\nDatabase
Information );
System.out.println(\tDatabase Name: 
+
dm.getDatabaseProductName());
System.out.println(\tDatabase
Version: 
+
dm.getDatabaseProductVersion());
System.out.println(Avalilable
Catalogs );
rs = dm.getCatalogs();
while (rs.next()) {
System.out.println(\tcatalog:
 + rs.getString(1));
}
rs.close();
rs = null;
closeConnection();
} else
System.out.println(Error: No active
Connection);
} catch (Exception e) {
e.printStackTrace();
}
dm = null;
}

private void closeConnection() {
try {
if (con != null)
con.close();
con = null;
} catch (Exception e) {
e.printStackTrace();
}
}

public static void main(String[] args) throws Exception {
DB_Conn myDbTest = new DB_Conn();
myDbTest.displayDbProperties();
}
}

and now i wana use this class in GWT Project

how i used it some one guide me plz

--
You received this message because you are subscribed to the 

Re: GWT + Hibernate + hsqldb

2012-04-27 Thread Gmane

On 4/26/2012 10:09 PM, rahul.gamit89 wrote:

Hello i have created a simple GWT application which allows user to
add  Name,address,email,sex and phone number.

E.G On UI there is 4 text boxes for Name,address,phone,email and
select box for sex

I have implemented hibernate and hsqldb, but when i am running the
program it gives me the following error.

[TRACE] [gwt_hibernate] - Finding entry point classes
[ERROR] [gwt_hibernate] - Errors in 'file:/I:/PROJECTS/gwt_hibernate/
src/gwt_hibernate/client/Gwt_hibernate.java'
[ERROR] [gwt_hibernate] - Line 39: The import
org.hibernate.HibernateException cannot be resolved
[ERROR] [gwt_hibernate] - Line 40: The import 
org.hibernate.Session
cannot be resolved
[ERROR] [gwt_hibernate] - Line 41: The import
org.hibernate.SessionFactory cannot be resolved
[ERROR] [gwt_hibernate] - Line 42: The import
org.hibernate.Transaction cannot be resolved
[ERROR] [gwt_hibernate] - Line 43: The import org.hibernate.cfg
cannot be resolved
[ERROR] [gwt_hibernate] - Line 164: SessionFactory cannot be
resolved to a type
[ERROR] [gwt_hibernate] - Line 166: Configuration cannot be 
resolved
to a type
[ERROR] [gwt_hibernate] - Line 168: Session cannot be resolved 
to a
type
[ERROR] [gwt_hibernate] - Line 191: HibernateException cannot be
resolved to a type
[ERROR] [gwt_hibernate] - Unable to find type
'gwt_hibernate.client.Gwt_hibernate'
[ERROR] [gwt_hibernate] - Hint: Previous compiler errors may 
have
made this type unavailable
[ERROR] [gwt_hibernate] - Hint: Check the inheritance chain from
your module; it may not be inheriting a required module or a module
may not be adding its source path entries properly
[ERROR] [gwt_hibernate] - Failed to load module 'gwt_hibernate' from
user agent 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.19 (KHTML,
like Gecko) Chrome/18.0.1025.162 Safari/535.19' at activate.adobe.com:
60298


I have created one hibernate.cfg.xml file, one persistent class and
other xml file.

Here is the code i did.

Persistent Class: cls_tbl_user
package gwt_hibernate.client;

public class cls_tbl_user
{

private String id;
private String name;
private String address;
private String email;
private String phone;
private String sex;

public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}

}



hibernate.cfg.xml

?xml version='1.0' encoding='utf-8'?
!DOCTYPE hibernate-configuration PUBLIC
-//Hibernate/Hibernate Configuration DTD//EN
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
hibernate-configuration

 session-factory

 !-- Database connection settings --
 property
name=connection.driver_classorg.hsqldb.jdbcDriver/property
 property name=connection.urljdbc:hsqldb:file:i:/HSQLDB/
test1db/property
 property name=connection.usernameSA/property
 property name=connection.password/property

!-- JDBC connection pool (use the built-in) --
 property name=connection.pool_size1/property

 !-- SQL dialect --
 property name=dialectorg.hibernate.dialect.HSQLDialect/
property

 !-- Enable Hibernate's automatic session context management --



 property name=current_session_context_classthread/
property

 !-- Disable the second-level cache  --
 property
name=cache.provider_classorg.hibernate.cache.NoCacheProvider/
property

 !-- Echo all executed SQL to stdout --
 property name=show_sqltrue/property


 !-- Drop and re-create the database schema on startup
 property name=hbm2ddl.updatecreate/property--

 mapping resource=gwt_hibernate.client.cls_tbl_user.hbm.xml/





 /session-factory

/hibernate-configuration


cls_tbl_user.hbm.xml

?xml version=1.0 encoding=UTF-8?

  !DOCTYPE hibernate-mapping PUBLIC
-//Hibernate/Hibernate Mapping DTD 3.0//EN

Re: GWT applications session management

2012-04-27 Thread Gmane

On 4/26/2012 8:18 PM, Adio wrote:

Hi guys, i am a new to GWT applications to AJAX applications in
general. i am making sample applications, to learn GWT applications. I
am creating a very simple bank system -ok, by very simple i mean very
very simple- and i reached the part the authentication and
authorization logic is needed.

Can someone explain the authentication logic in GWT apps ?

Anyone explain the entire authentication and authorization logic in
Ajax application ?

Session management in Ajax applications ?

If you don't want to bother yourselves with explaining and code
writing any useful links will be fine.

Thank you very mush.



Hi, first I think you should read up about GWT-RPC topics and try some 
codes first. However as for your question it's very simple if you 
already understand RPC (although there are other ways than RPC to do this):


- Create your Service and Async on the client side
- Implement the service on the server side. If you are using GWT RPC, 
this class will inherit from RemoteServiceServlet and eventually inherit 
from Servlet.
- Just put the authentication logic there (in that RPC servlet), 
verifying user credentials against a database and placing session 
objects on the Service implementation, its that simple


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



Re: Google axing GWT?

2012-04-27 Thread Gmane

On 4/27/2012 12:31 AM, dka...@gmail.com wrote:

Some of my contacts down in Atlanta tell me Google is making big
changes to the GWT team and word is they are going to eliminate GWT
and a number of other projects. Can anyone from Google confirm or
deny?



I don't know about this story, but if that would be the case, then GWT 
will be just WT. I think many people have checked-out the GWT source 
and even Google would no longer officially support it, I think the 
community will still be there. Unless there comes a better way of 
translating Java to Javascript code. Cheers.


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



[gwt-contrib] Re: Adds Event.ONINPUT (issue 4549). (issue1248801)

2012-04-27 Thread warren lemmon
What is the resolution on adding oninput? It seems to have never made it 
into trunk...

On Monday, December 27, 2010 12:08:14 PM UTC-7, Robert Staats wrote:

 Reviewers: ,

 Description:
 I used Issue 51810 as my template for this
 (http://gwt-code-reviews.appspot.com/51810).

 I use sinkEvents to catch onPaste events to a TextBox so I can react to
 changes on TextBoxes without waiting for it to loose focus. This works well
 for IE and Firefox but Opera does not support onPaste.

 Opera has an onInput event that provides a way to detect a TextBox change.
 This patch allows the onInput event to be detected in GWT.

 Please review this at http://gwt-code-reviews.appspot.com/1248801/show

 Affected files:
user/src/com/google/gwt/user/client/Event.java
user/src/com/google/gwt/user/client/impl/DOMImpl.java
user/src/com/google/gwt/user/client/impl/DOMImplOpera.java
user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
user/src/com/google/gwt/user/client/impl/DOMImplTrident.java


 Index: user/src/com/google/gwt/user/client/impl/DOMImpl.java
 ===
 --- user/src/com/google/gwt/user/client/impl/DOMImpl.java(revision
 9483)
 +++ user/src/com/google/gwt/user/client/impl/DOMImpl.java(working
 copy)
 @@ -92,6 +92,7 @@
   case gesturestart: return 0x100;
   case gesturechange: return 0x200;
   case gestureend: return 0x400;
 +case input: return 0x800;
   default: return -1;
   }
 }-*/;
 Index: user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
 ===
 --- user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
 (revision  
 9483)
 +++ user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
 (working  
 copy)
 @@ -271,6 +271,8 @@
   @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :

 null;
   if (chMask  0x400) elem.ongestureend= (bits  0x400) ?
   @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :

 null;
 +if (chMask  0x800) elem.oninput   = (bits  0x800) ?
 +@com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent : 
  
 null;
 }-*/;

 private native void releaseCaptureImpl(Element elem) /*-{
 Index: user/src/com/google/gwt/user/client/impl/DOMImplOpera.java
 ===
 --- 
 user/src/com/google/gwt/user/client/impl/DOMImplOpera.java(revision 
  
 9483)
 +++ 
 user/src/com/google/gwt/user/client/impl/DOMImplOpera.java(working  
 copy)
 @@ -68,5 +68,7 @@
   @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :

 null;
   elem.onpaste   = (bits  0x8) ?
   @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent :

 null;
 +elem.oninput   = (bits  0x800) ?
 +@com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent : 
  
 null;
 }-*/;
   }
 Index: user/src/com/google/gwt/user/client/impl/DOMImplTrident.java
 ===
 --- user/src/com/google/gwt/user/client/impl/DOMImplTrident.java
 (revision  
 9483)
 +++ user/src/com/google/gwt/user/client/impl/DOMImplTrident.java
 (working  
 copy)
 @@ -278,5 +278,7 @@

 @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent : null;
   if (chMask  0x8) elem.onpaste   = (bits  0x8) ?

 @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent : null;
 +if (chMask  0x800) elem.oninput   = (bits  0x800) ?
 + 
 @com.google.gwt.user.client.impl.DOMImplTrident::callDispatchEvent : null;
 }-*/;
   }
 Index: user/src/com/google/gwt/user/client/Event.java
 ===
 --- user/src/com/google/gwt/user/client/Event.java(revision 9483)
 +++ user/src/com/google/gwt/user/client/Event.java(working copy)
 @@ -272,6 +272,15 @@
  */
 public static final int ONGESTURESTART = 0x100;

 +   /**
 +   * Fired when the contents of a textarea, input:text, input:password or
 +   * input:search element have changed, because the onchange event on 
 these
 +   * elements fires when the element loses focus, not immediately after
 the modification.
 +   *
 +   * Note: This event is emnot/em supported on Internet Explorer.
 +   */
 +  public static final int ONINPUT = 0x800;
 +
 /**
  * Fired when the user depresses a key.
  */



-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Fix issue 6710: entities referenced from list of value proxies (issue1646803)

2012-04-27 Thread rdayal

Just add the comment about the subtlety with the IdentityHashMap, and  I
think we're good to go.


https://gwt-code-reviews.appspot.com/1646803/diff/1/user/src/com/google/web/bindery/requestfactory/server/Resolver.java
File user/src/com/google/web/bindery/requestfactory/server/Resolver.java
(right):

https://gwt-code-reviews.appspot.com/1646803/diff/1/user/src/com/google/web/bindery/requestfactory/server/Resolver.java#newcode365
user/src/com/google/web/bindery/requestfactory/server/Resolver.java:365:
new IdentityHashMapBaseProxy, Resolution();
On 2012/04/10 08:05:33, tbroyer wrote:

On 2012/04/09 15:44:43, rdayal wrote:
 Looks good, but I must say that I dont' quite understand how/why

this fixes

the
 problem. Can you point out how the code execution in this class

would have

 resulted in a breakage with a HashMap vs. an IdentityHashMap?



At line 632, a collection is populated with the result of
resolveClientValue(Object,Type), which is always an empty proxy

(properties are

populated later) –modulo reuse of a proxy if it has already been

resolved–. This

isn't an issue with EntityProxies, as each proxy as at a minimum a

stableId that

keys it to a domain object and distinguishes it from other proxies

(for other

domain objects), but ValueProxies compare equals() to each other by

their

properties' values only, independently of the underlying domain

object.

So, when you resolve a collection of ValueProxies, the first iteration

of the

loop (at line 632) creates a new, empty ValueProxy and puts it in the
clientObjectsToResolutions map. In the second iteration,

resolveClientValue will

create another ValueProxy, but will return the same Resolution because

the

ValueProxy compares equals() to the previous one, so getting the

Resolution from

the map will return the one for the first ValueProxy.
Using an IdentityHashMap fixes that lookup, so that we have one

Resolution

instance per proxy instance.
Because we have other guards for EntityProxies (keyed by stableId in
state.getBeansForPayload(), via resolveClientProxy), that change is

safe: the

goal is to have a most one proxy per domain object (which is

guaranteed in

RequestState for EntityProxies)


Ok, thanks for the explanation, that helps a lot. Two things I'd say:

-we need to document this somewhere, because it's pretty subtle
-it seems bad that we can get into states where ValueProxy.equals() is
doing the wrong thing, but I'm not familiar enough with this code to
propose a good solution. I'd just say that it seems like a pitfall if we
need to have an IdentityHashMap to work around issues like this..

https://gwt-code-reviews.appspot.com/1646803/diff/1/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java
File
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java
(right):

https://gwt-code-reviews.appspot.com/1646803/diff/1/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java#newcode587
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java:587:
simpleFooRequest().returnValueProxies().with(simpleFoo.fooField).fire(new
ReceiverListSimpleValueProxy() {
On 2012/04/10 08:05:33, tbroyer wrote:

On 2012/04/09 15:44:43, rdayal wrote:
 Sorry if this is naive question, but since the returnValueProxies

method

 implementation always fills in all of the properties (such as

fooField),

doesn't
 the with(simpleFoo.fooField) become redundant? Based on the

implementation

of
 returnValueProxies(), it seems that simpleFoo.fooField will always

be filled

in,
 regardless of whether or not you use the 'with' statement.



The with() is not passed down to the domain method (which is another

issue:

https://wave.google.com/wave/waveref/googlewave.com/w+WU4iAICkI/%7E/conv+root/b+QDorc1lYB

), it's a wire-protocol thing (it's not even sent to the server when

using the

JsonRpc dialect).
By default, for EntityProxies, only value-type properties are

populated (those

that can be encoded by ValueCodex; and lists of those). If you want

any other

kind of object to be serialized and sent to the client, it has to be

asked for

explicitly using with(); independently of whether the domain method

will

populate the property on the server-side.


AH!!! I did not know that. Thanks again. BTW, I can't read that wave -
can you add me to it?

https://gwt-code-reviews.appspot.com/1646803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix for issue 5952: RequestContext#isChanged. (issue1601806)

2012-04-27 Thread rdayal

LGTM.


http://gwt-code-reviews.appspot.com/1601806/diff/1015/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
File
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
(right):

http://gwt-code-reviews.appspot.com/1601806/diff/1015/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java#newcode624
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java:624:
* resolving property values, won't automatically edit proxies that
weren't
On 2012/04/10 11:15:27, tbroyer wrote:

On 2012/04/09 15:12:50, rdayal wrote:
 I'm an autobean newbie, but shouldn't we change the diffing

algorithm so that

it
 doesn't actually cause edits to proxies? I mean, when you a do a

diff, that

 should never happen, right?



The problem is that autobean has no notion of read only vs. editable

beans.

That's something specific to proxies and request factory, where

getting a

property (including from a visitor) will automatically edit its value

if it's a

proxy.




Ugh. Ok, then we probably need to fix something with respect to getting
a property from a proxy - I wonder why getting a value from a proxy
implies an edit? Anyway, I'm just musing to myself here - whenever we
have to do tricks like this, it seems that there's an underlying problem
in the API.

http://gwt-code-reviews.appspot.com/1601806/diff/9001/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
File
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
(right):

http://gwt-code-reviews.appspot.com/1601806/diff/9001/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java#newcode622
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java:622:
setEditedProxiesMutable(false);
Nice, I like this.

http://gwt-code-reviews.appspot.com/1601806/diff/9001/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java#newcode1281
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java:1281:
assert bean.getTag(REQUEST_CONTEXT_STATE) == expectedState;
Nit: put parens around the assert expression.

http://gwt-code-reviews.appspot.com/1601806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix issue 6710: entities referenced from list of value proxies (issue1646803)

2012-04-27 Thread t . broyer


https://gwt-code-reviews.appspot.com/1646803/diff/1/user/src/com/google/web/bindery/requestfactory/server/Resolver.java
File user/src/com/google/web/bindery/requestfactory/server/Resolver.java
(right):

https://gwt-code-reviews.appspot.com/1646803/diff/1/user/src/com/google/web/bindery/requestfactory/server/Resolver.java#newcode365
user/src/com/google/web/bindery/requestfactory/server/Resolver.java:365:
new IdentityHashMapBaseProxy, Resolution();
On 2012/04/27 14:40:24, rdayal wrote:

On 2012/04/10 08:05:33, tbroyer wrote:
 On 2012/04/09 15:44:43, rdayal wrote:
  Looks good, but I must say that I dont' quite understand how/why

this fixes

 the
  problem. Can you point out how the code execution in this class

would have

  resulted in a breakage with a HashMap vs. an IdentityHashMap?

 At line 632, a collection is populated with the result of
 resolveClientValue(Object,Type), which is always an empty proxy

(properties

are
 populated later) –modulo reuse of a proxy if it has already been

resolved–.

This
 isn't an issue with EntityProxies, as each proxy as at a minimum a

stableId

that
 keys it to a domain object and distinguishes it from other proxies

(for other

 domain objects), but ValueProxies compare equals() to each other by

their

 properties' values only, independently of the underlying domain

object.

 So, when you resolve a collection of ValueProxies, the first

iteration of the

 loop (at line 632) creates a new, empty ValueProxy and puts it in

the

 clientObjectsToResolutions map. In the second iteration,

resolveClientValue

will
 create another ValueProxy, but will return the same Resolution

because the

 ValueProxy compares equals() to the previous one, so getting the

Resolution

from
 the map will return the one for the first ValueProxy.
 Using an IdentityHashMap fixes that lookup, so that we have one

Resolution

 instance per proxy instance.
 Because we have other guards for EntityProxies (keyed by stableId in
 state.getBeansForPayload(), via resolveClientProxy), that change is

safe: the

 goal is to have a most one proxy per domain object (which is

guaranteed in

 RequestState for EntityProxies)



Ok, thanks for the explanation, that helps a lot. Two things I'd say:



-we need to document this somewhere, because it's pretty subtle
-it seems bad that we can get into states where ValueProxy.equals() is

doing

the wrong thing, but I'm not familiar enough with this code to

propose a good

solution. I'd just say that it seems like a pitfall if we need to have

an

IdentityHashMap to work around issues like this..


Done.

https://gwt-code-reviews.appspot.com/1646803/diff/1/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java
File
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java
(right):

https://gwt-code-reviews.appspot.com/1646803/diff/1/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java#newcode587
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java:587:
simpleFooRequest().returnValueProxies().with(simpleFoo.fooField).fire(new
ReceiverListSimpleValueProxy() {
On 2012/04/27 14:40:24, rdayal wrote:

On 2012/04/10 08:05:33, tbroyer wrote:
 On 2012/04/09 15:44:43, rdayal wrote:
  Sorry if this is naive question, but since the returnValueProxies

method

  implementation always fills in all of the properties (such as

fooField),

 doesn't
  the with(simpleFoo.fooField) become redundant? Based on the

implementation

 of
  returnValueProxies(), it seems that simpleFoo.fooField will always

be filled

 in,
  regardless of whether or not you use the 'with' statement.

 The with() is not passed down to the domain method (which is another

issue:




https://wave.google.com/wave/waveref/googlewave.com/w+WU4iAICkI/%257E/conv+root/b+QDorc1lYB

 ), it's a wire-protocol thing (it's not even sent to the server when

using the

 JsonRpc dialect).
 By default, for EntityProxies, only value-type properties are

populated

(those
 that can be encoded by ValueCodex; and lists of those). If you want

any other

 kind of object to be serialized and sent to the client, it has to be

asked for

 explicitly using with(); independently of whether the domain method

will

 populate the property on the server-side.



AH!!! I did not know that. Thanks again. BTW, I can't read that wave -

can you

add me to it?


Unfortunately, Wave is readonly so I cannot add you to the wave, so I
exported it and mailed it to you.

BTW, with() is documented in
https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory#relationships
;-)

https://gwt-code-reviews.appspot.com/1646803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix for issue 5952: RequestContext#isChanged. (issue1601806)

2012-04-27 Thread t . broyer


http://gwt-code-reviews.appspot.com/1601806/diff/1015/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
File
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
(right):

http://gwt-code-reviews.appspot.com/1601806/diff/1015/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java#newcode624
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java:624:
* resolving property values, won't automatically edit proxies that
weren't
On 2012/04/27 14:52:12, rdayal wrote:

Ugh. Ok, then we probably need to fix something with respect to

getting a

property from a proxy - I wonder why getting a value from a proxy

implies an

edit?


Otherwise, you have to pass the RequestContext along with the proxies
everywhere. With this auto-edit, you can simply edit the top-level
proxy and then use it like any other bean.

e.g.
  proxy = ctx.edit(proxy);
  proxy.getFoo().setBar(foo bar); // auto-edit
vs.
  proxy = ctx.edit(proxy);
  ctx.edit(proxy.getFoo().setBar(foo bar);

FYI: to fix the TODO about reducing the payload while preserving the
no-op request, validate proxies only, I was thinking about tracking
those proxies that are auto-edited vs. those that have been explicitly
edited, so that only the latter are unconditionally sent to the server;
the former being sent only if they contain changes.
The issue here is that for now the RequestFactoryEditorDriver explicitly
edits all proxies, instead of editing the top-level proxy and taking
advantage of the auto-edit feature (see issue 5981 which is related; I
do believe it's better that way though: editing proxies in CellTables
would break the edit/flush workflow; and that could be mitigated by
introducing read-only editors (that wouldn't edit the subproxy)).

...I wouldn't mind personally removing that auto-edit feature, even if
that's a big breaking change: it seems like overall it causes more
harm than good.

http://gwt-code-reviews.appspot.com/1601806/diff/9001/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
File
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
(right):

http://gwt-code-reviews.appspot.com/1601806/diff/9001/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java#newcode1281
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java:1281:
assert bean.getTag(REQUEST_CONTEXT_STATE) == expectedState;
On 2012/04/27 14:52:12, rdayal wrote:

Nit: put parens around the assert expression.


Done.

http://gwt-code-reviews.appspot.com/1601806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Fix for issue 5952: RequestContext#isChanged. (issue1601806)

2012-04-27 Thread rdayal

Hey Thomas,

When I ran the tests after applying your change, I saw a failure in
EditorTest.test:

aused by: junit.framework.AssertionFailedError:  expected=EditorBarTest
actual=FOO
at
com.google.web.bindery.requestfactory.gwt.client.ui.EditorTest.onSuccess(EditorTest.java:164)
at
com.google.web.bindery.requestfactory.gwt.client.ui.EditorTest.onSuccess(EditorTest.java:1)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.onSuccess(AbstractRequest.java:129)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.processPayload(AbstractRequestContext.java:377)
... 28 more


Are you seeing the same thing?

http://gwt-code-reviews.appspot.com/1601806/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors