Hi Jochen, Thank you for the information.
My goal was to have few interdependent Combos on a page displayed from Dropwizard Mustache. Does it mean Server side rendering will not allow me to add client side event handling? Code works nicely if used without dropwizard integration. On Fri, Jun 26, 2020 at 4:28 PM Jochen Schalanda <[email protected]> wrote: > Hi Sachin, > > the Dropwizard Mustache View integration is a server-side rendering > technology but it looks like you're trying to render the template on the > client-side using a Javascript library. > > See https://www.dropwizard.io/en/latest/manual/views.html for how to use > the Dropwizard integration (server-side). > > Cheers, > Jochen > > > Sachin Nemade <[email protected]> hat am 26.06.2020 10:45 > geschrieben: > > > > > > Dropwizard Mustache's Render not woking. > > > > {{person.name}}{{lastname}} from java POJO working. but "hello > {{name}}" not working. > > > > Can we handle events, such as change in select using Dropwizard Mustache. > > > > > > <html> > > <head> > > <script src=" > https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js > "></script> > > > > </head> > > <body> > > <!-- calls getPerson().getName() and sanitizes it --> > > <h1>Hello, {{person.name}} {{lastname}}</h1> > > <div id="myTemplate">hello {{name}}</div> > > </body> > > <script src=" > https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js > "></script> > > <script type="text/javascript"> > > $(document).ready(function() { > > > > var myTemplate = $("#myTemplate").html(); > > console.log(myTemplate); > > var obj = { > > name: "sachin" > > }; > > > > var filledTemlate = Mustache.render(myTemplate, obj); > > console.log(filledTemlate); > > $("#myTemplate").html(filledTemlate); > > > > > > }); > > </script> > > </html> > > -- > > You received this message because you are subscribed to the Google > Groups "dropwizard-user" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/dropwizard-user/00511727-e9de-475a-965a-ad902d1f0163o%40googlegroups.com > ( > https://groups.google.com/d/msgid/dropwizard-user/00511727-e9de-475a-965a-ad902d1f0163o%40googlegroups.com?utm_medium=email&utm_source=footer > ). > > > > -- > You received this message because you are subscribed to the Google Groups > "dropwizard-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/dropwizard-user/864277921.16886.1593169112204%40office.mailbox.org > . > -- *Regards, Sachin N, (9833204992)* -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-user/CAJr_cKJNUd7NtsKYjCh9BQa__sBSzgqYFtTR0SPAphv-8kq4aA%40mail.gmail.com.
