Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-Beta
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P1
Description
In the Williams app they have an action menu that can be changed depending on what view or tab is shown/selected. They are using the MenuModel to programatically change the menu items. This includes adding some JavaScript to the onclick event. Upon initial load the menu's onlcik events render without any issues. When the view/tab has been changed these onclick events get removed and only the ICEfaces events remain.
The issue seems to be in the encodeEnd method of the MenubarRenderer. When the menubar is first loaded the following gets called:
if(menu.shouldBuildFromModel()) {
menu.buildMenuFromModel();
}
When the menubar is reinitialized the above code is skipped and just the "encodeMarkup(context, menu);" is just called. This causes the model to not be built with the customized code.
The issue seems to be in the encodeEnd method of the MenubarRenderer. When the menubar is first loaded the following gets called:
if(menu.shouldBuildFromModel()) {
menu.buildMenuFromModel();
}
When the menubar is reinitialized the above code is skipped and just the "encodeMarkup(context, menu);" is just called. This causes the model to not be built with the customized code.
Issue Links
- blocks
-
ICE-9771 menuItem actionListener not firing consistently when using menuModel attribute
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | Case10548Example.war [ 13593 ] |
Arran Mccullough
made changes -
Salesforce Case | [5007000000JKqNm] |
Arran Mccullough
made changes -
Assignee | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Fix Version/s | 2.1 [ 10241 ] | |
Assignee Priority | P2 | |
Assignee | Ken Fyten [ ken.fyten ] | Arturo Zambrano [ artzambrano ] |
Ken Fyten
made changes -
Assignee Priority | P2 | P1 |
Ken Fyten
made changes -
Assignee | Arturo Zambrano [ artzambrano ] | yip.ng [ yip.ng ] |
Ken Fyten
made changes -
Assignee | yip.ng [ yip.ng ] | Arturo Zambrano [ artzambrano ] |
Arran Mccullough
made changes -
Attachment | TestBean.java [ 13598 ] |
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 2.1-Beta [ 10291 ] |
Brad Kroeger
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Ken Fyten
made changes -
Fix Version/s | 2.1-Beta [ 10291 ] |
Arturo Zambrano
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 2.1-Beta2 [ 10294 ] |
Ken Fyten
made changes -
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Arturo Zambrano
made changes -