> Nevertheless, I still think that a common use case could be opening a
> different tab in the main (center) panel every time the user clicks in a
> link of the Main Menu, and I don“t know how to achieve this in MVP pattern
> (using activities and places).

When a user clicks through your main menu and everytime a tab is
opened in some main/center panel then this will result somehow in two
main menus. The one you designed to be the main menu and the one
defined by all the opened tabs. So the user could click the main menu
item or the (already opened) tab, both with the same result. Thats why
I don't like TabPanels. Its so easy to misuse them.

At a first glance it may be useful especially if you have many main
menu items and you want the user to easily switch between the last 3
menu items the user has clicked and thus opened as tabs. But if you
use GWT MVP these 3 last menu items (assuming they have there own
place) are already stored in the browsers history and thus the user
could switch between them by clicking back/forward browser buttons.
You could also create a custom component that stores the last x
PlaceChangeEvents and displays this information in some sort of a
breadcrumb (something like "last visited: place1, place3, place8").
That way the user will also have some shortcut links (like using tabs
but without a TabLayoutPanel) in addition to the browsers back/forward
button.

I would really avoid using TabLayoutPanels for any sort of navigation.
Only use them for organizing data or in multi document applications
where you can open multiple files and each file's content is displayed
in a tab. But in a multi document application I would also use only
one place/activity for the TabLayoutPanel and encode the current
active tab (e.g. the file currently being edited/shown) in the place
token.

But of course it all depends on your application and requirements. If
you really need a TabLayoutPanel I have no idea how to implement it
with GWT MVP but maybe someone else can help you :)
Maybe it is possible to write a custom composite place/activity that
is able to handle sub-places for each tab.



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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