lundi 11 janvier 2021

With the Option tag, how with a choice automatically select everything: Thymeleaf and spring MVC

I am learning the Thymeleaf template. And I am faced with a problem. I would like to share the problem I encounter with the forum in order to have some help. My problem is as follows: I have a form that has an option tag, which consists of selecting the object name "Customer" from a list of "Customer" and I would like the other fields to automatically appear in my

tags
<select class = "form-control selectpicker" th: field = "* {listClient}" id = "client">
    <option th: each = "client: $ {listClient}"
            th: value = "$ {customer.numberClient}"
            th: text = "$ {customer.name} + '' + $ {customer.firstname}">

        <p th: value = "$ {client.groupe}" th: text = "$ {client.groupe}" th: if = "$ {client.id} == $ {listClient.get (client.id)} "> </p>
        <p th: text = "$ {customer.address}"> </p>
        <p th: text = "$ {client.ville}"> </p>
        <p th: text = "$ {client.telephone}"> </p>
        <p th: text = "$ {client.email}"> </p>
    </option>
</select>

Aucun commentaire:

Enregistrer un commentaire