gpt4 book ai didi

java - JSF Trinidad SelectBooleanCheckbox 不带标签

转载 作者:行者123 更新时间:2023-12-01 13:40:30 50 4
gpt4 key购买 nike

使用 Trinidad selectBooleanCheckbox 组件如下:

<tr:selectBooleanCheckbox text="FIRST" id="firstType" value="#{bean.type}"/>

渲染 html 是:

<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0" summary=""
style="padding: 0px" class="af_selectBooleanCheckbox"
id="idtable">
<tbody>
<tr>
<td nowrap="" class="af_selectBooleanCheckbox_label"><span
style="display: none;" id="firstType::icon"><a
class="AFErrorIconStyle" title="Error"
name="_msgAnc_firstType">X</a>
</span>
</td>

<td valign="top" nowrap="" class="AFContentCell">
<span id="firstType__xc_c"
class="af_selectBooleanCheckbox_content"><input
type="checkbox" checked="" value="t" name="first"
id="firstType"><label for="firstType">FIRST</label>
</span>
</td>
</tr>

<tr>
<td></td>

<td class="AFComponentMessageCell">
<span style="margin-left: 21px; padding: 0px"
class="OraInlineErrorText" id="first::msg"></span>
</td>
</tr>
</tbody>
</table>
</td>

我的问题是:

我没有使用标签,而是使用文本属性(因为我想先渲染复选框,然后渲染文本 - 当我使用标签时,标签显示在复选框之前)

所以我想要的是渲染的html根本不会渲染标签的部分因为它占据了一些我无法删除的地方..

请帮忙。

最佳答案

我找到了问题的解决方案

我刚刚添加了属性 simple="true" ,它从 html 中删除了消息和标签根据Trinidad API for selectBooleanCheckbox .

新代码:

<tr:selectBooleanCheckbox text="FIRST" id="firstType" value="#{bean.type}" simple="true"/>

关于java - JSF Trinidad SelectBooleanCheckbox 不带标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20841160/

50 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com