cancel
Showing results for 
Search instead for 
Did you mean: 

How can i use alphanumeric qualifiers in items.xml and code generation?

Former Member
0 Kudos

Hi Folks!

I've created an Item-Type of an extended Product. For the attribute qualifier, i want to use alphanumeric qualifiers. For example:

attribute generate="true" qualifier="attr4" type="localized:java.lang.String" ...

Due to building, following error ocures on codegeneration: IllegalStateException: invalid attribute qualifier: ....attr?4(localized:java.lang.String):...::YAttributeDescriptor[myextension-items.xml:9(AttributeTagListener)][PROPERTY]!!

How can i solve this issue? Unfortunately,I have to use alphanumeric qualiferies.

Thanks! Cemal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you for your immediate answer!

In my Items.xml i'm using attr4, nevertheless, in the console error output states attr?4. Here is my items.xml:

     <itemtype autocreate="true" code="MyProduct" extends="Product"
         generate="true" jaloclass="de.myextension.jalo.MyProduct">
         <attributes>
             <attribute generate="true" qualifier="attr4"
                 type="localized:java.lang.String">
                 <modifiers initial="false" read="true" search="true"
                     write="false" />
                 <persistence type="property" />
             </attribute>

Thanks! Cemal

Former Member
0 Kudos

Please check the encoding scheme of your XML file. It seems some special character is getting generated automatically. Have you copy pasted

attr4

from somewhere?
Former Member
0 Kudos

Hi!

Indeed - there was a special character between 'attr' and '4' - invisible - strange!

Thank you! - It works!

Cemal

Former Member
0 Kudos

Alphanumeric qualifiers are already permittable. Please check if you are correctly using attr4. It seems you are using attr?4 as qualifier.

Former Member
0 Kudos

Hi, see below please.