掲示板
"requiredMessage"-Tag not working?
11年前 に Andreas Ra によって更新されました。
"requiredMessage"-Tag not working?
New Member 投稿: 2 参加年月日: 12/09/20 最新の投稿
Hi everybody,
the "requiredMessage"-Tag doesn't seem to work for inputText. When i submit the form, nothing happens.
Here the Html-Code
Greetings,
Andi
the "requiredMessage"-Tag doesn't seem to work for inputText. When i submit the form, nothing happens.
Here the Html-Code
<h:form>
<h:inputtext value="#{userBean.name}" required="true" requiredMessage="please enter a name" />
<h:commandbutton action="#{userBean.addUser()}" value="Bestaetigen" />
</h:form>
Greetings,
Andi
11年前 に Neil Griffin によって更新されました。
RE: "requiredMessage"-Tag not working?
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
I would recommend that you replace the line with h:inputText with the following:
<h:inputtext [b]id="userName" [ b] value="#{userBean.name}" required="true" requiredMessage="please enter a name" />
[b]<h:message for="userName" />[/b]
11年前 に Andreas Ra によって更新されました。
RE: "requiredMessage"-Tag not working?
New Member 投稿: 2 参加年月日: 12/09/20 最新の投稿
Thx and sorry for the dumb question !!
11年前 に Neil Griffin によって更新されました。
RE: "requiredMessage"-Tag not working?
Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
No worries, thanks for using Liferay Faces.