Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8RC1
-
Component/s: Framework, ICE-Components
-
Labels:None
-
Environment:All
Description
Test Case: contextValue is set on a panelGroup for a tree node for the user object of the node: <ice:panelGroup contextValue="#{item.userObject}../>. A menuPopup is also assigned to the same node. The menuPopup has its displayListener set to get the contextValue. Here is the sample code:
public void display(DisplayEvent event){
IceUserObject ice = (IceUserObject)event,getContextValue();
}
This causes a class cast exception since event.getContextValue() only returns a String object. In a different case calling ContextActionEvent.getContextValue() under similar methods returns the proper object.
public void display(DisplayEvent event){
IceUserObject ice = (IceUserObject)event,getContextValue();
}
This causes a class cast exception since event.getContextValue() only returns a String object. In a different case calling ContextActionEvent.getContextValue() under similar methods returns the proper object.
Issue Links
- depends on
-
ICE-4105
The displayListener on MenuPopup doesn't respect the contextValue attribute on its target component
-
- Closed
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | main.jspx [ 11523 ] | |
| Attachment | TestBean.java [ 11524 ] |
| Salesforce Case | [50070000007CEJi] |
| Fix Version/s | 1.8 [ 10161 ] | |
| Assignee Priority | P1 | |
| Assignee | Adnan Durrani [ adnan.durrani ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Fix Version/s | 1.8RC2 [ 10163 ] | |
| Fix Version/s | 1.8 [ 10161 ] |
| Fix Version/s | 1.8 [ 10161 ] | |
| Assignee Priority | P1 |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Assignee | Adnan Durrani [ adnan.durrani ] |
Attached files to replicate this issue (main.jspx and TestBean.java)