Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-94

Inline JS validation fails silently when no location is available for a message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1-core
    • 1.0.2-core
    • Components
    • 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

      Attachments

        Activity

          People

            dannyjrobinson Danny Robinson
            adamwiner Adam Winer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: