Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1
    • Component/s: JavaScript
    • Labels:
      None
    • Environment:
      The latest 4.1 version.

      Description

      <component type="TextField" id="nameField">
      <binding value="message:name" name="displayName"/>
      <binding value="translator:string" name="translator"/>
      <binding value="ognl:entity.name" name="value"/>
      <binding name="validators" value="validators: required,maxLength=100"/>
      </component>
      <component type="TextField" id="endPicker1">
      <binding value="message:name" name="displayName"/>

      <binding value="ognl:entity.colors" name="value"/>
      <binding name="validators" value="validators:required,maxLength=100"/>
      </component>

      it works well.

      If I delete any reuired validator,it will submit to server.When only all validators includes required validator,it can show the dojo dialog.

        Activity

        Hide
        Jesse Kuhnert added a comment -

        I'm not able to reproduce this bug. Using various forms of with/without required validators my form still validates correctly on the client side.

        Do you have a full page spec that I can look at?

        Show
        Jesse Kuhnert added a comment - I'm not able to reproduce this bug. Using various forms of with/without required validators my form still validates correctly on the client side. Do you have a full page spec that I can look at?
        Hide
        Jesse Kuhnert added a comment -

        Only resolving as I've not recieved any feedback. Please feel free to post back with more results, but for now I'm unable to re-produce this.

        Show
        Jesse Kuhnert added a comment - Only resolving as I've not recieved any feedback. Please feel free to post back with more results, but for now I'm unable to re-produce this.
        Hide
        Jun Tsai added a comment -

        please change the page spec to :
        <component type="TextField" id="nameField">
        <binding value="message:name" name="displayName"/>
        <binding value="translator:string" name="translator"/>
        <binding value="ognl:entity.name" name="value"/>
        <binding name="validators" value="validators: required,maxLength=100"/>
        </component>
        <component type="TextField" id="endPicker1">
        <binding value="message:name" name="displayName"/>
        <binding value="ognl:entity.colors" name="value"/>
        <binding name="validators" value="validators:maxLength=100"/>
        </component>

        Tapestry can't show the dojo validation message dialog.

        Show
        Jun Tsai added a comment - please change the page spec to : <component type="TextField" id="nameField"> <binding value="message:name" name="displayName"/> <binding value="translator:string" name="translator"/> <binding value="ognl:entity.name" name="value"/> <binding name="validators" value="validators: required,maxLength=100"/> </component> <component type="TextField" id="endPicker1"> <binding value="message:name" name="displayName"/> <binding value="ognl:entity.colors" name="value"/> <binding name="validators" value="validators:maxLength=100"/> </component> Tapestry can't show the dojo validation message dialog.
        Hide
        Jun Tsai added a comment -

        In the dojo.validate.check

        if ( profile.required instanceof Array ) {

        When only one required validator,profile.required is object.

        Show
        Jun Tsai added a comment - In the dojo.validate.check if ( profile.required instanceof Array ) { When only one required validator,profile.required is object.
        Hide
        Jesse Kuhnert added a comment -

        This issue is now fixed, but I'm leaving this ticket open as I'd rather have the fix made to dojo directly.

        Show
        Jesse Kuhnert added a comment - This issue is now fixed, but I'm leaving this ticket open as I'd rather have the fix made to dojo directly.
        Hide
        Jesse Kuhnert added a comment -

        Fixed everywhere now.

        Show
        Jesse Kuhnert added a comment - Fixed everywhere now.

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Jun Tsai
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development