Well, thank you for the responses on my previous posts. Another "difficult" question (for me :( )... Here is the code: #foreach($obj in $doc.getObjects("Movr.MediaHasPersonClass")) #if($context.action=='view') #set($personObj= $xwiki.getDocument($obj.getProperty('person').value).getObject("Movr.PersonClass")) ##link to person's page #set($personURL = $xwiki.getURL("$obj.getProperty('person').value")) <a href="$personURL">$personObj.firstName $personObj.lastName</a> #else ###inline ##ajax input suggest <input id="inputSuggest$velocityCount" name="inputSuggest" alt="Suggestions" type="text" /> $obj.person The question is the following one: I have an Ajax input suggest (which works just fine, it retrieves from the database the information I need), which is suppose to help me add another object of type PersonClass, by selecting from the ones that are already in the database. My class MediaHasPersonClass has a field person, of type DatabaseList, which initially had attached a Hibernate query to retrieve all the persons from the database and display them in a select. Now, I'm using this Ajax suggest so I would like to somehow tell xwiki that the person whom I selected from the suggest is the correspondent object (for instance, if I write $obj.person I get an xwiki rendered input with the name of a person from the database, and if I change the name and save it, the modifications will be kept). I would like to know how can I do that for my own input. I hope I explained somehow what I would like to know... Thanks. Evelina