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
Attached files to replicate this issue (main.jspx and TestBean.java)