Dani's GWTP Course

858 views
Skip to first unread message

Daniel Colchete

unread,
Feb 15, 2012, 11:03:05 AM2/15/12
to gwt-pl...@googlegroups.com
Good day everyone!

For the last 8 months I have been using GWTP for a project here and have been enjoying this great framework that some great people spent a lot of time creating, maintaining and supporting. Not only I'm enjoying the results of all that time invested in the project but GWTP is also a great productivy booster for me because of how much faster it allows me to work. 

A while ago I gave a 2 day GWTP course to a development team here at my company and I had the idea of recording the content of that 2 day course as a screencast. Now, after a little bit more than a couple of days of work I recorded what I called "Dani's GWTP Course".

I would like to get your input on it. Well, the recording itself is supposed to have classroom-like quality and I acted as if I was at one. So sometimes I miss some small detail and have to go back a little bit as I would have done if I were at a classroom. Also my latin english accent gives me away as I don't speak english as my first language. So I'm not too much interessted to hear about that.

The input I'm really interessted in are ways to improve the teaching quality of the videos. So please test them with new teammates and GWTP new commers, so that we can detect where the videos fail to explain something well. If they have questions please have those questions sent here. Also maybe I'm saying something in a way that the project leaders would prefer to be taught some other way.

I would like to give this course version a four week try and get as much input as possible so that we can have a better final version after that.

The course have 9 lessons with about two and a half hours of content. I created a YouTube playlist with all the videos here: 

Please enjoy!

Best regards,
-- 
Dani
Cloud3 Tech - http://cloud3.tc/
Twitter: @DaniCloud3 @Cloud3Tech

sampath sai

unread,
Feb 15, 2012, 3:11:01 PM2/15/12
to gwt-pl...@googlegroups.com
Do you have any codes?

sampath sai

unread,
Feb 16, 2012, 12:46:54 AM2/16/12
to gwt-pl...@googlegroups.com

Hi Dani,


It’s a Great Course.  I have some questions on Presenter Widgets.

I have user List presenter, when user selects user, I am planning to display user detail presenter.

Can I use your approach of creating slot and add? Below is functionality I am trying to achieve.

http://employeeadm.appspot.com/


Thank you,

Sai

sampath sai

unread,
Feb 16, 2012, 12:49:27 AM2/16/12
to GWTP
Hi Dani,

It’s a Great Course.  I have some questions on Presenter Widgets.
I have user List presenter, when user selects user, I am planning to
display user detail presenter.
Can I use your approach of creating slot and add? Below is
functionality I am trying to achieve.

http://employeeadm.appspot.com/

Thank you,
Sai

DVallejo

unread,
Feb 16, 2012, 2:21:40 AM2/16/12
to GWTP
Dani, Thanks for sharing your course.
It is excellent.
Regars
David Vallejo

Christian Goudreau

unread,
Feb 16, 2012, 9:01:46 PM2/16/12
to gwt-pl...@googlegroups.com
Thanks for sharing, it's really great to see that kind of involvement! Thanks a lot!
--
Christian Goudreau

Joshua Kappon

unread,
Feb 17, 2012, 4:28:04 AM2/17/12
to gwt-pl...@googlegroups.com
Great course! thanks a lot!

Daniel Colchete

unread,
Feb 17, 2012, 8:36:07 AM2/17/12
to gwt-pl...@googlegroups.com
Hi Sampath!

It is great that you liked the course! And sure! Have you list of user presenter widget in place and when the user selects a user it will fire an event through the event bus (lesson 7) that your edit presenters will handle, show the right user on the screen.

Best,
Daniel

Daniel Colchete

unread,
Feb 17, 2012, 8:37:39 AM2/17/12
to gwt-pl...@googlegroups.com
Thank you David! I'm really happy you liked it! Please let me know if it is leaving any doubts about what it is trying to teach.

Best,
Daniel

Daniel Colchete

unread,
Feb 17, 2012, 8:40:48 AM2/17/12
to gwt-pl...@googlegroups.com
Hey Christian!

Your opinion is very important as you are one of the project leaders here. Thank you! I'm hoping to test it as much as possible in the following weeks to detect its busg , fix them and have a final version recorded latter. Lets see if this works.

Best,
Daniel
347.png

Daniel Colchete

unread,
Feb 17, 2012, 8:42:02 AM2/17/12
to gwt-pl...@googlegroups.com
Thanks Joshua! Please enjoy and show it to everyone you know that is trying to learn GWTP so that we can detect any problem, fix it, and record the final version latter.

Best,
Dani


On Fri, Feb 17, 2012 at 7:28 AM, Joshua Kappon <shuky....@gmail.com> wrote:
Great course! thanks a lot!



Philippe Beaudoin

unread,
Feb 17, 2012, 10:10:08 AM2/17/12
to gwt-pl...@googlegroups.com
Thanks a lot for this Dani, very appreciated! I relayed it on Google+ don't hesitate to share it:
(I didn't find you there Dani, so couldn't link you. Sorry. :()

Cheers,

   Philippe

Christian Goudreau

unread,
Feb 17, 2012, 10:24:29 AM2/17/12
to gwt-pl...@googlegroups.com
I shared on our twitter by the way and added it into the community stuff on Gwtplatform's wiki (if you don't mind).

Again, really great work!
--
Christian Goudreau

Joe Walp

unread,
Feb 17, 2012, 9:54:26 PM2/17/12
to GWTP
I encountered a problem when attempting to set up XSRF security as
detailed in Lesson 9. With gwtp 0.7, I'm not seeing a
HttpSessionSecurityCookieFilter.class. I do see an
AbstractHttpSessionSecurityCookieFilter.class in the source tree.
When I bind the filter in DispatchServletModule, what class should I
use in gwtp 0.7?



On Feb 15, 8:03 am, Daniel Colchete <d...@cloud3.tc> wrote:

fishe...@gmail.com

unread,
Feb 20, 2012, 8:36:21 AM2/20/12
to GWTP
Hi Dani,

I also really enjoyed the course. It helped clarify a lot of things
to me.
I would also like access to the code, so that I can review some things
as I don't easily have youtube at work.

I did see some English/Grammar issues in some slides. It is hard to
review them in the video but if you have them in a file, I would be
happy to proofread them for you.

What is your project/application that has the 170(?) presenters?

Thanks,
Lee

Konstantin Zolotarev

unread,
Feb 21, 2012, 3:34:48 AM2/21/12
to gwt-pl...@googlegroups.com
Really great course !

I'm using GWTP for a half of a year and found lot of new things there! Thank you very much. 

Lee Fisher

unread,
Feb 22, 2012, 2:43:57 PM2/22/12
to gwt-pl...@googlegroups.com
Is this presentation with 0.7?  I notice it is a little different from mine.

Daniel Colchete

unread,
Feb 23, 2012, 7:58:58 AM2/23/12
to gwt-pl...@googlegroups.com
Ok, back from carnaval, now to my emails!

Thanks Philippe! I'm really glad you liked it.

Thanks for sharing it. Lets test it as much as possible so that we can have a great final version.

I'm on Google Plus but with my personal email address, here is my profile: https://plus.google.com/u/1/111681481829640394960

Best,
Dani

Daniel Colchete

unread,
Feb 23, 2012, 8:00:38 AM2/23/12
to gwt-pl...@googlegroups.com
Christian, 

it is great to have it on the GWTP page! Lets share it and use it as much as possible!

Best,
Dani

Daniel Colchete

unread,
Feb 23, 2012, 8:25:12 AM2/23/12
to gwt-pl...@googlegroups.com
Hi Joe!

I still didn't upgrade anything here for GWTP 0.7 so I don't have any experience with it yet. Besides that, from what I have seen, the GWTP Eclipse Plugin hasn't been upgraded to GWTP 0.7 yet, and I really rely on it. But I'll take a look at it latter and upgrade the course to GWTP 0.7 before recording it again.

I don't know what we should use to replace HttpSessionSecurityCookieFilter.class in GWTP 0.7 and I didn't see anything in the Migration Notes, so I really dont know. 

I did wrote the upgrade and the question down on my TODO list here for the course and I'll have it fixed in the final version.

Best,
Dani

Daniel Colchete

unread,
Feb 23, 2012, 8:29:52 AM2/23/12
to gwt-pl...@googlegroups.com
Hi Lee!

I'm glad you liked it! I think GWTP have a steep learning curve at the beginning because you have to understand everything to work with it, but I think that the video will help ease out that. 

I wrote you email here on my TODO file and I'll send the final version notes to you before recording the videos so that we can fix the grammar error. Thanks for pointing that out. 

I also wrote your suggestion on my TODO file and I'll have the final code made public with the final version. Although it is a mess, as in not documented, but it will be exactly what the course will create so it is a good reference.

Thanks for the suggestions!

Best,
Dani

Daniel Colchete

unread,
Feb 23, 2012, 8:33:36 AM2/23/12
to gwt-pl...@googlegroups.com
I forgot to answer the 170 presenters question. I'm running a IT profession database website down here in Brasil. I worked developing antispam filters for years and I'm using some of that knowledge to help employers find the right guy faster. The front end is 100% GWTP. It is not beautiful at all, will be working on that latter, but it works fine and should get much better as the algorithm gets more and more user input. The website is live at http://www.estamoscontratando.com.br/

Best,
Dani

Daniel Colchete

unread,
Feb 23, 2012, 8:40:40 AM2/23/12
to gwt-pl...@googlegroups.com
Hi Konstantin! Thanks! 

I didn't see you had already seen the course when I answered your other email. In any case, accessing them on OnReset should work.

Best,
Dani

On Tue, Feb 21, 2012 at 6:34 AM, Konstantin Zolotarev <konstantin...@gmail.com> wrote:
Really great course !

I'm using GWTP for a half of a year and found lot of new things there! Thank you very much. 



Daniel Colchete

unread,
Feb 23, 2012, 8:42:11 AM2/23/12
to gwt-pl...@googlegroups.com
Lee,

no, but will be upgraded on the final version. I still didn't work with 0.7 yet and my updated GWTP Eclipse Plugin is creating 0.6 projects/files yet. But I will have everything upgraded on the final version.

Best,
Dani

Lee Fisher

unread,
Feb 23, 2012, 9:00:08 AM2/23/12
to gwt-pl...@googlegroups.com
Hi Dani,
Thanks for all the responses.
Can you confirm which version of the plugin you are using? 
I see to have 0.6.1.201109181204.  It has more checkboxes at the bottom for example.  Maybe mine is older within 0.6.

Konstantin Zolotarev

unread,
Feb 24, 2012, 12:28:17 AM2/24/12
to gwt-pl...@googlegroups.com
Is it any chance to get them into onBind() ?
Or this fields will beavailable only after onReset ?

stevee

unread,
Feb 26, 2012, 4:48:51 PM2/26/12
to GWTP
Thanks Dani for a great tutorial! I have a question regarding the list
of PresenterWidgets created in SecondPresenter. It seems to me that
PresenterWidgets are not proxied (so no code split there). Why do we
need asynchronous instantiation in the loop? The code should already
be uploaded. (Hmmm I am saying 'should' here.) There is no
AsyncProvider for RatePagePresenter in gin. Soisn't gin assuming it is
loaded? Thanks again!

Daniel Colchete

unread,
Feb 29, 2012, 12:14:43 PM2/29/12
to gwt-pl...@googlegroups.com
Hi Stevee!

First: thanks!

I also don't think that we have code splitting there. I saw a comment about that interface allowing it, but I don't think we have that now.

The case here is that we need many instances of the RatePagePresenter, so only @Inject'ing it wouldn't work because it would only give us one instance. So we have to inject a Provider that will give as many instances as we need.

You could just call Presenter p = provider.get() and it should work but this is work the away the project's examples and documentation recommends, so that is way I didn't do it this way.

What do you think?

Best,
Dani

stevee

unread,
Feb 29, 2012, 11:04:23 PM2/29/12
to GWTP
I can understand the recommendation. Although PresenterWidget does not
have a proxy and therefore no splitting annotation in GWTP - perhaps
it might be split out via more traditional method outside of GWTP.
Perhaps manually by the developer.

Thanks again!
Stevee

Peter

unread,
Jul 15, 2012, 4:54:02 AM7/15/12
to gwt-pl...@googlegroups.com
Great course. Keep up the good work.
It really means alot to have such resource especially for new GWTP developers.

Brandon Donnelson

unread,
Jul 20, 2012, 6:52:14 PM7/20/12
to gwt-pl...@googlegroups.com
Nice work Daniel!


On Wednesday, February 15, 2012 8:03:05 AM UTC-8, Daniel Colchete wrote:
Good day everyone!

For the last 8 months I have been using GWTP for a project here and have been enjoying this great framework that some great people spent a lot of time creating, maintaining and supporting. Not only I'm enjoying the results of all that time invested in the project but GWTP is also a great productivy booster for me because of how much faster it allows me to work. 

A while ago I gave a 2 day GWTP course to a development team here at my company and I had the idea of recording the content of that 2 day course as a screencast. Now, after a little bit more than a couple of days of work I recorded what I called "Dani's GWTP Course".

I would like to get your input on it. Well, the recording itself is supposed to have classroom-like quality and I acted as if I was at one. So sometimes I miss some small detail and have to go back a little bit as I would have done if I were at a classroom. Also my latin english accent gives me away as I don't speak english as my first language. So I'm not too much interessted to hear about that.

The input I'm really interessted in are ways to improve the teaching quality of the videos. So please test them with new teammates and GWTP new commers, so that we can detect where the videos fail to explain something well. If they have questions please have those questions sent here. Also maybe I'm saying something in a way that the project leaders would prefer to be taught some other way.

I would like to give this course version a four week try and get as much input as possible so that we can have a better final version after that.

The course have 9 lessons with about two and a half hours of content. I created a YouTube playlist with all the videos here: 

Please enjoy!

Best regards,
-- 
Dani

Mrabti idriss

unread,
Jul 27, 2012, 6:45:40 AM7/27/12
to gwt-pl...@googlegroups.com
Thank you a lot for sharing,
It is very helpful for newbie people.

Kwun Hok Chan

unread,
Jul 29, 2012, 12:01:48 PM7/29/12
to gwt-pl...@googlegroups.com
Thanks a lot Dani, it is an easy to understand course to get started with GWTP.

Shree

unread,
Oct 2, 2012, 11:55:37 AM10/2/12
to gwt-pl...@googlegroups.com
Great course Dani!
It would be great if we can download the play with the code from your course.
Thank you.

Olivier MAURAS

unread,
Nov 30, 2012, 6:16:11 AM11/30/12
to gwt-pl...@googlegroups.com
Hi Dani,

Very good job for your course, simple and efficient.

Regards

Maximiliano Castiglioni

unread,
Apr 8, 2013, 7:45:04 PM4/8/13
to gwt-pl...@googlegroups.com
Hello:
I need to know how do you do to retrieve an HttpSession loggedInUser, when the browser is refreshed, so the gatekeeper don t call the LoginPage, 
Im having problems because on boolean canReveal(), you cannot wait the onSuccess() of RPC asyncCallback to get the httpSession and put the boolean canReveal to true . 
Excuse my english. I hope have explained enough.
Thanks a lot
Maxi

Johannes Barop

unread,
Apr 9, 2013, 3:23:00 AM4/9/13
to gwt-pl...@googlegroups.com
An easy way would be a dynamic host page where you can put the initial userdata as a JavaScript variable. This can be accessed in a Gatekeeper synchronously.

--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ingert Doe

unread,
Apr 9, 2013, 4:16:30 AM4/9/13
to gwt-pl...@googlegroups.com
Johannes: Could you elaborate on what this a bit? Maybe a small code example? Becouse I don't understand what you mean :) I'm also having problems with this and have no idea of how to solve it

Johannes Barop

unread,
Apr 9, 2013, 6:39:20 AM4/9/13
to gwt-pl...@googlegroups.com
The implementation depends on the server you're using. You basically generate the host page dynamic on the server where you have the session data. This can be a Servlet, JSP or PHP.

Example with JSP:
<html>
<head>
</head>
<body>
  <script type="text/javascript">
    var initialData = { "userId" : "<%= /* logic to get user id */ %>" };
  </script>
  <script src="/gwtapp/gwtapp.nocache.js"></script>
</body>
</html>

GWT-App:
public void onModuleLoad() {
  Dictionary info = Dictionary.getDictionary("initialData");
  String userId = info.get("userId");
}

Of course you'll have to check if userId is null and so on...

Ben Dol

unread,
Apr 10, 2013, 12:38:46 AM4/10/13
to gwt-pl...@googlegroups.com
This is a great resource! :) You should do one on unit testing gwtp. I personally would find that really useful.

Cheers,
Ben

Jonathan Nash

unread,
Apr 30, 2013, 10:49:08 AM4/30/13
to gwt-pl...@googlegroups.com
Daniel - Went through the videos. Was really useful. Thanks.
Jonathan

Christian Goudreau

unread,
May 7, 2013, 8:51:26 AM5/7/13
to gwt-pl...@googlegroups.com
Daniel, do you plan a new series based on GWTP 1.0? :D


--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Christian Goudreau
Reply all
Reply to author
Forward
0 new messages