p:输入不会渲染值属性

时间:2017-02-17 16:58:32

标签: jsf primefaces

我有问题从primefaces渲染p:inputText。 他们在http://www.primefaces.org/showcase/ui/input/inplace.xhtml的演示正在发挥作用。如果我将其更改为我的要求,则会失败。

在我的.xhtml中,我有以下代码。第一部分将打印出给定的ipaddress为纯文本,

#{hostEntryManaged.selectedEntry.ipAddress}

但p:inputText的value属性保持空白。在最终的HTML中没什么可看的。

<h:outputLabel for="ipaddr" value="IP: " />
<p:inplace id="ipaddr" editor="true" >
    <p:inputText value="#{hostEntryManaged.selectedEntry.ipAddress}" required="true" label="text" />
</p:inplace>

我可以添加

value="#{hostEntryManaged.selectedEntry.ipAddress}"也发送到p:inplace。它工作正常,直到我点击该字段,它转到(所需)输入字段。

感觉<p:inputText..../>超出范围,因此无法访问我的bean。

但没有错误。

0 个答案:

没有答案
相关问题