vehdra music
unread,Aug 20, 2011, 10:36:16 PM8/20/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
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?