1

我正在使用 EL 值填充选择元素并遇到问题

<form:select path="district" cssClass="inputText">
    <option value="" title='${SELECT_DISTRICT}'>
       <c:out value="--${SELECT_DISTRICT}--"></c:out>
    </option>
    <form:options items="${districtList}"/>
</form:select>

当我在 hdiv-config.xml 中更改配置机密性 =“真”时,它会给出选择值作为从“0”开始的递增数字,同时根据需要使机密性 =“假”填充值。

4

1 回答 1

0

I do not understand exactly what is your issue, because it seems you are describing the HDIV confidentiality behaviour. I mean, when the confidentiality is activated HDIV hides real values (using instead relative values such as:0,1,2..) and when the confidentiality is deactivated render real values.

Could you give please more information about the issue?

Anyway when you use select tag (I suppose you are using Spring MVC tags) you should use also spring mvc option tag:

<form:select path="username">
    <form:option value="j2ee" label="j2ee" />
</form:select>

See: Spring MVC sample

Regards,

Roberto Velasco (HDIV team)

于 2015-02-11T09:26:49.933 回答