Uploaded image for project: 'Shale'
  1. Shale
  2. SHALE-452

f:validator not mapped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.4
    • 1.0.5
    • Clay
    • None

    Description

      Raised at request of GVM..

      > I've hit a problem trying to set up a validator on an input text field.
      > Here's the HTML...
      >
      >
      >
      ><div class="content"
      > xmlns:t="http://myfaces.apache.org/tomahawk"
      > xmlns:h="http://java.sun.com/jsf/html"
      > xmlns:f="http://java.sun.com/jsf/core">
      >
      >
      >
      > ...
      >
      >
      > <h:inputText styleClass="x-large" size="20" maxlength="20"
      > value="#

      {@managed-bean-name.customer.user.username}

      "
      > id="username"
      > validator="#

      {@managed-bean-name.validateUsername}

      "
      > required="true" >
      >
      > <f:validator validatorId="com.scn.Regex" suppliedRegex="[A-Za-z0-9]*"
      > errorMessage="#

      {messages['customer.username_invalid_chars']}

      "
      >/> </h:inputText>
      >
      >
      >
      > And here's the error message....
      >
      >

      There are a couple issues here. The first issue is that the mapping logic is only looking for a "validator" and not a "f:validator". This one is a bug. Please log a JIRA ticket if you get a chance.

      Attachments

        Activity

          People

            gvanmatre@comcast.net Gary VanMatre
            ianp Ian Priest
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: