Re: Internet Explorer 11 - compatibility mode

2014-10-14 Thread Eric Metcalf
We ran into the same problem. We took a different approach particular to the function no longer being supported. The DOM.gwt.xml switches user.agents with ie10 or less from StyleInjectorImpl to StyleInjectorImplIE. In the gwt.xml file we check if the function exists return typeof

Re: i18nCreator

2012-01-27 Thread Eric Metcalf
I don't know of a way to do it in Eclipse. You can use the command prompt. There is a bug so it won't work in Windows. On Jan 26, 6:49 am, Rana Issa r...@geogebra.at wrote: How can I use the command i18nCreator in Eclipse? or should I use it from my command prompt only? -- You received

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

2012-01-24 Thread Eric Metcalf
MVC-wise I think it's on the fence since it's just throwing an event. The presenter or the view can be changed without having to change the delete code on either side. To update my table on a delete I am passing the index of the row on the delete event. ** Presenter ** @Override public

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

2012-01-24 Thread Eric Metcalf
On Jan 24, 11:15 am, Drew Spencer slugmand...@gmail.com wrote: Cheers for that Eric. So you are adding the index of the row to the payload of your DeleteEvent? Yes, you can see I pass the index in my event. I actually just switched to using ListDataProvider instead of just calling

Re: deploy the tutorial to tomcat server

2012-01-23 Thread Eric Metcalf
Should already have one when you created the GWT project with the Eclipse plug-in. Should just be able to right-click Google GWT Compile and it will create everything in the war dir. On Jan 22, 9:39 am, tong123123 tong123...@gmail.com wrote: in the

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

2012-01-23 Thread Eric Metcalf
Sorry, I meant to say I am using CellTable. Is there is a reason you don't pass the EventBus to your view? I found it very simple... private static final ButtonCell deleteButtonCell = new ButtonCell(); private static final ColumnThing, String deleteColumn = new ColumnThing,

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

2012-01-19 Thread Eric Metcalf
I'm using flextable to delete items from it. I pass in the EventBus and throw an event when a delete occurs. On Jan 19, 5:34 am, Drew Spencer slugmand...@gmail.com wrote: Hey Patrick, The thing with setFieldUpdater is that I can't work out how to access it from the Presenter. If I add

Re: UI handling doubt in MVP

2012-01-13 Thread Eric Metcalf
You want to put all of your logic into the presenter without putting any of the widget code in that would prevent tests from running. For the ListBox you want to declare a ChangeHandler on it in the Presenter. To do that you have the View return back the ListBox as an interface of

Re: How to use doPost method in Formpanel submit button. How to map that servlet in web.xml.

2012-01-09 Thread Eric Metcalf
It's very well explained in the documentation for FormPanel. http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html Where myFormHandler in form.setAction(/myFormHandler); is your url-pattern in web.xml. Declaring servlet url name and mapping is

Re: Issue in connecting to a database in a GWT project

2011-12-13 Thread Eric Metcalf
My guess is you are getting an authentication error and the service is throwing that to the rpc response. Make sure you wrap your service calls in exceptions that GWT can handle (runtime). Might need to paste your code that calls getConnection() if this isn't the issue to get to more feedback.

Re: Problem with uiBinder setup for custom event handler interface.

2011-12-13 Thread Eric Metcalf
I think what you want is to have the view have a IUploader getIUploader() that returns MultipUploader. The presenter will call this and do .addOnFinishUploadHandler(onFinishUploaderHandler); where onFinishUploaderHandler is in your presenter. On Dec 13, 9:19 am, James Drinkard

Re: GWT and Generated file download

2011-12-09 Thread Eric Metcalf
Skip doing the RPC request. Create a file HttpServlet (don't forget to add it to web.xml). Use the FormPanel (http://google-web- toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ ui/FormPanel.html) and set the Action to the file HttpServlet. Now you can act like a normal

Re: Setting A Bookmark

2011-09-13 Thread Eric Metcalf
Check out this documentation on history. http://code.google.com/webtoolkit/articles/mvp-architecture.html#history You want to set the 'state' of you application with your URL. You append to the URL some data such as page to display and state of the page and then call a method that will read the

Re: CellTable CSS (still!)

2011-09-12 Thread Eric Metcalf
I think you should use @external like so.. @external .bbcolor; .bbcolor { backgound-color: red !important; } To start debugging this, you should inspect the table row (using Chrome or firebug in Firefox) and see if it was given the bbcolor class name. Then you can find out if the problem is

Re: How to do JUnit testing for a composite widget created using UIBinder?

2011-08-26 Thread Eric Metcalf
You want a GWT test: http://code.google.com/webtoolkit/doc/latest/DevGuideTesting.html On Aug 25, 2:18 pm, BM bhushan.ma...@gmail.com wrote: I have created a stand alone custom widget using GWT UIBinder with the help of GWT Designer. The two files which I have are :

Re: Multiple view for HasData (CellTable, CellList)

2011-08-08 Thread Eric Metcalf
Using MVP... Create a View interface that has ListView, DetailView, and ThumbnailView implement it. Your presenter will take a default view implementation. On change of view, apply the different implementation to your view and update your view. class Result { String url; String data1;

Re: Multiple view for HasData (CellTable, CellList)

2011-08-08 Thread Eric Metcalf
view.displayResults(results); // Display results with new view. should be currentView.displayResults(results); // Display results with new view. On Aug 8, 12:54 pm, Eric Metcalf emetcalf@gmail.com wrote: Using MVP... Create a View interface that has ListView, DetailView

Re: Online Javadoc not up-to-date

2011-07-29 Thread Eric Metcalf
Noticed com.google.gwt.user.client.ui.ResizeLayoutPanel is missing, too. On Jul 29, 12:49 pm, Andrew Green andrew.green...@gmail.com wrote: Hi, all, Minor issue... The online Javadoc that the GWT documentation links to is not up-to-date. Compare: 404 Not

Re: how to open a new window with output of other file in GWT

2011-06-30 Thread Eric Metcalf
There is a way to open a new window with results from a click, but it may not be the best solution for what you want. What are you trying to display? You will have the Anchor target set to _blank or similar. In the Url you will need to provide the page you want and any parameters. Something

Re: how to open a new window with output of other file in GWT

2011-06-30 Thread Eric Metcalf
There is a way to open a new window with results from a click, but it may not be the best solution for what you want. What are you trying to display? You will have the Anchor target set to _blank or similar. In the Url you will need to provide the page you want and any parameters. Something

Re: In ListBox, how to you format first item Select... to italic and gray?

2011-06-30 Thread Eric Metcalf
You will probably want to have 2 items here. The Select.. would be a clickable label with a background image of a downward arrow. The second would be your list adjacent under the first and hidden by default. When a user clicks on the Select... label, you display the list. When the user

Re: Form layout

2011-06-30 Thread Eric Metcalf
If you want a true form, then use FormPanel (http://google-web- toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ ui/FormPanel.html) otherwise any panel like FlowPanel. UiBinder (http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html) makes it easier to create the