Spring Boot Many-Page Pagination using Thymeleaf and Bootstrap

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

Комментарии • 53

  • @furkatlapasov5346
    @furkatlapasov5346 3 года назад +3

    Impressed, amazing.
    Would love to look at the corresponding service and controller method's in detail

  • @ktn4
    @ktn4 4 года назад +2

    This is it, thanks bro Nam!
    I have to spend 20 minutes to add 120 products to test kakaka.

    • @CodeJava
      @CodeJava  4 года назад

      well done, so is it working well?

    • @ktn4
      @ktn4 4 года назад +1

      @@CodeJava It's working well bro Nam. I feel ashamed, I don't think this could be kinda easy, I'm too lazy to think about a solution. Thank you for fulfilling me bro Nam :D

    • @CodeJava
      @CodeJava  4 года назад

      Even I was also surprise when I'm done. It's simpler than I thought. But that's the most simple solution I think (I love simple things that work).

  • @matheusfraga5178
    @matheusfraga5178 Год назад

    Beautiful work! Thanks!

  • @asad-mp7lr
    @asad-mp7lr 4 года назад +1

    Chào anh, lúc trước e có theo dõi kênh của anh 1 thời gian sau đó ko học spring boot nữa nên k có xem vid tiếp. Em mới học lại mà tầng suất a ra video dày đặt quá em học ko kịp với tầng suất ra vid của anh luôn :))) Các bài giảng của anh khá hay, tư duy database e cũng thấy khác với em, đáng học hỏi lắm ạ. Em cảm ơn anh, hy vọng anh ra nhiều video về Spring nữa!

    • @CodeJava
      @CodeJava  4 года назад +2

      chào em, cảm ơn em đã động viên anh. Enjoy learning and happy coding :)

  • @permishin
    @permishin 2 года назад

    very good video!👍👍

  • @AmbreenDarjat
    @AmbreenDarjat 3 года назад

    This is one of the best solutions that I have seen. But my application has more than 3000 records, and per page I can show only 10. It's getting tricky on how to handle that many pages...

    • @CodeJava
      @CodeJava  3 года назад +1

      I don't understand your concern. The solution in this video is for any number of records.

    • @gustavobearzi7936
      @gustavobearzi7936 Год назад

      ​@@CodeJava Ty. Totally agree, u only need change the number concerning ur convenience. That's all.

  • @mrwhammer
    @mrwhammer Год назад

    so what about when i refresh the webpage? would it go back to the first page? do i need to use local storage to maintain whatever i am at?

    • @CodeJava
      @CodeJava  Год назад

      Since the paging params kept in the URL, when you refresh the page it will reload the same URL. However it depends on the data in the database. If there are changes then the items will be different, though the page number remains unchanged in URL.

    • @mrwhammer
      @mrwhammer Год назад

      @@CodeJava is there a way for you to provide the source code without using udemy? i dont want to pay

    • @mrwhammer
      @mrwhammer Год назад

      @@CodeJava i dont havea a database

    • @CodeJava
      @CodeJava  Год назад

      sorry, there's no way.

    • @mrwhammer
      @mrwhammer Год назад

      @@CodeJava what do you mean? No way what

  • @chapumix
    @chapumix 3 года назад +1

    Friend, thank you very much for the explanation but I would like to learn more, what is your course called on udemy?

    • @CodeJava
      @CodeJava  3 года назад

      here is my course: www.udemy.com/course/spring-boot-e-commerce-ultimate/

  • @elkhanismayilov
    @elkhanismayilov 2 года назад

    Sir can you explain me where you getting "pageUrlPrefix" and "pageUrlPostfix"? Which urls represented in this case?

    • @CodeJava
      @CodeJava  2 года назад +1

      It's up to your application. I can be something like /users/page/

    • @elkhanismayilov
      @elkhanismayilov 2 года назад

      @@CodeJava thank you so much i solved my problem yesterday evening look up your tutorial. Again many many thankful☺

  • @vijaykumar-wu9jc
    @vijaykumar-wu9jc 4 года назад +2

    where is code pls provide code link in comment section

  • @triplek477
    @triplek477 3 года назад +2

    I think u left = sign… if u click 18 it will not show correctly.
    Under totalPages > 10 conditions , you should check currentPages = totalPages - 4
    Am I right?

    • @magicaryeh
      @magicaryeh 2 года назад

      Thank you so much for your help! I tested with my database application and paging did not appear for totalPages - 4, and currentPage >= totalPages - 4 worked correctly.

  • @apurvbhardwaj8720
    @apurvbhardwaj8720 4 года назад

    hii i want to ask you i have made a springboot project in our system and i want to deploy this project on external tomcat server of another system which give me error of 404 ? but when i deploy in our external server it runs the project.what should i do?

    • @CodeJava
      @CodeJava  4 года назад

      I think you need to examine the server's logs and also debug the application to understand what is really going on.

  • @junwei7744
    @junwei7744 2 года назад

    Having bugs when my total page is 40 and page 36 doesnt show the pagination only show previous and next bar,. same goes to when your total page is 20 and error occured at page 16

    • @CodeJava
      @CodeJava  2 года назад

      Thanks for reporting bugs. Can you share the error in detail?

    • @junwei7744
      @junwei7744 2 года назад

      @@CodeJava the error will not show the page number in the pagination, only shows previous and next. the number of page in pagination gets hidden

    • @CodeJava
      @CodeJava  2 года назад

      @@junwei7744 does it work if total pages < 20?

    • @junwei7744
      @junwei7744 2 года назад

      @@CodeJava nope sir. i tried with totalpages of 14 and the pagination gets hidden at page 10 also. same bugs happening

    • @netwboat
      @netwboat Год назад +1

      this wil fix ur issue

  • @trinhxuantruongk15hl19
    @trinhxuantruongk15hl19 2 года назад +1

    thanks for tutarial

  • @antonalmishev1784
    @antonalmishev1784 Год назад

    Is this project in Udemy , and witch course ?

    • @CodeJava
      @CodeJava  Год назад

      in this course: www.udemy.com/course/spring-boot-e-commerce-ultimate

  • @hauau3779
    @hauau3779 3 года назад

    Great!! Con cảm ơn chú

    • @CodeJava
      @CodeJava  3 года назад

      con bao nhiêu tuổi mà cảm ơn chú vậy?

  • @subramanianchenniappan4059
    @subramanianchenniappan4059 4 года назад +1

    Thanks bro

  • @nikhilbendre8953
    @nikhilbendre8953 3 года назад

    Hello sir, how to check email already exists from database please do one video on that topic..

    • @CodeJava
      @CodeJava  3 года назад

      Kindly check this video: ruclips.net/video/8IcTBJ7D0Ek/видео.html

  • @craftbd4470
    @craftbd4470 4 года назад

    please share full code link

    • @CodeJava
      @CodeJava  4 года назад

      full code will be available in my course on Udemy.

  • @KalmaxOrion
    @KalmaxOrion 4 года назад

    can I copy your code?

  • @adamfijak6568
    @adamfijak6568 Месяц назад

    zrobi ci taki błąd i człowiek szuka godzinami czy ma dobrze przepisane a facet po prostu zrobił błąd. Po co się chwalić błędnym kodem na filmie ???????????????????????????????????