You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Arnaud MERGEY <am...@sunopsis.com> on 2006/05/31 10:20:11 UTC
Array attribute in af:region
Hi,
Is it possible to define array attribute in region-metadata.xml ?
I'have tried this
<attribute>
<attribute-name>objectInstances</attribute-name>
<attribute-class>demo.MyType[]</attribute-class>
<attribute-extension>
<required>true</required>
</attribute-extension>
</attribute>
And I have java.lang.ClassNotFoundException: demo.MyType[]
thanks for help.
Arnaud
Re: Array attribute in af:region
Posted by Arnaud MERGEY <am...@sunopsis.com>.
Hi Matt
thanks for reply
It is what I'have done, I have wrapped my array into a Class, and it works.
Arnaud
Matt Cooper a écrit :
> Hi Arnaud,
>
> I have not tried this myself but was thinking you might want to try
> specifying just "demo.MyType" in the attribute-class and instead in your
> implementation of demo.MyType, have it extend java.util.ArrayList or some
> other type of collection to suite your needs.
>
> Regards,
> Matt
>
> On 5/31/06, Arnaud MERGEY <am...@sunopsis.com> wrote:
>>
>> Hi,
>> Is it possible to define array attribute in region-metadata.xml ?
>>
>> I'have tried this
>> <attribute>
>> <attribute-name>objectInstances</attribute-name>
>> <attribute-class>demo.MyType[]</attribute-class>
>> <attribute-extension>
>> <required>true</required>
>> </attribute-extension>
>> </attribute>
>>
>> And I have java.lang.ClassNotFoundException: demo.MyType[]
>>
>> thanks for help.
>> Arnaud
>>
>>
>
Re: Array attribute in af:region
Posted by Matt Cooper <ma...@gmail.com>.
Hi Arnaud,
I have not tried this myself but was thinking you might want to try
specifying just "demo.MyType" in the attribute-class and instead in your
implementation of demo.MyType, have it extend java.util.ArrayList or some
other type of collection to suite your needs.
Regards,
Matt
On 5/31/06, Arnaud MERGEY <am...@sunopsis.com> wrote:
>
> Hi,
> Is it possible to define array attribute in region-metadata.xml ?
>
> I'have tried this
> <attribute>
> <attribute-name>objectInstances</attribute-name>
> <attribute-class>demo.MyType[]</attribute-class>
> <attribute-extension>
> <required>true</required>
> </attribute-extension>
> </attribute>
>
> And I have java.lang.ClassNotFoundException: demo.MyType[]
>
> thanks for help.
> Arnaud
>
>