Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.1-core
-
None
Description
In the following Facelets example:
<tr:document xmlns:tr="http://myfaces.apache.org/trinidad">
<tr:form>
<tr:messages />
<tr:inputText required="true" simple="true"/>
<tr:commandLink text="foo"/>
</tr:form>
</tr:document>
... clicking the link will silently fail until a value is entered. If simple="false", you see the error message
appear. This is because the inline JS validation code just drops a message when there is no target
to display it.
We should do one of:
1. show these messages as JS alerts
2. show these messages in some other block of content,
picked perhaps arbitrarily (in tr:messages by default,
otherwise at the head of the page?)
3. blow off client-side validation altogether for those elements