With regards to enabling your add button, throw a custom event on the click of 
cancel, listen for this event in the activity which manages the view containing 
the add button. 

~Ashwin
Sent from my iPhone

On Aug 21, 2011, at 8:06 AM, vehdra music <veh...@gmail.com> wrote:

> I need to have a layout like this.
> 
> +----------------------------------------------+
> |                                                        |
> +----------------------------------------------+
> | Users |   Name        [            ]         |
> | Pages|    Lastname [            ]         |
> |           |                                            |
> |           |    [Save][Cancel]                 |
> |           |                                            |
> |           |-------------------------------------|
> |           | [Add]                                   |
> |           |-------------------------------------|
> |           |  Id | Name | Lastname        |
> |           |                                            |
> |           |                                            |
> |           |                                            |
> +----------------------------------------------+
> 
> In the lateral panel (Users / Pages) I have my "main menu". When a user 
> clicks on the "Users" menu item, in the gray area I have to display an "Add" 
> button and a table of users.
> 
> When the user clicks in the "Add" button, I have to show a form over the 
> Users table and hide the "Add" button.
> 
> What I did is the following:
> 
> I created two ACP (Activity / View / Place):
> 
> 1. UsersEditPlace, UsersEditView (here I have the form), UsersEditActivity
> 2. UsersListPlace, UsersListView (here I have the table, and the Add button), 
> UsersListActivity
> 
> And, I also created two ActivityMappers: 
> 
> 1. TopActivityMapper for the green area.
> 2. MainActivityMapper for the grey area.
> 
> The only trouble that I have is: how can I set visible 'Add' button" when the 
> user clicks in the "Cancel" button of the form (UserEditView) ?
> 
> Because, the "Cancel" button is in my UsersEditView, and the "Add" button is 
> in my UsersListView, I don't have any reference to that button.
> 
> I thought maybe, to implement PlaceHandler on my UsersListView, and if the 
> Place is instance of UsersListPlace setVisible(true) to the button, but I 
> don't like this idea so much.
> 
> On the other side, where is placed the "Add" button, I have to put a menu for 
> almost every item in my main menu (lateral menu) should I have another 
> ActivityMapper where is my Add button, and create a View / Activity for every 
> menu that I have to create?
> -- 
> 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/-/Rek2bC4ulqwJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to