默认值不在p:inputtext n jsf2中设置

时间:2014-03-27 13:06:25

标签: jsf-2 xhtml el

我有两个带有percentageId_input_s1percentageId ID的输入 输入我想设置默认值" 0"页面加载时 值{0)在percentageId_input_s1中设置。点击后加载p:dialogp: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

0 个答案:

没有答案