Details

      Description

      In several of our features we have to extend the existing liferay Edit...Action (ex: EditEventAction) classes to add enhancments. When we do this we usually override the update...() method. Unfortunately this causes problems on adds because we don't have the eventId as it's created in the DB.

      My request is to either return the Liferay model object in these update methods or to add the newly created id to the request so that when extending it we don't have to re-query the DB to get the model object we need.

      What we Have:
      @Override
      protected void updateModelObject(ActionRequest actionRequest) throws Exception {
      logger.entry();
      super.updateModelObject(actionRequest);

      ModelObject model = findModelObject(...);

      What we need:
      @Override
      protected void updateModelObject(ActionRequest actionRequest) throws Exception {
      logger.entry();
      ModelObject model = super.updateModelObject(actionRequest);

      Unfortunately we can't use ModelEventListeners due to the fact that they run on a separate thread and we need data from the request/thread that doesn't exist there.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            bconoly Brett Conoly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package