5 Replies Latest reply on Jan 30, 2013 6:18 AM by Nivedita Sharma

    Validation on Popup

    ankurmdh
      Hi All,

      Jdev Version : 11.1.1.6.0

      1.Have popup with inputText as EmailId.
      2.Added method validation for this attribute at EO to validate if proper Email id is entered.

      Issue:
      I need to show error message when user type in text and tabs out. I added autosubmit=true for input text. My method validation is getting called and returning proper boolean but error message is not displayed.


      jsff code:

      <af:inputText value="#{bindings.EmailNotificationDl.inputValue}"
      label="#{sprportalBundle.DAM_EMAIL_NOTIFICATION}"
      required="#{bindings.EmailNotificationDl.hints.mandatory}"
      columns="#{bindings.EmailNotificationDl.hints.displayWidth}"
      maximumLength="#{bindings.EmailNotificationDl.hints.precision}"
      shortDesc="#{bindings.EmailNotificationDl.hints.tooltip}"
      id="it21" autoSubmit="true">
      <f:validator binding="#{bindings.EmailNotificationDl.validator}"/>

      EO.xml

      <Attribute
      Name="EmailNotificationDl"
      Precision="255"
      ColumnName="EMAIL_NOTIFICATION_DL"
      SQLType="VARCHAR"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      TableName="SPR_PATCH_DETAILS"
      IsNotNull="true">
      <DesignTime>
      <Attr Name="_DisplaySize" Value="255"/>
      </DesignTime>
      <Properties>
      <SchemaBasedProperties>
      <DISPLAYWIDTH
      Value="50"/>
      </SchemaBasedProperties>
      </Properties>
      <validation:MethodValidationBean
      Name="EmailNotificationDl_Rule_0"
      ResId="EMAIL_INCORRECT"
      MethodName="validateEmailNotificationDl"/>
      </Attribute>



      Please suggest
      Ankur