Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0-M3
    • Fix Version/s: 3.0-RC1
    • Component/s: None
    • Labels:
      None

      Description

      When I specify multiple values (like minlength, maxlength, pattern, etc.) for andromda.struts.view.field.format, bpm4struts (3.0M3) is generating validation for only one of the format values.

      validation.xml generated:
      <form name="signupSignUpSaveForm">
      <field property="username" depends="maxlength">
      <arg0 key="signup.sign.up.param.username" />
      <arg1 name="maxlength" key="$

      {var:maxlength}

      " resource="false"/>
      <var>
      <var-name>maxlength</var-name>
      <var-value>10</var-value>
      </var>
      </field>
      </form>

      Following is the relevant UML (note the minlength, maxlength,etc. formats mentioned )
      <UML:Parameter xmi.id='_e3e0334_1109181214167_831575_207' name='username'>
      <UML:Parameter.type>
      <UML:Classifier href='andromda-profile-3.0M3.xml.zip|_24400562_1076994099335_876795_42'>
      <XMI.extension xmi.extender='MagicDraw UML 8.0' xmi.extenderID='MagicDraw UML 8.0'>
      <referentPath xmi.value='datatype::String'/>
      </XMI.extension>
      </UML:Classifier>
      </UML:Parameter.type>
      <UML:ModelElement.taggedValue>
      <UML:TaggedValue xmi.id='_e3e0334_1109181212765_479650_206' name='@andromda.struts.view.field.type'>
      <UML:TaggedValue.dataValue>text</UML:TaggedValue.dataValue>
      <UML:TaggedValue.type>
      <UML:TagDefinition href='andromda-profile-3.0M3.xml.zip|_ecb034c_1085693728771_155851_74'>
      <XMI.extension xmi.extender='MagicDraw UML 8.0' xmi.extenderID='MagicDraw UML 8.0'>
      <referentPath xmi.value='org.andromda.profile::presentation::@andromda.struts.view.field.type'/>
      </XMI.extension>
      </UML:TagDefinition>
      </UML:TaggedValue.type>
      </UML:TaggedValue>
      <UML:TaggedValue xmi.id='_e3e0334_1109186552573_6929_236' name='@andromda.struts.view.field.format'>
      <UML:TaggedValue.dataValue>minlength 4</UML:TaggedValue.dataValue>
      <UML:TaggedValue.dataValue>maxlength 10</UML:TaggedValue.dataValue>
      <UML:TaggedValue.dataValue>pattern a-z*</UML:TaggedValue.dataValue>
      <UML:TaggedValue.type>
      <UML:TagDefinition href='andromda-profile-3.0M3.xml.zip|_8a70287_1079894132728_865469_25'>
      <XMI.extension xmi.extender='MagicDraw UML 8.0' xmi.extenderID='MagicDraw UML 8.0'>
      <referentPath xmi.value='org.andromda.profile::presentation::@andromda.struts.view.field.format'/>
      </XMI.extension>
      </UML:TagDefinition>
      </UML:TaggedValue.type>
      </UML:TaggedValue>

        Attachments

          Activity

            People

            • Assignee:
              overheat Plushnikov Michail
              Reporter:
              t_kishore Kishore
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: