Hi,
For what I know, the access to the properties by JXPath relies on the getter
and setter methods. So if you read the code in UserBean.java you'll see:
public String[] getHobby()
{
return hobbies;
}
public void setHobby( String[] newHobbies )
{
hobbies = newHobbies;
}
And that's why is accesssed via /hobby.
Please, Ivelin or anyone else, correct me if I'm wrong.
Hope it helps.
-----Mensaje original-----
De: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 22 de noviembre de 2002 7:20
Para: '[EMAIL PROTECTED]'
Asunto: AW: XMLForm: dynamic content listbox
Hello,
I'm trying the same and did manage to create a dynamic list
of checkboxes from a database. But I still don't get it completely.
Where is the ref="/hobby" defined? I looked in the UserBean and the
userIdentity.xml, but found nothing. Can somebody give me a hint.
I would like to change this to one of my own variable names.
regards Lars
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>