[
https://jira.jboss.org/browse/GTNPORTAL-1288?page=com.atlassian.jira.plug...
]
Minh Hoang TO commented on GTNPORTAL-1288:
------------------------------------------
There is also a class cast exception when we need to find a workspace object via a
storageID referring to a Page
parent = session.findObjectById(ObjectType.CONTAINER, parentId);
My current hardcoded fix is to catch the ClassCastException. However, to solve the
fundamental problem here, we need to restructure the model of WorkspaceObject from MOP
project. There are 2 changes:
1. In ObjectType, the assignment PAGE = new ObjectType<Page>(Page.class) must become
PAGE = new ObjectType<Page>(Page.class, ObjectType.CONTAINER);
2. In Page, override inherited methods
the layout edition does not work correctly if drag a portlet out of a
container
-------------------------------------------------------------------------------
Key: GTNPORTAL-1288
URL:
https://jira.jboss.org/browse/GTNPORTAL-1288
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.1.0-CR01
Reporter: Trong Tran
Assignee: Minh Hoang TO
Fix For: 3.1.0-GA
Attachments: dragLayout.diff, exception.txt
Original Estimate: 4 hours
Remaining Estimate: 4 hours
Assume that the current page/site layout has a portlet A inner a container B. Then
- we go to edit the page/site layout
- drag the portlet A out of the container B
- CLick on Save button :
+ In page layout edition, there will a java.lang.ClassCastException exception (
attached exception.txt file )
+ In site layout edition, Save successfully but the portlet A will be removed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira