code: public void saveFavoriteList(final List<String> clientIds) {
  
          CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
              /**
               * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
               */
              @Override
              public void execute() {
  
                  getContainerpageService().saveFavoriteList(clientIds, CmsCoreProvider.get().getUri(), this);
              }
  
              /**
               * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
               */
              @Override
              protected void onResponse(Void result) {
  
                  CmsNotification.get().send(
                      Type.NORMAL,
                      Messages.get().key(Messages.GUI_NOTIFICATION_FAVORITES_SAVED_0));
              }
          };
          action.execute();
      }
docs: Saves the favorite list.<p>
  
  @param clientIds the client id's of the list's elements