Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [krazo-dev] MVC and Hotwire

Hi Gregor,

I finally found some time to test the app. Works absolutely fine. And the app really "feels" like a _javascript_ SPA. Great work!

So far it looks like this approach works with plain Krazo and without any support on the server side, is that correct?

I'm not very familiar with the inner workings of Hotwire, but as far as I understand, Hotwire basically submits the form via and XHR request and then just replaces parts of the DOM with the content received!? It also includes a special request header "Turbo-Frame" which seems to reference the part of the HTML document which needs to be updated. So I guess the server _could_ limit the data sent back to the client to only this part of the HTML document. But it looks like it also works without this!?

Thanks for working on this. I'm looking forward to the blog post. ;-)

Christian


Am Mo., 19. Apr. 2021 um 08:35 Uhr schrieb Christian Kaltepoth <christian@xxxxxxxxxxxx>:
Hi Gregor,

great news! Thanks for working on this. I hope to find some time in the next days to have a deeper look at the POC.

Christian

Am So., 18. Apr. 2021 um 20:40 Uhr schrieb Gregor Tudan <gregor@xxxxxxxx>:

Hi!

I’ve started to work on a POC-Project on MVC with Hotwire.

https://github.com/gtudan/Jakarta-MVC-Hotwire

A few rough edges aside, things went pretty well with basic features like navigation, form-submission and lazy loading. The demo has pretty much the same experience as a single page app. Not a single full page reload to be found ;-)

There are a few more features I would like to try out, especially streaming - that one might be a little tricky as it uses Websockets and JAX-RS won’t help here.

I’m planning to write a blog post about it. Maybe we can discuss how to implement some of the missing features once I’ve progressed a bit further?

Hope you enjoy the rest of your weekend!
Gregor

_______________________________________________
krazo-dev mailing list
krazo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/krazo-dev


--


--

Back to the top