使用 Option 标签,如何通过选择自动选择所有内容:Thymeleaf 和 spring MVC

问题描述

我正在学习 Thymeleaf 模板。我面临着一个问题。 我想在论坛上分享我遇到的问题,以便得到一些帮助。 我的问题如下: 我有一个带有选项标签的表单,它包括从“客户”列表中选择对象名称“客户”,我希望其他字段自动出现在我的

标签

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)