Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
354 views
in Technique[技术] by (71.8m points)

java - 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>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...