Re: Client side vs Server side models

2009-06-08 Thread Eduardo Nunes
How do you organize your gwt mvc application? - gwt on the view - some java pojos (or ejb3) on the model - ?? on the controller Considering that you have to show the first name, last name and e-mail address and your User entity has many other fields, do you have a service method getUserInfo that

How can I add a MouseOutHandler to a FlexTable cell?

2009-06-12 Thread Eduardo Nunes
Well, the subject says everything, I would like to know how can I add a MouseOutHandler to a FlexTable cell. I tried a lot of things but none of them with success. I tried a wrap class: private class FlexTableTd extends Widget implements HasMouseOutHandlers, HasMouseOverHandlers

Re: How can I add a MouseOutHandler to a FlexTable cell?

2009-06-12 Thread Eduardo Nunes
) {            return addDomHandler(handler, MouseOverEvent.getType());        } On Jun 12, 12:52 pm, Eduardo Nunes esnu...@gmail.com wrote: Well, the subject says everything, I would like to know how can I add a MouseOutHandler to a FlexTable cell. I tried a lot of things but none of them with success

Re: Hide PopupPanel....

2009-06-24 Thread Eduardo Nunes
That is something I don't understand yet (I'm new to GWT). If the class has a method onMouseOut doesn't it means that this class already expect mouse out events? What is the reason to have this method? On Wed, Jun 24, 2009 at 1:20 PM, Bonor bono...@gmail.com wrote: Well, I tell myself...first

Re: GWT architecture MVP/EventBus (mentioned at Google I/O)

2009-07-10 Thread Eduardo Nunes
On Fri, Jul 10, 2009 at 7:10 AM, Thomas Broyert.bro...@gmail.com wrote: On 10 juil, 08:40, Gert gsch...@gmail.com wrote: On Jul 10, 12:47 am, Eduardo Nunes esnu...@gmail.com wrote: Hello guys, I had a little difficulty to define how establish a communication between the Presenters

Re: GWT architecture MVP/EventBus (mentioned at Google I/O)

2009-07-12 Thread Eduardo Nunes
Broyert.bro...@gmail.com wrote: On 10 juil, 15:15, Eduardo Nunes esnu...@gmail.com wrote: On Fri, Jul 10, 2009 at 7:10 AM, Thomas Broyert.bro...@gmail.com wrote: I wouldn't have used an addClickHandler on the View, but rather a HasClickHandlers getAddIssueButton(). Also, I would have named

Re: GWT architecture MVP/EventBus (mentioned at Google I/O)

2009-07-13 Thread Eduardo Nunes
On Mon, Jul 13, 2009 at 6:18 AM, Kwhitkwhitting...@gmail.com wrote: I'm following your work with interest Eduardo, I'm in the process of building a 'dream-team reference application' myself including RPC, EasyMock, GIN, Guice, ... so I can unit test and hack end-to-end without deploying on a

Re: GWT architecture MVP/EventBus (mentioned at Google I/O)

2009-07-19 Thread Eduardo Nunes
For everyone following this thread, I would recommend to take a look in the presenter's implementation created by David http://gwt-presenter.googlecode.com I'm taking a look on it too, and it seems to be very interesting. I will port my little application as a proof concept. As soon as possible

Re: Command Pattern, MVP, EventBus

2009-07-21 Thread Eduardo Nunes
About the gwt-presenter library, I found some points that I would like talk to you: - When I extend WidgetPresenter/BasicPresenter I have to implement many abstract methods, is it really necessary to set those methods as abstract? Isn't it better to provide an empty default implementation? I know

Re: Command Pattern, MVP, EventBus

2009-07-21 Thread Eduardo Nunes
On Tue, Jul 21, 2009 at 7:07 PM, Thomas Broyert.bro...@gmail.com wrote: On 15 juil, 21:36, David Peterson da...@randombits.org wrote: Presenter Pattern API: http://code.google.com/p/gwt-presenter I wouldn't have made the place a part of the presenter (it isn't any different than the

Re: Command Pattern, MVP, EventBus

2009-07-23 Thread Eduardo Nunes
Shouldn't the server errors be treated as unchecked exceptions (extends RuntimeException)? Maybe a solution could be three methods, one for failures (unchecked exceptions), one for errors (checked exceptions) and another one for success. What do you think? Best regards, On Thu, Jul 23, 2009 at

Re: Command Pattern, MVP, EventBus

2009-07-24 Thread Eduardo Nunes
screen) when something goes wrong. my 5c, On Fri, Jul 24, 2009 at 5:04 AM, Kwhitkwhitting...@gmail.com wrote:  On Jul 23, 3:11 pm, Eduardo Nunes esnu...@gmail.com wrote:   Shouldn't the server errors be treated as unchecked exceptions   (extends RuntimeException)? Maybe a solution could be three

Re: Command Pattern, MVP, EventBus

2009-07-24 Thread Eduardo Nunes
. my 5c, On Fri, Jul 24, 2009 at 5:04 AM, Kwhitkwhitting...@gmail.com wrote:  On Jul 23, 3:11 pm, Eduardo Nunes esnu...@gmail.com wrote:   Shouldn't the server errors be treated as unchecked exceptions   (extends RuntimeException)? Maybe a solution could be three methods, I've found my self

What validation framework best fits with Google-gin

2009-07-30 Thread Eduardo Nunes
Hello guys, I've been searching for a good bean validation framework to use with GWT and Google-gin. I've tried the gwt-validation.googlecode.com , but I have one issue with it, if I try to inject an object that implements the IValidatable interface the system hangs up, it throws an

Re: What validation framework best fits with Google-gin

2009-07-31 Thread Eduardo Nunes
Can you both provide some example of using it? Do you use it with i18n? How do you connect these frameworks with GWT i18n? On Fri, Jul 31, 2009 at 3:22 AM, Norman Maurernor...@apache.org wrote: I'm using gwt-vl but I'm not sure how well it work with Gin ( not tried to inject it yet). Bye,

How do you deal with Validation and MVP?

2009-07-31 Thread Eduardo Nunes
Hello guys, I would like to talk to you about validation and the MVP pattern. Does someone already have implemented it? I checked out some validation frameworks, some of them are very interesting but I'm having problems to use them with the MVP pattern. I think that most of validation feedback

Re: Newbie proudly presents his first GWT App

2009-08-11 Thread Eduardo Nunes
Sorry about that, but what are these cubes for? On Tue, Aug 11, 2009 at 4:51 PM, CI-CUBEe...@ci-cube.info wrote: Hi all, 'though pretty new to Eclipse/Java/GWT, after effectively 2 days or so, I'm happy to present my first App. It's something I wanted to have for so long, but with all this

Re: MVP design issue - any work around?

2009-08-18 Thread Eduardo Nunes
you can do it in two ways: 1. Add a method to enable/disable the component in the interface ArrivalWidgetInterface. This solution makes sense if the enable/disable is a presenter responsability. 2. Extend TextBox setText to disable the component after a call. I would recommend the first option.

Re: GWTENT 0.7 is available for download - A Reflection, AOP, HTML template, UI Binding and Validate(JSR303) framework for GWT

2009-08-19 Thread Eduardo Nunes
do you recommend it to use in production environment? On Wed, Aug 19, 2009 at 4:57 AM, Jamesjamesluo...@gmail.com wrote: Hi, Guys  GWTENT 0.7 now is available for download now, this version add UIBinding and Validate(JSR303) support to GWT and Bug fixes of HTMLTemplate and Reflection.  

Re: MVP question

2009-08-20 Thread Eduardo Nunes
I'm not putting everything in the presenter. For example, I do validation in the presenter and I just call a method display.showErrors(ValidationErrors errors); or display.hideErrors(). The widget has the logic to show or hide. For example, I have an external class that add an error class to a

Re: MVP question

2009-08-20 Thread Eduardo Nunes
It's a good way to do that. On Thu, Aug 20, 2009 at 3:31 PM, Alejandro D. Garinaga...@gmail.com wrote: but I still have a lot of click handlers, blur handlers, etc.  i don't suppose there is any way around that aside from something dean mentioned which is to return something like a map, but

Re: gwt-mvp and gwt-mvp-sample

2009-08-20 Thread Eduardo Nunes
be helpful if you had some code snippets on the front page showing sample usage.  Thanks for continuing to build on this! Regards, Davis On Aug 19, 3:30 pm, Eduardo Nunes esnu...@gmail.com wrote: Hi,   After a while working with MVP pattern described by Ray Ryan at Google I/O conference

Re: MVP/GWT question

2009-08-25 Thread Eduardo Nunes
Natan, if you need some help with GIN, feel free to ask in the list. I think that most of the new projects are using GIN as DI framework. On Mon, Aug 24, 2009 at 5:34 PM, Nathannathan.shel...@gmail.com wrote: I see where you're going, with that gwt-mvp-sample code.  With GIN, you don't even

Re: MVP Article... Source Code?

2010-01-20 Thread Eduardo Nunes
I'm using a different approach, below a draft source code of my AppController class. What do you think? public class AppController implements ValueChangeHandlerString { private final MapString, PresenterType urls; private final MapPresenterType, Provider? extends Presenter presenters; @Inject

Re: MVP Article... Source Code?

2010-01-20 Thread Eduardo Nunes
Comments inline. On Wed, Jan 20, 2010 at 2:46 PM, Jeff Chimene jchim...@gmail.com wrote: Hi Eduardo: Comments inline. On 01/20/2010 09:34 AM, Eduardo Nunes wrote: I'm using a different approach, below a draft source code of my AppController class. What do you think? public class

Re: MVP Article... Source Code?

2010-01-20 Thread Eduardo Nunes
Comments inline. On Wed, Jan 20, 2010 at 3:54 PM, Jeff Chimene jchim...@gmail.com wrote: Comments inline. On 01/20/2010 10:06 AM, Eduardo Nunes wrote: Comments inline. On Wed, Jan 20, 2010 at 2:46 PM, Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com wrote: Hi Eduardo

Re: MVP Article... Source Code?

2010-01-20 Thread Eduardo Nunes
Comments inline. On Wed, Jan 20, 2010 at 4:38 PM, Jeff Chimene jchim...@gmail.com wrote: Comments inline. On 01/20/2010 11:10 AM, Eduardo Nunes wrote: Comments inline. On Wed, Jan 20, 2010 at 3:54 PM, Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com wrote: Comments

Re: MVP + UiBinder, thoughts?

2010-03-05 Thread Eduardo Nunes
The UiBinder just help you to create the UI (view) of the MVP. I wouldn't use the annotations available to bind handlers. UiBinder just help me to create the view of components or even pages in way that a designer can change some part of the HTML for example without modifying the behavior of the