Registering Grails object marshallers - what is 'scope'?Binding JSON to nested Grails Domain ObjectsError in grails command objectGrails XML marshalling: change default “<list>” root element nameGrails - Disable automatic marshallingCan't get an implementation of Grails ObjectMarshaller<JSON> to workGrails JSON Marshalling Works after first running compileGrails databinding date formatGrails: Can you use create/save with Command Objects?JSON marshaller ignored when rendering object with child objectshow to use navigation api in grails 3.3.8

Transformation of random variables and joint distributions

Is XSS in canonical link possible?

Using a siddur to Daven from in a seforim store

Can I use my Chinese passport to enter China after I acquired another citizenship?

Drawing ramified coverings with tikz

What is the gram­mat­i­cal term for “‑ed” words like these?

Varistor? Purpose and principle

MAXDOP Settings for SQL Server 2014

How do I implement a file system driver driver in Linux?

Proof of Lemma: Every nonzero integer can be written as a product of primes

Difference between -| and |- in TikZ

How can "mimic phobia" be cured or prevented?

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

What is this type of notehead called?

THT: What is a squared annular “ring”?

Why do IPv6 unique local addresses have to have a /48 prefix?

Why is Arduino resetting while driving motors?

Should I install hardwood flooring or cabinets first?

Is it possible to use .desktop files to open local pdf files on specific pages with a browser?

Could solar power be utilized and substitute coal in the 19th Century

Does the Mind Blank spell prevent the target from being frightened?

Can a significant change in incentives void an employment contract?

A Permanent Norse Presence in America

Some numbers are more equivalent than others



Registering Grails object marshallers - what is 'scope'?


Binding JSON to nested Grails Domain ObjectsError in grails command objectGrails XML marshalling: change default “<list>” root element nameGrails - Disable automatic marshallingCan't get an implementation of Grails ObjectMarshaller<JSON> to workGrails JSON Marshalling Works after first running compileGrails databinding date formatGrails: Can you use create/save with Command Objects?JSON marshaller ignored when rendering object with child objectshow to use navigation api in grails 3.3.8













0















I have two different object marshallers for my Product domain class, one with much more complete information than the other. If I register, say, the full one in a controller action, am I right in thinking that that remains the current object marshaller for Product for any other uses, meaning I would have to explicitly choose the marshaller for every controller action where Products are to be returned in JSON form? I.e., there is no simple way of switching to a marshaller for a specific action and automatically reverting afterwards? This is a Grails 2.2.5 app, if that's relevant.










share|improve this question


























    0















    I have two different object marshallers for my Product domain class, one with much more complete information than the other. If I register, say, the full one in a controller action, am I right in thinking that that remains the current object marshaller for Product for any other uses, meaning I would have to explicitly choose the marshaller for every controller action where Products are to be returned in JSON form? I.e., there is no simple way of switching to a marshaller for a specific action and automatically reverting afterwards? This is a Grails 2.2.5 app, if that's relevant.










    share|improve this question
























      0












      0








      0








      I have two different object marshallers for my Product domain class, one with much more complete information than the other. If I register, say, the full one in a controller action, am I right in thinking that that remains the current object marshaller for Product for any other uses, meaning I would have to explicitly choose the marshaller for every controller action where Products are to be returned in JSON form? I.e., there is no simple way of switching to a marshaller for a specific action and automatically reverting afterwards? This is a Grails 2.2.5 app, if that's relevant.










      share|improve this question














      I have two different object marshallers for my Product domain class, one with much more complete information than the other. If I register, say, the full one in a controller action, am I right in thinking that that remains the current object marshaller for Product for any other uses, meaning I would have to explicitly choose the marshaller for every controller action where Products are to be returned in JSON form? I.e., there is no simple way of switching to a marshaller for a specific action and automatically reverting afterwards? This is a Grails 2.2.5 app, if that's relevant.







      grails grails-2.0






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 9:07









      John MooreJohn Moore

      1,35052044




      1,35052044






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55039873%2fregistering-grails-object-marshallers-what-is-scope%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55039873%2fregistering-grails-object-marshallers-what-is-scope%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Алба-Юлія

          Захаров Федір Захарович

          Гладіатор