A saga of code splitting mid-day deployments

2010-12-11 Thread Ben Imp
Good day to everyone. I am the proud owner/developer/code money responsible for a fairly new GWT application at my workplace. Overall, the response to the application has been quite good and it has been a pleasant change from the (now legacy) JSP development I still have to do. Today, however,

Re: A saga of code splitting mid-day deployments

2010-12-13 Thread Ben Imp
Excellent - I am not alone in my troubles. On second thought, perhaps rejoicing in the sharing of pain is not the most healthy viewpoint to take ... The post to the older discussion was quite useful. The blog linked there has some pretty good information on how this same issue has been dealt

Re: A saga of code splitting mid-day deployments

2010-12-13 Thread Ben Imp
, 10:38 am, Jeff Chimene jchim...@gmail.com wrote: On 12/13/2010 08:52 AM, Ben Imp wrote: Excellent - I am not alone in my troubles.  On second thought, perhaps rejoicing in the sharing of pain is not the most healthy viewpoint to take ... The post to the older discussion was quite useful

Re: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Ben Imp
There are many ways of laying out a web page. The simplest in your case might be to add both widgets to a VerticalPanel that then lives inside of that FlowPanel you mention. You could then use CSS and make the VerticalPanel have little to no space between its cells. Another, and perhaps a more

Re: putting two Anchor objects one below the other without BR tag

2010-12-22 Thread Ben Imp
to strict mode, i. e. not using quirks mode panels like VerticalPanel. Thank you for the second recommendation. I am not used to work with CSS in detail. Which property should I use to position my anchors? Thanks Magnus On Dec 22, 4:12 pm, Ben Imp benlee...@gmail.com wrote: There are many ways

Re: new window

2010-12-22 Thread Ben Imp
Opening a new window is as simple as a call to Window.open. However, since your GWT client keeps all of its state in javascript your new window will know nothing of the old window. You can pass some arguments to this new window to get it in the right initial state, but thats about it. -Ben On

Re: Choosing a file in local directory

2010-12-28 Thread Ben Imp
You would be looking for the FileUpload widget, which just wraps a html file input element. -Ben On Dec 28, 2:15 am, jc jc.chan...@gmail.com wrote: Hi, i am new to GWT, but i know java. I am using GWT in Eclipse. for selecting a file in local directory in java, we use JFileChooser. but i

Re: DateTimeFormat problem with parsing

2010-12-28 Thread Ben Imp
Two pieces of information seem to be absent that would greatly aid others in helping you: the exception details and the input string. -Ben On Dec 27, 5:19 pm, Luka Matovic matovicl...@gmail.com wrote: Hi guys, I have a little, stupid problem but it seems that  I can't find solution for it. I

Re: GWT - Thin or Fat Client

2010-12-29 Thread Ben Imp
I haven't seen anything in GWT that would predispose it to being either kind of client. Similar to Java or other more traditional development languages, you can make it as fat or thin as you want. I might put forth the idea that since JavaScript isn't exactly great at crunching bits, it does

Re: GWT in custom applications

2010-12-30 Thread Ben Imp
While I am not from Google, I have done the very thing you are asking about, so I can confirm GWT's suitability for such tasks. We are using Tomcat with an Apache proxy. The site does face the internet, but it is restricted to employees of the firm, and most of the usage is from inside the

Re: SelectionCell is displaying empty combo box

2011-01-04 Thread Ben Imp
Perhaps you just snipped out the code, but in the bit you posted here I don't see anything adding any strings to the picUps ArrayList. The selection cell uses that array to build its options, so if that collection is empty, then that would explain your empty combo box issue. -Ben On Jan 4,

Re: Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread Ben Imp
I'd hazard a guess that it means that your GameStatus class doesn't implement the IsSerializable interface, which GWT requires of objects you try to send across the wire. -Ben On Jan 4, 11:35 am, Magnus alpineblas...@googlemail.com wrote: Hi, I receive the following error message: Server

Re: Message: For security purposes, this type will not be deserialized.

2011-01-04 Thread Ben Imp
Serializable should work, post GWT 1.4 anyway. http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#Does_the_GWT_RPC_system_support_the_use_of_java.io.Serializable Check the Javadoc for that exception and you should see a list of the other possible things that could cause it. -Ben On Jan

Re: client using older version of gwt

2011-01-04 Thread Ben Imp
There is (as far as I am aware) no built in mechanism to handle this kind of thing. I had a discussion on this not too long ago. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/94bbcb3720f83605 The general conclusion was to roll your own, if you feel as though it is worth

Re: Date/Time support on client side

2011-01-04 Thread Ben Imp
Unfortunately, you are stuck with the old java.util.Date object. GWT as of yet has nothing more to offer. There is the DateTimeFormat class, which will allow you to parse bits out of the date object, and possibly construct the date object if you mash your three combo boxes into a suitable

Re: Logging in shared code

2011-01-05 Thread Ben Imp
GWT.isClient(). http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/client/GWT.html -Ben On Jan 5, 9:02 am, nacho vela.igna...@gmail.com wrote: I have a similar issue with translations in shared code. Is there any way to know if the code is running on server side or

Re: DatePicker now starting with Monday, used to be Sunday

2011-01-05 Thread Ben Imp
I experienced this as well. I noticed it right after I upgraded to GWT 2.1, so I assume that must have done it. I've ignored it so far, as no one in my organization seems to care, but I must admit, I am curious as to the cause. -Ben On Jan 5, 9:51 am, Dan danpr...@gmail.com wrote: My

Re: How to delete the time spinner on CellView

2011-01-05 Thread Ben Imp
I believe if you additionally set the row count to 0, it will stop the spinner. -Ben On Jan 5, 10:56 am, Néstor Boscán nesto...@gmail.com wrote: Hi When I add a new CellView Widget without any rows I get a time spinner inside the CellView. Is there a way to eliminate the time spinner.

Re: Development Mode not displaying properly

2011-01-05 Thread Ben Imp
Unfortunately, some things are still different between browsers. Your CSS, for instance, GWT doesn't do anything with. IE tends to render things just a wee bit different in some cases, depending on your CSS, so you are still stuck with testing across all of them. I can't say I have ever missed

Re: History, Is An Alternate Implementation Possible?

2011-01-06 Thread Ben Imp
Have you pondered simply not using the Places? I'm not sure if this is a requirement (or simply a strongly desired outcome) of your project, but if not, then you can simply roll your own MVP framework. In the case of my company, we started using GWT before the new place stuff came about, so we

Re: GWT Cookies returning null

2011-01-06 Thread Ben Imp
It looks like you aren't setting the expiry date on the cookie. I believe by default those expire when the session dies. That might be your issue. -Ben On Jan 6, 7:23 am, Noor baken...@gmail.com wrote: I am becoming almost mad with the GWT Cookies, in one of my application I set the cookie

Re: Does SuggestBox.setOracle(SuggestOracle) have to be private?

2011-01-06 Thread Ben Imp
I use a delegate pattern to do this very thing. Its really the only way to keep presenter logic where it belongs without polluting your namespace with widgets. The SuggestBox is none the wiser. Just make sure your delegator handles the base case where its delegate oracle is null, of course,

Re: HandlerManager is deprecated and theres no removeHandler(...) method at SimpleEventBus class

2011-01-10 Thread Ben Imp
Whenever you add an event handler to the SimpleEventBus (or even a widget for that matter), it will return an instance of a HandlerRegistration object. That object has only one purpose - to remove the handler. Just hold onto those objects somewhere, and when your tab gets closed, have them all

Re: GWT Compiler Output and Virus Scanners

2011-01-11 Thread Ben Imp
I've experienced similar issues with virus scanners and developing in general. I've found that just telling the scanner to ignore the eclipse folder and the workspace folder will take care of pretty much everything. -Ben On Jan 10, 12:16 pm, GeeDee daniel.wh...@gmail.com wrote: Hi, We've

Re: UiBinder, designer, spring roo which one

2011-01-11 Thread Ben Imp
Personally, I prefer to use good old option d: None Of The Above. I must disclose that I have, at most, dabbled in those technologies, so you probably shouldn't take too much stock in my opinion. I tend to have a pretty strong bias against generated code of any kind. This likely stems from my

Re: where is the best place to put client-side global constants ?

2011-01-12 Thread Ben Imp
You can pretty much put a public static final String in any old class in any package you want. Reference away. I usually make one class (ApplicationConstants) to stuff all of these in, and put it in the root package for the project. [unwanted-design-comments] This is unrelated, but it sounds

Re: Can I build a graphic widget on server side and send it to the client?

2011-01-13 Thread Ben Imp
Widgets are client side things only, so you can't really create them on the server and send them across the wire. The simplest solution I can think of would be to take the data in the DB that you are reading, package it up all nicely in some kind of data object, and ship it to the client. The

Re: Window 7 IE8 Drop Down List Boxes open problem

2011-01-13 Thread Ben Imp
I am running IE8 / Windows 7 and have not had any issues with the GWT combo boxes. -Ben On Jan 13, 1:49 pm, skippy al.leh...@fisglobal.com wrote: Any chance anyone else has this problem? On Dec 15 2010, 12:46 pm, skippy al.leh...@fisglobal.com wrote: This is atill a problem. However, it

Re: GWT External JARs and use on the Client Side

2011-01-13 Thread Ben Imp
The GWT compiler requires the Java source for any class you want to use on the client side, as part of its job is to translate that Java code to JavaScript. -Ben On Jan 13, 3:20 pm, Ryan Rathsam rrath...@gmail.com wrote: Hi All, Have a quick question. We're currently trying to use some

Re: Right different handler code on same button

2011-01-14 Thread Ben Imp
You could attach two ClickHandlers to it, instead of subclassing the widget and overriding methods. I generally try to avoid subclassing a widget if at all possible. -Ben On Jan 14, 4:48 am, Vik vik@gmail.com wrote: Hie I have an address component which is a vertical panel with state,

Re: Right different handler code on same button

2011-01-14 Thread Ben Imp
As much as I prefer teaching men how to fish to throwing fish at them, mostly because fish are delicious, I think I'll chuck one out now. ClickHandler myFirstHandler = new ClickHandler() {... stuff ...}; ClickHandler mySecondHandler = new ClickHandler() {... stuff ...}; Button pressMePlease =

Re: GWT External JARs and use on the Client Side

2011-01-14 Thread Ben Imp
And, as a minor addendum, the code in those jars can only use the parts of the JRE that GWT has implemented. Hence why I cannot have the Apache commons utils on the client, even though the source is available. -Ben On Jan 14, 1:00 pm, nacho vela.igna...@gmail.com wrote: You can include JARs,

Re: Extend AsyncCallback or ServiceInterfaceProxyGenerator

2011-01-14 Thread Ben Imp
I'd recommend simply extending the AsyncCallback. Its undoubtedly more work up front, but its also not a hack, which is a Good Thing. Its easy to understand, and future maintainers of the program will thank you for that. Also, karma will likely stab you in the eye if you don't. -Ben On Jan 14,

Re: How to Programmatically go to the previous place (back), without explicitly specifying the name of the place ?

2011-01-14 Thread Ben Imp
I'm not sure how it works with Places (haven't used them), but with normal GWT history its just History.back() and you're done. -Ben On Jan 14, 4:24 pm, zixzigma zixzi...@gmail.com wrote: how can we programmatically go to the previous place, similar functionality like browser back button,

Re: Who handles UI rules...the Activity?

2011-01-17 Thread Ben Imp
The view part of a pure MVP design is entirely passive. It will expose (via an interface) a set of methods and widgets (interfaces only) to the presenter, and thats pretty much it. It takes no action on its own, or at least as little as it can get away with given whatever framework restrictions

Re: onKeyPress called twice on a single keypress

2011-01-17 Thread Ben Imp
Suggest boxes currently have a bug. http://code.google.com/p/google-web-toolkit/issues/detail?id=3533 I went through the same hassle ... icky stuff. I ended up wrapping the SuggestBox with another class that intercepted any handlers added to it and wrapped them with a de-duplication handler.

Re: GWT best practices and GUI libraries

2011-01-18 Thread Ben Imp
Revenge of the Zombie Thread ... I am currently the owner/maintainer/code monkey behind a fairly complex GWT application. It is primarily data driven, but there is plenty of logic in the UI for role-based editing permissions, visibility, and coordinating different components of the application.

Re: Issues creating new web application project

2011-01-18 Thread Ben Imp
It looks like you either have an old version of Java installed (pre 1.5) or (more likely) your Java compiler compliance settings in eclipse are set up to not allow 1.5+ syntax. -Ben On Jan 18, 5:38 am, Jamie jamie.ma...@skybet.com wrote: When creating a new web application project I get the

Re: GWT project layout question featuring git, maven and 100 developers

2011-01-18 Thread Ben Imp
Unfortunately, I have only ever worked on GWT projects with a small number of developers (2-3), so I can't offer any real advice on scaling. Heck, even my traditional application development capped out at around a half dozen or so on a team. Might I inquire as to what you will be doing with that

Re: GWT Activities, Places with Event Bus ??????

2011-01-19 Thread Ben Imp
I solve this issue by having a single application wide event bus that is passed to all of the presenters in my application. I bundle it up with other application resources, such as a navigation control and an application wide model, and simply hand it to them in the constructor. So, if I wanted

Re: DateTimeFormat

2011-01-19 Thread Ben Imp
Welcome to the wonderful world of Java dates. Dates without a time component don't exist in this strange place, so the simplest solution I've found is to just create your own date class and store three integers. -Ben On Jan 19, 2:46 am, Sreekanth Nambiar pk.sreeka...@gmail.com wrote: Hi,    

Re: Client en Server side validation

2011-01-19 Thread Ben Imp
The correct thing to do, in my mind anyway (admittedly an odd place), is never trust a client and do your own validation of the data and operation requested. This contrasts with my professional experience, which has been that pretty much everyone just trusts the client and mindlessly follows its

Re: GWT Activities, Places with Event Bus ??????

2011-01-20 Thread Ben Imp
Events allow you to synchronize two concurrently active presenters. If you never have more than one presenter active in your application at a given time, then this becomes less of an issue. -Ben On Jan 20, 8:01 am, ailinykh ailin...@gmail.com wrote: Why do you need events? Each Activity is

Re: Out of stack space

2011-01-20 Thread Ben Imp
Sounds like classic infinite recursion to me. I can't see the code, but if your service call simply calls itself again on failure, and you don't track a failure count anywhere, I could see that spinning around infinitely and blowing up. -Ben On Jan 20, 1:24 pm, mike b mbaker.t...@gmail.com

Re: Unable to set the text of a HTML element with a string, advice Please!!

2011-01-20 Thread Ben Imp
You never seem to actually set the 'tml' variable to anything besides null, so I'm guessing that's your issue. -Ben On Jan 20, 3:45 pm, AmaraSat amara.forthewo...@gmail.com wrote: static HTML tml = null; String HeatParametersString = ; for (int i = 0; i Properties.length; i++) {        

Re: GWT Web Application testing...

2011-01-28 Thread Ben Imp
I've only used Selenium for GWT client testing. It worked as we expected it to. The learning curve has a bit of a bump at first, due to the somewhat confusing way they name things and have you configure a test suite. Nothing to do specifically with GWT, mind you. I must mention that we have

Re: Use hosted mode existing tomcat server and not with embadded jetty server

2011-01-28 Thread Ben Imp
Its in the FAQ. In fact, its the first result when you search for Tomcat on the GWT site. I highly recommend reading through the all of the docs there. http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s -Ben On

Re: Formatting data - best on the server, or client?

2011-01-31 Thread Ben Imp
My Right Thing is as follows. I will generally do some transformation work on the server side. Not to HTML, mind you, since that, to me, is purely presentation layer work. Rather, I will take the raw data and package it into lean records objects, and send the collection of those to the client.

Re: how can i add my voice in my gwt application as time of registration

2011-02-03 Thread Ben Imp
I don't believe a web browser will let you access anything like a microphone. A flash plugin can access such things, but thats about it. -Ben On Feb 2, 11:08 pm, dhruti dhruti...@gmail.com wrote: hi i m gwt designer. i working with app in which i want to enroll users voice at the time of

Re: Calculate age

2011-02-03 Thread Ben Imp
Indeed. The alternative of sending all date operations to the server is ... incredibly inconvenient at best. -Ben On Feb 3, 7:20 am, Jeff Schwartz jefftschwa...@gmail.com wrote: I think you will find that you are not alone in your opinion regarding using deprecated methods and that you are in

Re: How to add datetimepiker in GWT

2011-02-03 Thread Ben Imp
As far as I am aware, there is no such widget. You will have to make one. -Ben On Feb 3, 3:24 am, sujit mishra sujit.u...@gmail.com wrote: Hi ,      I need help regards datetimepicke widget . I am using GWT but not found any widget that able to capture date and time both at a      time  

Re: How to add datetimepiker in GWT

2011-02-03 Thread Ben Imp
(new ValueChangeHandlerDate(){             @Override             public void onValueChange(ValueChangeEventDate event) {                 ...             }         }); ... I hope this helps. Jeff On Thu, Feb 3, 2011 at 9:28 AM, Ben Imp benlee...@gmail.com wrote: As far as I am aware

Re: History.replaceItem?

2011-02-03 Thread Ben Imp
I have a possible alternative suggestion - instead of messing with the browser's history function, simply don't use the history tokens for navigating through the results list. Then your back button will work as you will want it to. I do this in my application, and it seems to work quite well.

Re: Developing a large scale GWT app and MVP

2011-02-07 Thread Ben Imp
I have an application factory that gets passed into all of my presenters. This factory has methods on it for creating the various kinds of popups that will occur in the application, and covers them all in a nice clean interface. Seems to work quite well. -Ben On Feb 5, 10:57 pm, TigerFox

Re: IE warning message in web mode

2011-02-10 Thread Ben Imp
I believe your problem is the lack of a web server. IE doesn't like people opening JS-laced web pages from the local drive. Probably a security concern, I would imagine. I have noticed this with non-GWT html as well, as I will often create little html test harnesses for some jQuery work, and I

Re: IE warning message in web mode

2011-02-10 Thread Ben Imp
You could run a local web server. I always deploy my application to a local Tomcat server for testing. -Ben On Feb 10, 3:09 pm, othman othmanelmou...@gmail.com wrote: Thanks Ben, So there is no solution other to accept and live with this security restriction in IE? On Feb 10, 8:52 pm, Ben

Re: IE warning message in web mode

2011-02-11 Thread Ben Imp
will be run from user's local file system without deploying in a web server. why IE made this security restriction? and why this doesn't happen in Firefox and Chrome? On Feb 10, 9:34 pm, Ben Imp benlee...@gmail.com wrote: You could run a local web server.  I always deploy my application

Re: GWT runasync

2011-02-14 Thread Ben Imp
One way to do this would be to put your view list inside of a factory object. This factory object would have a method to request a view for a given id, and return a new instance of it. The creation of that view would take place inside of a runAsync block. Your page controller would have to pass

Re: is using DivElement instead of Label recommended?

2011-02-14 Thread Ben Imp
Sounds like some Cell Widgets might be a perfect fit for you. http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html -Ben On Feb 14, 8:51 am, denis56 denis.ergashb...@gmail.com wrote: Hello, I wonder if it is a usual practice to use Element objects instead of Widgets in GWT

Re: radio button listener/handler issue on IE8.

2011-02-14 Thread Ben Imp
Did you give each of your radio button sets different names? Radio button groups are defined by their names. -Ben On Feb 13, 2:13 pm, Dallas007 nandigam...@gmail.com wrote: Hi, I have installed IE8 yesterday and Win XP OS. The problem is radio button selection is not working properly. I

Re: radio button listener/handler issue on IE8.

2011-02-15 Thread Ben Imp
else? From Narayana On Mon, Feb 14, 2011 at 9:07 AM, Ben Imp benlee...@gmail.com wrote: Did you give each of your radio button sets different names?  Radio button groups are defined by their names. -Ben On Feb 13, 2:13 pm, Dallas007 nandigam...@gmail.com wrote: Hi, I have

Re: GWT runasync

2011-02-15 Thread Ben Imp
).newInstance();?! On 14 Feb., 17:50, Ben Imp benlee...@gmail.com wrote: One way to do this would be to put your view list inside of a factory object.  This factory object would have a method to request a view for a given id, and return a new instance of it.  The creation of that view would take

Re: replacement for String.format in GWT?

2011-02-15 Thread Ben Imp
If you are trying to format a date, which appears to be the case, you can use DateTimeFormat. -Ben On Feb 15, 12:36 pm, Magnus alpineblas...@googlemail.com wrote: Hi, I need String.format: String r = String.format(%2d %2d:%2d:%2d,d,h,m,s); Since GWT does not support this method: What can

Re: How about do the UI in the Java-Swing way?

2011-02-17 Thread Ben Imp
Sounds like an awful lot of extra work to simply avoid learning CSS. Don't get me wrong, CSS is kind of clunky, but I find it hard to imagine that this new solution would be significantly more elegant. -Ben On Feb 16, 8:31 pm, Kurtt kurtt@gmail.com wrote: GWT 2.2 introduces the Canvas,

Re: Production bugs that don't exist in development mode

2011-02-17 Thread Ben Imp
So ... curious ... runAsync provides a callback to let you know when its done doing its thing. Why aren't you just using that to know when you can mess with the objects you have created? To me, that is the bug, not anything in particular to do with what order GWT runs things asynchronously.

Re: SuggestBox can't set Oracle

2011-02-17 Thread Ben Imp
I find it awkward as well. I have worked around it by providing a delegating oracle on creation of the suggest box. Not exactly ideal, but a rather simple fix. -Ben On Feb 17, 1:29 pm, Eric edimickeast...@gmail.com wrote: So, SuggestBox.setOracle(SuggestOracle oracle) is private.  I can't

Re: best practice for callbacks

2011-02-21 Thread Ben Imp
Use unique click handlers. Then each clickhandler knows where it came from, so to speak, and can use a unique callback to update the appropriate widgets. Alternatively, you could pass an enum of some kind to a common click handler, and case through the possibilities in the callback. To me,

Re: Split points for method having return type other than void

2011-02-21 Thread Ben Imp
You cannot return something from an async call like that. The work will be done asynchronously, and the main program has presumably gone on its merry way while the async things are being done. If some object needs that result, a simple solution would be to pass the object into the async method,

Re: Serious Bug or some Type Erasure I don't understand ???

2011-02-21 Thread Ben Imp
It seems like you are using a singleton event bus. I would assume all three entities are registered with that bus to handle the SelectEntitiesEvent. If thats the case, then I don't see why all three wouldn't have their listeners triggered. The event they registered for did get fired. -Ben On

Re: Serious Bug or some Type Erasure I don't understand ???

2011-02-21 Thread Ben Imp
 pm, Ben Imp benlee...@gmail.com wrote: It seems like you are using a singleton event bus.  I would assume all three entities are registered with that bus to handle the SelectEntitiesEvent.  If thats the case, then I don't see why all three wouldn't have their listeners triggered.  The event

Re: Split points for method having return type other than void

2011-02-21 Thread Ben Imp
of the method body within onSucces() then will the code split for this portion of method be succesful? On Tue, Feb 22, 2011 at 1:51 AM, Ben Imp benlee...@gmail.com wrote: You cannot return something from an async call like that.  The work will be done asynchronously, and the main program has

Re: Compiling GWT project from command line

2011-02-22 Thread Ben Imp
I assume you are building an ANT script. If so, then it means something like this. java classname=com.google.gwt.dev.Compiler fork=true maxmemory=256M arg line=-style DETAILED -war ${dist} ${gwt.module}/ !--Uncomment this line to get a detailed

Re: Can I set some piece of code to be ignored by GWT compiler

2011-02-25 Thread Ben Imp
There is GWT.isClient(). I'm not certain if the compiler will ignore the unused chunks, however. -Ben On Feb 25, 12:22 am, lalit lalit.bh...@gmail.com wrote: I know that certain methods in my class are never going to be used in client side. They are specific to server. Can I somehow notify

Re: Method Reference Delegate or so

2011-02-28 Thread Ben Imp
You could create a composite async request object. Its constructor would take a list of special async requests, and it would execute them in order. They would have to be special as you would need some way to attach listeners to them to know when each is done (the base interface doesn't provide

Re: User roles in GWT applications

2011-03-02 Thread Ben Imp
This is basically what I have implemented in my system as well. Our user roles are in the DB and I keep a copy on the client so all of the presenters can inspect it to see what the user can do. I should mention that double-checking the permissions on the server side for all requests is a very

Re: Styeling a ListBox

2011-03-02 Thread Ben Imp
You can probably simulate a red border by surrounding the list box with a div, which you could add a border color to. IE should actually listen to that one. I don't think you can style the drop down arrow at all. From my understanding, form elements are kind of limited in how you can alter

Re: Hosting web application on production server.

2011-03-02 Thread Ben Imp
I'm pretty sure IIS can't handle Java servlets, at least not out of the box (someone please correct me if I am mistaken). I'd want to be testing on the same application server as I was deploying on anyway. -Ben On Mar 1, 11:07 pm, dg damaya...@bitscrape.com wrote: I will develop a web

Re: User roles in GWT applications

2011-03-02 Thread Ben Imp
Depends on the situation, but in general its much easier on users if things they can't do/edit aren't shown to them. Or, alternatively, if they are shown, be shown with some visual indicator of restricted access. A panel full of blank values with no UI feedback is somewhat unintuitive. A panel

Re: Database jdbc

2011-03-03 Thread Ben Imp
Server-side GWT is just plain old java. I'd suggest reading up on the JDBC documentation. http://download.oracle.com/javase/6/docs/technotes/guides/jdbc/ -Ben On Mar 3, 3:14 pm, Mohammed Magdi moh_ma...@acm.org wrote: yes in Java thanks magdi On Thu, Mar 3, 2011 at 6:06 PM, Juan Pablo

Re: Cannot change CSS in dev mode

2011-03-04 Thread Ben Imp
I cannot say I've observed the same behavior. The browser may be caching your CSS, though. Hit refresh a few times and I'd wager you will see your changes. -Ben On Mar 4, 7:40 am, Andrey mino...@gmail.com wrote: When running GWT app in dev mode static web resources such as css- files cannot

Re: Is the Issue 5320 resolved ?

2011-03-04 Thread Ben Imp
The issue tracker is public. http://code.google.com/p/google-web-toolkit/issues/detail?id=5320 -Ben On Mar 4, 12:44 am, Deepak Singh deepaksingh...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,

Re: Best practice for to maintain Big project

2011-03-04 Thread Ben Imp
If I am understanding you correctly, you worry about having to deploy the whole war for small changes, like a quick bugfix or the like. As far as I am aware, there isn't really a way to partially deploy a GWT application, like only those parts that changed. In theory, I suppose, you might be

Re: Issues with IE GWT compiled javascript is 11MB

2011-03-04 Thread Ben Imp
I believe GWT already does that. The browser should only be loading one of the permutations. You should look at code splitting. Cutting out code you dont need couldn't hurt either. -Ben On Mar 4, 11:18 am, sridevi macherla sridevimache...@gmail.com wrote:  Is there any mechanism to generate

Re: Development mode vs web mode URL discrepancy

2011-03-04 Thread Ben Imp
GWT has the concept of a history token to preserve your application's context. You shouldn't need to be parsing the URL. http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html -Ben On Mar 4, 11:20 am, cri chuck.irvine...@gmail.com wrote: I saw another post on this

Re: Development mode vs web mode URL discrepancy

2011-03-04 Thread Ben Imp
Oh, I missed the bit where you are accessing resources outside of the GWT app. Icky ... I punt. -Ben On Mar 4, 12:09 pm, Ben Imp benlee...@gmail.com wrote: GWT has the concept of a history token to preserve your application's context.  You shouldn't need to be parsing the URL. http

Re: Getting child window(s)

2011-03-14 Thread Ben Imp
You can hold onto a handle in pure JS. http://www.w3schools.com/jsref/met_win_open.asp I don't believe GWT gives you a way to access this handle, however. -Ben On Mar 14, 2:19 pm, Ice13ill andrei.fifi...@gmail.com wrote: Is it possible to get a handle to the windows opened by a certain

Re: Need Help for gwt-rpc mysql database connectivity

2011-03-14 Thread Ben Imp
I am quite curious how it is that you can not have access to the server side stack trace. I suspect the answer to your question lies there. -Ben On Mar 14, 7:04 am, Dilip Rathod rathod...@gmail.com wrote: I can gwt-rpc communication with server sucessfully. but when i want to interact with

Re: Need Help for gwt-rpc mysql database connectivity

2011-03-15 Thread Ben Imp
Yeah, I've been meaning to do something like that in my application. The current lack of details on the client isn't very pleasant for users or developers. SSH-ing into the prod server is annoying as well. I'm always worried about breaking something with a twitchy rm - rf finger. I'm still

Re: GWT application requires Plugin to be installed in browser

2011-03-15 Thread Ben Imp
You are running your application in development mode, which means you are probably running it from your IDE. Its used for debugging and fun stuff like that. If you compile and deploy your web application to a server, like Apache or Tomcat, you wont get that.

Re: GWT menu item text alignment issue

2011-03-18 Thread Ben Imp
It looks like there is a setHTML method on the MenuItem. I'd imagine you could use that to put a table element in there, with a left and right cell, and then differently align the contents of those. I can't say I've tried to do this, mind you, but it seems like it should work. -Ben On Mar 18,

Re: GWT-RPC Pass array of Serializable objects

2011-03-18 Thread Ben Imp
If I saw #2 in any code I was responsible for I would hunt down and beat the person who wrote it. With a rusty spork. I may be slightly resentful of having bad code dumped on me. Possibly... Defining your methods return type is good practice. I recommend creating a result object to return for

Re: problem with chart representation

2011-03-21 Thread Ben Imp
Perhaps if you provided details, people here might have something to go on to try and help you. As it stands, my only advice would be to use the IE developer tools and inspect the DOM elements where things look different. http://msdn.microsoft.com/en-us/library/dd565628%28VS.85%29.aspx -Ben On

Re: Why does History.newItem clear my screen completely?

2011-03-21 Thread Ben Imp
As far as I am aware, adding a new history token only fires history events. Unless you are listening to them, it shouldn't do anything. I haven't used the GWT MVP framework, though. If you are using that, this may be the result of some baked-in behavior. -Ben On Mar 21, 10:11 am, Navigateur

Re: ORM or JDBC?

2011-03-23 Thread Ben Imp
I've found using ORM in GWT to be pretty much the same as using it in any other setting. If you like it, go for it. I personally do not care for it, as I've found, at least in the projects I've worked on, that the added complexity doesn't seem to pay off. I'd rather just write a thin DAO layer

Re: Working with third party client libraries in gwt

2011-03-23 Thread Ben Imp
If you want to use them on the client side, you must have the source code for GWT to translate to JS. In addition, this code must be compatible with GWT's subset of Java. Using third party jars on the server side, on the other hand, is just straight Java. I would hazard a guess that your issue

Re: RPC Problem with HashMap containing ArrayList Value

2011-03-28 Thread Ben Imp
The more generic your remote interface, the more code the GWT compiler generates to try and handle all the possible values you may pass through it. Having a method that can take something of type Serializable would, I believe, make the GWT compiler generate code for all possible types, since you

Re: Overriding panel's iterator() prevents clickHandler from being called.

2011-03-29 Thread Ben Imp
You shouldn't need to override any methods just to add scrollbars. Im curious as to why you want to do that. You should be able to just nest the panels, as you have done. -Ben On Mar 29, 12:40 am, Olivier Diotte oliv...@diotte.ca wrote: Hi, I am new to GWT (and not that expert in Java) and

Re: Returning URL from RPC

2011-03-29 Thread Ben Imp
I suppose the obvious thing to investigate would be whether ???/ myfolder/report.html is visible to http requests. That will depend on where exactly your code is writing this HTML file to and whether your app server and/or web server allow reading from that location. -Ben On Mar 29, 10:26 am,

Re: 2.1 Version of documentation? / CellTable sorting

2011-03-30 Thread Ben Imp
http://code.google.com/webtoolkit/doc/2.1 You can twiddle the version in the upper left by clicking on it. -Ben On Mar 30, 11:12 am, cri chuck.irvine...@gmail.com wrote: We are currently at version 2.1 of GWT and I'm trying  to implement sorting of CellTables. The online (2.2) GWT

Re: Hint Text

2011-03-31 Thread Ben Imp
You could set the title attribute of the text field. http://www.w3schools.com/tags/att_standard_title.asp -Ben On Mar 31, 8:57 am, SVR svr...@gmail.com wrote: Ho to display hint text (like a date format, currency symbol etc) to a text field. Is there any built in feature to do this in GWT? I

  1   2   >