富占位符无法在占位符中输入文本
问题描述:
这是富文本中的错误:占位符?富占位符无法在占位符中输入文本
<h:inputText id="input">
<rich:placeholder value="Type text here..." />
</h:inputText>
当我尝试输入与占位符相同的文本时,它消失。
http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=placeholder
键入文本输入占位符表明“在这里输入文字...” —它消失时离开输入和重新聚焦于它。 保留其他任何符号。
有什么解决方法吗?
答
使用不便,如:<rich:placeholder value="ex. Type text here..." />
或者不使用占位符。
实现的一个限制,为什么你需要输入占位符值? – Makhiel 2014-10-17 12:11:33
好的。我明白这一点。将使用像 –
user3310532
2014-10-31 21:32:32