On 02. Mär 2006 - 09:07:20, James Carman wrote:
| What error messages do you get on the query method?  Also, have you tried:

Well, actually it's a little bit difficult:

The error message is:
Unable to read OGNL expression '<parsed OGNL expression>' of [EMAIL PROTECTED]: 
PersonModel

In the page file I have

<component id="inputPerson" type="PropertySelection">
        <binding name="value" value="personId"/>
        <binding name="model" value="modelSource.PersonModel"/>
</component>
 
"modelSource" is provided by Hivemind to the main page class which
all other pages extend.

In ModelSource the following statement creates the list of persons: 
Person[] persons = _operations.getPersons();

_operations is of type Operations which reads like:
return (Person[]) _personDao.getAllPersons().toArray();

personDao:
return (List<Person>) getSession().createQuery("from Person").list();

| new ArrayList<Person>( getSession().createCriteria( Person.class ).list() );

I tried that - same problem :(

Sincerly,
  Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to