Share Header, Footer, ... in different views with UIBinder

70 views
Skip to first unread message

Guillen Antonio

unread,
Oct 8, 2020, 8:39:50 AM10/8/20
to GWT Users
Hi all,

I am still learning GWT and now I want to build views using materialdesign  (with MVP and activity/places)  sharing the same header, footer and side navigation. I don't found examples or tutorial to do this and I have no idea how to do.

Thanks for your help

Antonio

Thomas Broyer

unread,
Oct 8, 2020, 10:35:06 AM10/8/20
to GWT Users
If all your "views" share the same header/footer/nav, then they should be part of your "shell", with your ActivityManager only managing the "main" part of the screen.

Guillen Antonio

unread,
Oct 8, 2020, 12:49:10 PM10/8/20
to GWT Users
Thanks a lot Thomas,

II have already read the pages you propose, but maybe I have some gaps because I really don't understand the system.  A concrete example with the code would surely help me. Is there an example of how to do this? I guess it already exists but I can't find it after several hours of searching.
Thank you very much for your help

Frank Hossfeld

unread,
Oct 8, 2020, 4:06:50 PM10/8/20
to GWT Users
There is a project generator, that generates a Nalu project. The generated project has a header, footer, navigation and content area.The content area will change when clicking a navigation item. It works in the same way as the way, Thomas mentioned, but is based on Nalu instead of Activities and Places. Nalu is a routing based framework to create applications. It uses the same patterns but in a different implementation. May be it helps to learn it. 


ATM there is a bug inside the generator, if you select Domino-UI. Domino-UI updates a method name and I did not update the generator. (will do it during as soon as I have some free time)
You need to replace 'setLeftAddon' with 'addLeftAddOn'.

Guillen Antonio

unread,
Oct 9, 2020, 12:01:24 PM10/9/20
to google-we...@googlegroups.com
Thnaks a lot Frank,

I read and test and use your Nalu example. Very nice and interesting job. I start to implement it in my project, but I change my mind because I discover MaterialDesign and using the MaterialContainer where I can put after clear all of my views it's much more simple I think.

Thanks a lot.

Antonio

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a269c740-1524-4793-96ee-a2d81803271cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages