proud-librarian-99598
05/12/2023, 9:06 AMpolite-beard-73787
05/12/2023, 10:08 AMechoing-photographer-26491
05/12/2023, 5:37 PMlate-king-98305
05/16/2023, 8:31 PMmysterious-toddler-20573
05/16/2023, 8:40 PMshy-zebra-22292
05/17/2023, 3:22 AMbored-motorcycle-32322
05/20/2023, 7:47 AMbored-motorcycle-32322
05/20/2023, 7:50 AMrefined-pillow-25368
05/23/2023, 6:14 AMrefined-pillow-25368
05/23/2023, 6:16 AMrefined-pillow-25368
05/23/2023, 9:55 AMrefined-pillow-25368
05/23/2023, 9:57 AMcuddly-keyboard-70746
05/23/2023, 3:19 PMrefined-pillow-25368
05/23/2023, 8:38 PMrefined-pillow-25368
05/23/2023, 8:38 PMrefined-pillow-25368
05/23/2023, 8:39 PMrefined-pillow-25368
05/24/2023, 1:54 PMrefined-pillow-25368
05/24/2023, 1:54 PMrefined-pillow-25368
05/24/2023, 1:55 PMbrainy-easter-9476
05/26/2023, 10:30 AMhigh-pencil-36972
05/26/2023, 11:55 AMhigh-pencil-36972
05/26/2023, 11:58 AMproud-librarian-99598
05/26/2023, 6:15 PMechoing-photographer-26491
05/26/2023, 6:23 PMechoing-photographer-26491
05/26/2023, 6:33 PMhigh-pencil-36972
05/26/2023, 8:42 PMthankful-school-42650
05/28/2023, 3:04 PM@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 ?