Re: MVP best practices, how to expose a view to a presenter?

2011-07-02 Thread Alex D.
That sounds right :). -- 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/-/0QtPu3f_BQIJ. To post to this group, send email to google-web-toolkit@goog

MVP best practices, how to expose a view to a presenter?

2011-07-02 Thread Alex D.
Hi guys, I've been trying to find the best answer to the question above for a while now. Here is the problem: * assume you have a view with textbox and a vertical panel. The textbox is used for searching, the vertical panel to display the found results. In order to decouple everything, we'll d

Re: השב: Re: building custom event differently to avoid boiler plate coding?

2011-06-21 Thread Alex D.
You shouldn't use custom events for every possible event in your app, imo -- or, even better, identify the best events that match as much as possible. What you're suggesting by this is removing the strong-type event definitions provided by Java. Of couse, you can work with a class called Event,

Re: RequestBuilder and StatusCode=0

2011-03-04 Thread Alex D.
It should return something, maybe there is a problem with the servlet. Try to do the GET by hand (wget, curl, etc) and see its response. If that is ok, maybe url is miss-spelled. Maybe Accept header is wrong, etc. I'm currently using this method in a couple of places (in case you're wondering

Re: RequestBuilder and StatusCode=0

2011-03-04 Thread Alex D.
Same Origin Policy - you cannot call another host, or same host with different port. XML-RPC implementation will not allow you to do that. Actually, the XmlHttpRequest that is ajax core and used for all the calls will not allow you to do that (so the browser will actually limit you there). You

Re: Database jdbc

2011-03-04 Thread Alex D.
GWT library supports a limited subset of JRE. Some classes and packages are not and will never be supported. Those two are probably not supported, check this link: http://www.gwtapps.com/doc/html/jre.html And besides, when you're developing a client you wouldn't want to handle ClassNotFoundExce

Re: GWT, Eclipse, and testing touch events

2011-03-03 Thread Alex D.
Well multitouch is a simplified way to have mouse clicks & mouse drag. You can click programatically in GWT, so I don't see why not. Of course, it won't be anywhere near the experience that comes by using a real device, but for testing alone it works. -- You received this message because you a

Re: Image element will hang test execution

2011-03-03 Thread Alex D.
I guess this thread is closed. I couldn't find the error though :| -- 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 goo

Re: Integrating GIN into HelloMVP sample from GWT

2011-03-03 Thread Alex D.
Yes, but you just get rid of the "new" operator. That's just half of fix, you're still type-casting after it. -- 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 uns

Re: Integrating GIN into HelloMVP sample from GWT

2011-03-03 Thread Alex D.
something else) is not there anymore. So you will need to adjust to this. The change is a bit more subtle, you're exchanging runtime type info with static compile time GIN functionality. Alex D. On Mar 2, 1:22 am, ciosbel wrote: > https://groups.google.com/forum/#!topic/google-web-t

Re: maintain two html pages in gwt

2011-03-03 Thread Alex D.
You can create 2 projects, or 2 modules in GWT that have entry-points (especially if you share code between the two modules). On Mar 3, 1:48 pm, Jeff Schwartz wrote: > On Thu, Mar 3, 2011 at 1:59 AM, Dhanu Musham > wrote: > > > hi, > > can i maintain two html pages in gwt, one for Login.html and

Re: Compiler Output Size

2011-03-03 Thread Alex D.
How many locales do you have? On Mar 3, 3:50 pm, Thomas Broyer wrote: > You can reduce the number of files being generated by using soft > permutations, > in your case, as the "permutation explosion" is due to locales, you could >

Re: Styeling a ListBox

2011-03-03 Thread Alex D.
Form elements are implemented by the browser, you are very limited in terms of customization (both Ui and functional). I remember an old post where somebody was asking how to customize an upload form - same issue - you cannot do that. What you can do is have a custom 3rd party (or your own) widget

Re: Image element will hang test execution

2011-02-25 Thread Alex D.
oblem there, or if any image is a problem. > > IOW, at this point we have no idea whether or not it's a GWT problem, > and (since you haven't given us the code necessary to replicate the > problem) noway to help you if it IS a GWT problem. > > Greg > > On Feb 24,

Re: Image element will hang test execution

2011-02-24 Thread Alex D.
Still no idea guys? On Feb 23, 6:19 pm, "Alex D." wrote: > Hi, > The code below will not finish (gets hanged in the Image constructor): > > public class ATest extends GWTTestCase { >        // . init code // > >         public void testShouldNotHang () {

Image element will hang test execution

2011-02-23 Thread Alex D.
Hi, The code below will not finish (gets hanged in the Image constructor): public class ATest extends GWTTestCase { // . init code // public void testShouldNotHang () { // Create an empty image final Image img = new Image(); } } The

Persistence based on GAE and GWT serialization

2009-07-02 Thread Alex D
Hi guys, I started experimenting with GAE (Google AppEngine) and I find persistence coding-style beautiful. But, there is the problem with "use with GWT", since the annotations import from "javax.jdo.annotations" package (with obviously is unknown to GWT) and the PersistenceManagerFactory acts ve

GWT more entry points on one html

2009-03-17 Thread Alex D
Hello, I was wondering if I can make 2 or more GWT application embedded on one page. I know this is possible, but, it there a way to make them communicate with each other? It seems to me that the only way is through history tokens, but this coupling is too weak. I have to be sure that the tokens

Re: parse xml problem

2008-10-24 Thread Alex D
What is the parser that you're using? Maybe you can modify your xml structure to return what you need. Since xml allows any number of children per node, it may be easier to write simpler xmls that to parse a complex one :) On Oct 24, 7:35 am, AyeAyeAung <[EMAIL PROTECTED]> wrote: > >         Fol

Re: GWT links are not working with Internet Expolrer

2008-10-24 Thread Alex D
The answer is simple, just don't use IE (any version) :) --~--~-~--~~~---~--~~ 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 unsubsc

compiling java sources from other projects with GWTCompiler

2008-10-16 Thread Alex D
Hi, I have created 2 projects in Eclipse, one is intended to be the base code for the other (and many more in the future). However, I have encountered an issue concerning the GWTCompiler. How do I specify in what extra directories should it look for source code? I know I can make a gwt user modu

Re: Tab panel Css

2008-10-05 Thread Alex D
Use this method: void TabPanel::add(Widget w, Widget tabWidget) To add images, just create the resources (images you want to use) and do something like this: Images[] tabImages = new Image [5]; tabImage [0] = new Image (url1); tabImage [1] = new Image (url2); // etc tabPanel.add (absoluteP

Re: colorating a tab

2008-10-03 Thread Alex D
Does anybody know if it's possible to specify one or more CSS file(s) (not styles, but rather files containing styles) from client code? (currently I link them within HTML file). On Oct 3, 4:01 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 3 oct, 12:12, Zied Hamdi <[EMAIL PROTECTED]> wrote: >

Re: any plans to offer java bean support in future?

2008-10-03 Thread Alex D
Why would you need this kind of code in GWT? On Oct 3, 3:50 pm, mwaschkowski <[EMAIL PROTECTED]> wrote: > Hi All, > > I've been using a 3rd party wysiwyg tool to create my gwt interface, > and one thing I've run into is that gwt does not support java bean > type customization. The following was s

Re: Weird problem with shared code

2008-10-03 Thread Alex D
Wrong example, indeed. I wasn't thinking about serialization there. Yea, ListBox is not serializable On Oct 3, 4:48 pm, "olivier nouguier" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 3, 2008 at 3:33 PM, Alex D <[EMAIL PROTECTED]> wrote: > > > The type m

Re: Weird problem with shared code

2008-10-03 Thread Alex D
JavaBean contract must be honored : That getThat / setThat(That > that). > > > > On Fri, Oct 3, 2008 at 1:07 PM, Alex D <[EMAIL PROTECTED]> wrote: > > > Hello everybody, I have encountered a very weird problem with shared > > code between client and server. >

Re: Radio Button Bug?

2008-10-03 Thread Alex D
It looks like you are using the code in a wrong way, maybe you are doing something recursive there. On Oct 3, 1:06 pm, Arji <[EMAIL PROTECTED]> wrote: > Hi Guys, > > Is this a bug in the GWT? Or maybe I'm implementing it the wrong way. > > Can anyone try this, having 2 Radio Buttons on the same g

Re: creating a custom MenuItem - ?

2008-10-03 Thread Alex D
You could try creating a custom class that extends Composite :) This was our solution for creating a left sided tab panel (like the regular one you can find in GWT, but tabs are not up, but on left). On Oct 3, 10:08 am, gsmd <[EMAIL PROTECTED]> wrote: > I'm thinking of putting a Button and a Text

Re: colorating a tab

2008-10-03 Thread Alex D
GWT has default styles for all its widgets. For example, Button class has the style .gwt-Button. The same applies for other widgets, including more complex ones. What you see in firebug, .gwt-TabBar is the default style for TabBar, and .gwtTabBarItem (the next style on the same line) is the style

Weird problem with shared code

2008-10-03 Thread Alex D
Hello everybody, I have encountered a very weird problem with shared code between client and server. The client is GWT compatible Java code and the server is pure Java. We have created a serializable class, Request (public class Request implements IsSerializable) which we want to use to exchange

Re: Gwt Php Framework

2008-09-01 Thread Alex D
Andrej, the widgets are amaizing, i am a fresh GWT developer and I've done some basic Composites, but not as close as yours. I have some questions though :) 1. What are your reasons for coding server side in PHP? Didn't you use GWT's RPC methods? (I'm not very familiar with PHP, but as far as I k

Re: Gwt Php Framework

2008-09-01 Thread Alex D
Andrej, the widgets are amaizing, i am a fresh GWT developer and I've done some basic Composites, but not as close as yours. I have some questions though :) 1. What are your reasons for coding server side in PHP? Didn't you use GWT's RPC methods? (I'm not very familiar with PHP, but as far as I k

Calling an external servlet within Hosted Mode

2008-08-28 Thread Alex D
Hello, I am new to GWT (3 months of experience) and we are running an servlet inside an application server which we want to call from within hosted mode. The problem is not necessarily local (my case), since hosted mode is great for debugging and really time-saving. The problem is as follows: Yo