Forgot to ask... is calling edit(new Account()) an acceptable way to do 
this?

Thanks

On Thursday, 1 November 2012 15:35:34 UTC, Drew Spencer wrote:
>
> Hi coders,
>
> I have recently implemented some editors in my app, and am planning on 
> using them for all editing of beans from now on. For each object (say 
> Account, for example) I have an EditAccountPresenter, which can be used to 
> a) create a new Account from scratch, or b) edit the details of an existing 
> Account. Pretty standard stuff.
>
> My question is this: As I have to wipe the fields when instantiating this 
> new presenter, what is the best way to do this?
>
> I have written a clear() method in each of my editors which wipes all 
> fields and calls clear() on its parent as well, but I was surprised there 
> is no built-in way to do this with the editor framework. Am I missing 
> something?
>
> Regards,
>
> Drew
>

-- 
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/-/KMBJseOEF3UJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to