我有两个带有percentageId_input_s1
和percentageId
ID的输入
输入我想设置默认值" 0"页面加载时
值{0)在percentageId_input_s1
中设置。点击后加载p:dialog
后
p:rowExpansion
未设置percentageId
值,但在p:inputText
id="percentageId" value="#{0}"
中使用percentageId
设置值时,任何人都可以告诉我
什么事情发生了?
请参阅以下代码:
abc.xhtml
<h:form>
<p:inputText
id="percentageId_input_s1" value="0"
size="4" maxlength="4"
onkeypress="reset_column('#{p:component('columnId_select_s1')}');">
<f:convertNumber integerOnly="true" type="number" />
</p:inputText>
</h:form>
// other inputs with there own forms
<h:form>
<h:link>
// this h:link open/show below p:dialog
</h:form>
<p:dialog>
<h:form>
<p:datatable>
<ajax event=toggle listener="#{someaction}">
// some columns
// using rowexpension p:rowExpansion
<p:rowExpansion>
<p:inputText
id="percentageId" value="0"
size="4" maxlength="4"
onkeypress="reset_column('#{p:component('columnId_select_s1')}');">
<f:convertNumber integerOnly="true" type="number" />
</p:inputText>
// all closing