struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4954) xml-validation fails since struts 2.5.17
Date Fri, 24 Aug 2018 06:14:00 GMT

     [ https://issues.apache.org/jira/browse/WW-4954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-4954:
------------------------------
    Description: 
xml-Validation of "s:optiontransferselect" and "s:inputtransferselect" fails since version
2.5.17.

Until version 2.5.16 xml-validation works fine.

Example :

inputtransferselect:

{code:xml}
 <s:inputtransferselect
                                 label="%\{getText('adresse.email')}"
                                 name="kuAnschrift.kontaktMittel.eingabeEmailAdresse"
                                 list="kuAnschrift.kontaktMittel.eingabeEmailAdresse"
                                 id="eingabeEmailAdresseKuAnschrift"
                                 cssClass="inputoptionselect"
                                 addLabel="%\{getText('add')}"
                                 removeLabel="%\{getText('remove')}"
                                 removeAllLabel="%\{getText('removeAll')}"
                                 buttonCssClass="navibutton"
                                 allowUpDown="false"
                                 requiredLabel="true"
                                 tooltip="%\{getText('tooltip.adresse.email')}"
                                 tooltipIconPath="/images/question.gif"
                         />
{code}

{code}
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.3//EN"
        "../../../../xwork-validator-1.0.3.dtd">
 <validators>

....
        <field name="kuAnschrift.kontaktMittel.eingabeEmailAdresse">
           <field-validator type="fieldexpression">
               <param name="expression">
                   <![CDATA[ kuAnschrift.kontaktMittel.eingabeEmailAdresse.size()
> 0 ]]>
               </param>
               <message key="mindestens eine Email" />
           </field-validator>
           <field-validator type="email">
                <message key="emailfalsch" />
           </field-validator>
        </field>  
 ....
 </validators>
{code}

optiontransferselect:

{code:xml}
<s:fielderror fieldName="selectedIdListe" />    
<s:optiontransferselect
        id="idListe"
        label="%\{getText('pk.klasse.gebiet')}"
        name="idListe"
        leftTitle="%\{getText('produkt.ag.links')}"
        rightTitle="%\{getText('produkt.ag.rechts')}"
        list="%\{#session.listeLinks}"
        listKey="id"
        listValue="anzeige"
        multiple="true"
        size="15"
        cssClass="input_text"
        requiredLabel="true" 
    
        buttonCssClass="navibutton"
        allowSelectAll="false"
        allowUpDownOnLeft="false"
        allowUpDownOnRight="false"
        allowAddAllToLeft="false"
        allowAddAllToRight="false"
        addToLeftLabel="%\{getText('remove')}"
        addToRightLabel="%\{getText('add')}"

        doubleList="%\{#session.listeRechts}"
        doubleListKey="id"
        doubleListValue="anzeige"
        doubleName="selectedIdListe"
        doubleSize="15"
        doubleCssClass="input_text"
/>
{code}

I hope You can helb

Best regards
 Siegfried Fechner
  

  was:
xml-Validation of "s:optiontransferselect" and "s:inputtransferselect" fails since version
2.5.17.

Until version 2.5.16 xml-validation works fine.

Example :

inputtransferselect:

 <s:inputtransferselect
                                 label="%\{getText('adresse.email')}"
                                 name="kuAnschrift.kontaktMittel.eingabeEmailAdresse"
                                 list="kuAnschrift.kontaktMittel.eingabeEmailAdresse"
                                 id="eingabeEmailAdresseKuAnschrift"
                                 cssClass="inputoptionselect"
                                 addLabel="%\{getText('add')}"
                                 removeLabel="%\{getText('remove')}"
                                 removeAllLabel="%\{getText('removeAll')}"
                                 buttonCssClass="navibutton"
                                 allowUpDown="false"
                                 requiredLabel="true"
                                 tooltip="%\{getText('tooltip.adresse.email')}"
                                 tooltipIconPath="/images/question.gif"
                         />

---------------------------

<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.3//EN"
        "../../../../xwork-validator-1.0.3.dtd">
 <validators>

....
        <field name="kuAnschrift.kontaktMittel.eingabeEmailAdresse">
           <field-validator type="fieldexpression">
               <param name="expression">
                   <![CDATA[ kuAnschrift.kontaktMittel.eingabeEmailAdresse.size()
> 0 ]]>
               </param>
               <message key="mindestens eine Email" />
           </field-validator>
           <field-validator type="email">
                <message key="emailfalsch" />
           </field-validator>
        </field>  
 ....
 </validators>

--------------

optiontransferselect:

<s:fielderror fieldName="selectedIdListe" />    
<s:optiontransferselect
        id="idListe"
        label="%\{getText('pk.klasse.gebiet')}"
        name="idListe"
        leftTitle="%\{getText('produkt.ag.links')}"
        rightTitle="%\{getText('produkt.ag.rechts')}"
        list="%\{#session.listeLinks}"
        listKey="id"
        listValue="anzeige"
        multiple="true"
        size="15"
        cssClass="input_text"
        requiredLabel="true" 
    
        buttonCssClass="navibutton"
        allowSelectAll="false"
        allowUpDownOnLeft="false"
        allowUpDownOnRight="false"
        allowAddAllToLeft="false"
        allowAddAllToRight="false"
        addToLeftLabel="%\{getText('remove')}"
        addToRightLabel="%\{getText('add')}"

        doubleList="%\{#session.listeRechts}"
        doubleListKey="id"
        doubleListValue="anzeige"
        doubleName="selectedIdListe"
        doubleSize="15"
        doubleCssClass="input_text"
/>

I hope You can helb

Best regards
 Siegfried Fechner
  


> xml-validation fails since struts 2.5.17
> ----------------------------------------
>
>                 Key: WW-4954
>                 URL: https://issues.apache.org/jira/browse/WW-4954
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.5.17
>            Reporter: Fechner
>            Priority: Major
>
> xml-Validation of "s:optiontransferselect" and "s:inputtransferselect" fails since version
2.5.17.
> Until version 2.5.16 xml-validation works fine.
> Example :
> inputtransferselect:
> {code:xml}
>  <s:inputtransferselect
>                                  label="%\{getText('adresse.email')}"
>                                  name="kuAnschrift.kontaktMittel.eingabeEmailAdresse"
>                                  list="kuAnschrift.kontaktMittel.eingabeEmailAdresse"
>                                  id="eingabeEmailAdresseKuAnschrift"
>                                  cssClass="inputoptionselect"
>                                  addLabel="%\{getText('add')}"
>                                  removeLabel="%\{getText('remove')}"
>                                  removeAllLabel="%\{getText('removeAll')}"
>                                  buttonCssClass="navibutton"
>                                  allowUpDown="false"
>                                  requiredLabel="true"
>                                  tooltip="%\{getText('tooltip.adresse.email')}"
>                                  tooltipIconPath="/images/question.gif"
>                          />
> {code}
> {code}
> <!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.3//EN"
>         "../../../../xwork-validator-1.0.3.dtd">
>  <validators>
> ....
>         <field name="kuAnschrift.kontaktMittel.eingabeEmailAdresse">
>            <field-validator type="fieldexpression">
>                <param name="expression">
>                    <![CDATA[ kuAnschrift.kontaktMittel.eingabeEmailAdresse.size()
> 0 ]]>
>                </param>
>                <message key="mindestens eine Email" />
>            </field-validator>
>            <field-validator type="email">
>                 <message key="emailfalsch" />
>            </field-validator>
>         </field>  
>  ....
>  </validators>
> {code}
> optiontransferselect:
> {code:xml}
> <s:fielderror fieldName="selectedIdListe" />    
> <s:optiontransferselect
>         id="idListe"
>         label="%\{getText('pk.klasse.gebiet')}"
>         name="idListe"
>         leftTitle="%\{getText('produkt.ag.links')}"
>         rightTitle="%\{getText('produkt.ag.rechts')}"
>         list="%\{#session.listeLinks}"
>         listKey="id"
>         listValue="anzeige"
>         multiple="true"
>         size="15"
>         cssClass="input_text"
>         requiredLabel="true" 
>     
>         buttonCssClass="navibutton"
>         allowSelectAll="false"
>         allowUpDownOnLeft="false"
>         allowUpDownOnRight="false"
>         allowAddAllToLeft="false"
>         allowAddAllToRight="false"
>         addToLeftLabel="%\{getText('remove')}"
>         addToRightLabel="%\{getText('add')}"
>         doubleList="%\{#session.listeRechts}"
>         doubleListKey="id"
>         doubleListValue="anzeige"
>         doubleName="selectedIdListe"
>         doubleSize="15"
>         doubleCssClass="input_text"
> />
> {code}
> I hope You can helb
> Best regards
>  Siegfried Fechner
>   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message