On Tue, Feb 12, 2019 at 10:01 AM mscoon <msc...@gmail.com> wrote: > Hi Ernesto, > > Yes, that is possible but it opens the route for lazy initialization > exceptions and such problems. > > Really, why is it so hard to send multiple component values with an ajax > request? Maybe an AjaxFormComponentUpdating behavior which can update > multiple components? >
You can send any payload with the Ajax request. To do it you need to override AjaxBehavior#updateAjaxAttributes() and use attributes.getExtraDynamicParameters().add("return myJsFunctionThatReturnsJSONObject()") myJsFunctionThatReturnsJSONObject is a function which you should implement and make visible in the DOM. Then in AjaxFormComponentUpdatingBehavior#onUpdate() you can use getRequest().getRequestParameters() to read the values. > > > On Mon, Feb 11, 2019 at 3:12 PM Ernesto Reinaldo Barreiro < > reier...@gmail.com> wrote: > > > create an smart LDM that goes to database only once and after that keeps > > value? > > >