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
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | main.jspx [ 11523 ] | |
Attachment | TestBean.java [ 11524 ] |
Arran Mccullough
made changes -
Salesforce Case | [50070000007CEJi] |
Ken Fyten
made changes -
Fix Version/s | 1.8 [ 10161 ] | |
Assignee Priority | P1 | |
Assignee | Adnan Durrani [ adnan.durrani ] |
Adnan Durrani
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Adnan Durrani
made changes -
Adnan Durrani
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8RC2 [ 10163 ] | |
Fix Version/s | 1.8 [ 10161 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8 [ 10161 ] | |
Assignee Priority | P1 |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Adnan Durrani [ adnan.durrani ] |
Attached files to replicate this issue (main.jspx and TestBean.java)