3 Replies Latest reply on Jan 8, 2007 11:39 AM by norman.richards

    Improve the message example

    yoav200

      Hello,

      How can i add add and edit options to the mesages example ?

        • 1. Re: Improve the message example

          Look at the other examples for edit screens, or maybe just create a seam-gen application and look how the application is structured.

          • 2. Re: Improve the message example
            yoav200

            I'll be more specific,

            can i preformadd, update action directly on my @DataModelSelection object ?

            can I have something like this ?

             public void editTrip()
             {
             try
             {
             tripService.updateTripDetails(trip);
             trip=null;
             setResponseStatus(EDIT_TRIP_SUCCESS);
             }
             catch(Exception e)
             {
             logger.error("fail to update Trip",e);
             setResponseStatus(EDIT_TRIP_FAIL);
             }
             }
            


            when trip is define as a @DataModelSelection.
            for some reason i get "Error during model data update."
            i know that happen when trip is null.
            any suggestions ?

            • 3. Re: Improve the message example

              What code is giving that error?