https://htmx.org logo
Join Discord
Powered by
# java-htmx
  • p

    proud-librarian-99598

    05/12/2023, 9:06 AM
    Next week is Spring I/O and there is a BOF session on SSR with Spring. Pretty sure we will be talking about htmx as well πŸ™‚ https://2023.springio.net/sessions/server-side-rendering-ssr-with-spring-bof/
  • p

    polite-beard-73787

    05/12/2023, 10:08 AM
    Thanks for sharing. BTW, website is ugly. Reminds me of snowflakes and marquee elements everywhere at the beginning of 2000's - the same distracting and useless animations.
  • e

    echoing-photographer-26491

    05/12/2023, 5:37 PM
    Oh.. hi @proud-librarian-99598 πŸ‘‹ 🀣
  • l

    late-king-98305

    05/16/2023, 8:31 PM
    BTW - thanks for this. Went down the whole documentation rabbit hole, then read about JTE templates - now I think I may try to build something with this thing in Kotlin (In all my "spare time"... I remember when I had that!).
  • m

    mysterious-toddler-20573

    05/16/2023, 8:40 PM
    πŸ‘
  • g

    gorgeous-airport-54386

    05/16/2023, 11:14 PM
    htmx runs on over 3 million websites.
  • s

    shy-zebra-22292

    05/17/2023, 3:22 AM
    So JHTMX? πŸ˜†
  • b

    bored-motorcycle-32322

    05/20/2023, 7:47 AM
    Been playing around with htmx. Love that this little todo app is basically entirely powered by a single 150~ line java file. Using javalin + j2html + pico.css.
  • b

    bored-motorcycle-32322

    05/20/2023, 7:50 AM
    https://cdn.discordapp.com/attachments/940241072959922176/1109387668988641310/todo-app.mp4
  • r

    refined-pillow-25368

    05/23/2023, 6:14 AM
    This is really interesting! I'm working on a htmx parser next that tightly integrates with Spring Boot. This could be something to integrate into this parser
  • r

    refined-pillow-25368

    05/23/2023, 6:16 AM
    I'm trying to get a Laravel Livewire experience by including a parser that runs after the normal template engine that translates a custom attribute to htmx attributes.
  • r

    refined-pillow-25368

    05/23/2023, 9:55 AM
    @proud-librarian-99598 https://discord.com/channels/725789699527933952/725789747212976259/1104448965002412112 I think this would be a really good usecase for a ViewComponent Integration
  • r

    refined-pillow-25368

    05/23/2023, 9:57 AM
    You could create Endpoints based on the FormDTO and some Java Validation Annotations
  • c

    cuddly-keyboard-70746

    05/23/2023, 3:19 PM
    What do you mean with parser?
  • r

    refined-pillow-25368

    05/23/2023, 8:38 PM
    https://twitter.com/tschuehly/status/1661108056510308381
  • r

    refined-pillow-25368

    05/23/2023, 8:38 PM
    This thing πŸ˜„
  • r

    refined-pillow-25368

    05/23/2023, 8:39 PM
    https://github.com/tschuehly/spring-view-component/blob/dev/thymeleaf/src/test/kotlin/de/tschuehly/spring/viewcomponent/thymeleaf/application/web/action/ActionViewComponent.kt
  • r

    refined-pillow-25368

    05/23/2023, 8:39 PM
    Here's the repo
  • r

    refined-pillow-25368

    05/24/2023, 1:54 PM
    I've created an RFC for the Integration between Spring and HTMX
  • r

    refined-pillow-25368

    05/24/2023, 1:54 PM
    https://github.com/tschuehly/spring-view-component/discussions/6
  • r

    refined-pillow-25368

    05/24/2023, 1:55 PM
    If you guys have good Ideas please join the discussion
  • h

    high-pencil-36972

    05/26/2023, 9:56 AM
    Hello everyone, I’m developing a Springboot application with Thymeleaf+HTMX. My issue is when I click on a button, my htmx content keep the old model.addAttribute(β€œusers”,users); object. Help please.
  • b

    brainy-easter-9476

    05/26/2023, 10:30 AM
    I think the information is currently not sufficient to help, where in the process is the problem? Does the correct request get sent if you click the button? What is the response of the server and is that what you expect? Both points can be investigated in your browser's network tab.
  • h

    high-pencil-36972

    05/26/2023, 11:55 AM
    My issue is. The controller with @HxRequest, i get html content with success from controller "users:: user-list". But the model.addAttribute("users",users), the user's data can be replaced into front-end.
  • h

    high-pencil-36972

    05/26/2023, 11:58 AM
    My question is. With model.addAttribute("users",users), how can remove model.getAttribute("users") ... ?
  • p

    proud-librarian-99598

    05/26/2023, 6:15 PM
    If you change data on the frontend, you need to send it to the backend as well. So the next render knows about it.
  • e

    echoing-photographer-26491

    05/26/2023, 6:23 PM
    Which makes sense, allows the state to be persisted. No more "it was only in Javascript so now i have to fill in all the fields again"
  • e

    echoing-photographer-26491

    05/26/2023, 6:33 PM
    So folks... how would you handle styling in a Microfrontend architecture style? My gut feeling is to only return HTML (structure) from the independant services and let the "wrapper" frontend do the styling. Doing this would allow the packaging of thymeleaf "fragments", which.. when parameterized...act like traditional components? However... that is not how microfrontends usually work (they include some styling which is.. hopefully.. overwritable). Any remarks on the "just the structure" approach?
  • h

    high-pencil-36972

    05/26/2023, 8:42 PM
    Thanks it resolved. There is not error.
  • Hi everyone and especially wim deblauwe
    t

    thankful-school-42650

    05/28/2023, 3:04 PM
    Hi everyone and especially @proud-librarian-99598 , Thanks for your work and your spring conf. I developed an open source app with Spring Boot + Thymeleaf. I have this kind of method :
    Copy code
    @GetMapping("/search")
        public String search(final Model model,
                             @RequestParam(required = false) final String query,
                             @RequestParam(defaultValue = "1") final int page)
    In that method, I use a service to retreive data from a service and add it to page. I want to get the results throw HTMX now and I plan to add a new search method with the
    @HxRequest
    annotation and named
    searchWithHTMX
    I don't know if it's the good way to do it as it seems my two methods
    search
    and
    searchWithHTMX
    will have, the same body content ? (retrieve data from service and configure model..)... Should I also have two templates ?
    • 1
    • 1