Creation of Formulars

Asked

Viewed 65 times

0

My problem is this: I have a class for example client she via own name, surname and Cpf and a list of objects of the address class. The address class will only have the field patio and city. My doubt is the following how I create a form to fill in the customer’s data and go to another screen to insert the addresses and then send with only 1 Ubmit all this data? da para Be done with Thymeleaf or need javascript?

  • Javascript... If you were Java EE you would suggest using a Stateful EJB (or Flowscoped bean). To do this you will have to keep the form status in the backend in some way (that survives the page change, and.g another request). I have no experience with spring-boot, but I believe your best output is javascript in this case.

  • You can check out this site tbm, it might help you: https://www.mkyong.com/spring-mvc/spring-mvc-handling-multipage-forms-with-abstractwizardformcontrollercontroller/

1 answer

0

You can be using a tab inside a form. See example below with bootstrap

       <div class="tab-content">

            <div class="tab-pane active" id="tabela1">

                <div class="row">
                    <div class="form-group  col-lg-12">
                    </div>
                </div>

            </div>

            <div class="tab-pane" id="tabela2">
                <div class="row">

                </div>

                <div class="row">

                </div>  
            </div>
        </div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.