Re: PropertyModel expression for collection object

2010-11-30 Thread hemilshah

Hi,

Thanks for the reply. 
Does the rule stated in the link apply for collection of type Set also as
the link is only referring to List or Array collection type ? Unfortunately,
applying the same on the Set tyoe is not working. Also converting from Set
to List is not possible. It gives the following exception - 

No get method defined for class: class
org.hibernate.collection.PersistentSet expression: 0 

Please suggest.

Regards,
Hemil
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PropertyModel-expression-for-collection-object-tp3063675p3064986.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



PropertyModel expression for collection object

2010-11-29 Thread hemilshah

Hi,

I have a collection object in a class. I want to retrieve the property value
using PropertyModel for the object. Please suggest. 

Consider - 

class A {
 Set objA = new HashSet();
}

class B {
 B b = new B();
}

i tried using expression like A[0].b as expression but it fails giving error
like  no get method defined for class: class
org.hibernate.collection.PersistentSet expression: 0].

Both the above classes have public setter and getter methods.

Please suggest.

Thanks.
Regards,
Hemil
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PropertyModel-expression-for-collection-object-tp3063675p3063675.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: PropertyModel expression for collection object

2010-11-29 Thread Alexander Monakhov
Hello.

See this link for property expression language:
https://cwiki.apache.org/WICKET/property-expression-language.html

 property.index: If the property is a List or Array then the second 
 property can be used as a index on that list/array
 like this: 'mylist.0'.

Best regards, Alexander.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org