[
https://jira.jboss.org/browse/GTNPORTAL-1288?page=com.atlassian.jira.plug...
]
Minh Hoang TO commented on GTNPORTAL-1288:
------------------------------------------
if (parentId != null)
{
// Get the new parent
UIContainer parent = session.findObjectById(ObjectType.CONTAINER,
parentId);
// Perform the move
parent.getComponents().add(dstChild);
//
changes.add(new ModelChange.Move(dst.getObjectId(), parentId,
dstChildId));
// julien : we do not need to create an update operation
// as later the update operation will be created when the object
// will be processed
}
}
In Mapper, line 802, there is a missing case where the new parent 's ObjectType is no
longer UIContainer, but Page. That lead to classcast exception while converting JCR Node
to
MOP object
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
Environment:
Reporter: Trong Tran
Assignee: Minh Hoang TO
Fix For: 3.1.0-GA
Attachments: exception.txt
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