multi-valued andromda.struts.view.field.format
----------------------------------------------

         Key: BPM-138
         URL: http://thecla.homeftp.net:8380/jira/browse/BPM-138
     Project: Bpm4Struts Cartridge
        Type: Improvement
    Versions: 3.0 M3    
    Reporter: Kishore
 Assigned to: Wouter Zoons 
    Priority: Minor


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>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://thecla.homeftp.net:8380/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to