public void saveGroupcontainer(
        final CmsGroupContainer groupContainer,
        final CmsGroupContainerElementPanel groupContainerElement) {

        if (getGroupcontainer() != null) {
            CmsRpcAction<CmsGroupContainerSaveResult> action = new CmsRpcAction<CmsGroupContainerSaveResult>() {

                /**
                 * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
                 */
                @Override
                public void execute() {

                    start(0, true);
                    getContainerpageService().saveGroupContainer(
                        getData().getRpcContext(),
                        getData().getDetailId(),
                        getRequestParams(),
                        groupContainer,
                        getPageState(),
                        getLocale(),
                        this);
                }

                /**
                 * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
                 */
                @Override
                protected void onResponse(CmsGroupContainerSaveResult saveResult) {

                    stop(false);
                    Map<String, CmsContainerElementData> elementData = saveResult.getElementData();
                    m_elements.putAll(elementData);
                    try {
                        replaceContainerElement(groupContainerElement, elementData.get(groupContainerElement.getId()));
                    } catch (Exception e) {
                        CmsDebugLog.getInstance().printLine("Error replacing group container element");
                    }
                    addToRecentList(groupContainerElement.getId(), null);
                    CmsNotification.get().send(
                        Type.NORMAL,
                        Messages.get().key(Messages.GUI_NOTIFICATION_GROUP_CONTAINER_SAVED_0));
                    List<CmsRemovedElementStatus> removedElements = saveResult.getRemovedElements();
                    for (CmsRemovedElementStatus removedElement : removedElements) {
                        askWhetherRemovedElementShouldBeDeleted(removedElement);
                    }

                }
            };
            action.execute();

        }
    }
public void saveGroupcontainer ( final CmsGroupContainer groupContainer , final CmsGroupContainerElementPanel groupContainerElement ) { if ( getGroupcontainer ( ) != null ) { CmsRpcAction < CmsGroupContainerSaveResult > action = new CmsRpcAction < CmsGroupContainerSaveResult > ( ) { @ Override public void execute ( ) { start ( 0 , true ) ; getContainerpageService ( ) . saveGroupContainer ( getData ( ) . getRpcContext ( ) , getData ( ) . getDetailId ( ) , getRequestParams ( ) , groupContainer , getPageState ( ) , getLocale ( ) , this ) ; } @ Override protected void onResponse ( CmsGroupContainerSaveResult saveResult ) { stop ( false ) ; Map < String , CmsContainerElementData > elementData = saveResult . getElementData ( ) ; m_elements . putAll ( elementData ) ; try { replaceContainerElement ( groupContainerElement , elementData . get ( groupContainerElement . getId ( ) ) ) ; } catch ( Exception e ) { CmsDebugLog . getInstance ( ) . printLine ( "Error replacing group container element" ) ; } addToRecentList ( groupContainerElement . getId ( ) , null ) ; CmsNotification . get ( ) . send ( Type . NORMAL , Messages . get ( ) . key ( Messages . GUI_NOTIFICATION_GROUP_CONTAINER_SAVED_0 ) ) ; List < CmsRemovedElementStatus > removedElements = saveResult . getRemovedElements ( ) ; for ( CmsRemovedElementStatus removedElement : removedElements ) { askWhetherRemovedElementShouldBeDeleted ( removedElement ) ; } } } ; action . execute ( ) ; } }
Saves the group-container.<p>

@param groupContainer the group-container data to save
@param groupContainerElement the group-container widget