Ok I've got it.
First the API documentation (
http://docs.joomla.org/API16:JForm/setValue) is slightly wrong.
It says that the prototype of the function is :
Code: Select all
public function setValue($field, $value, $group = '_default')
BUT in the joomla/form/form.php file the prototype is:
Code: Select all
public function setValue($name, $group = null, $value = null)
The arguments order is different.
Next, I therefore modified my code as follow:
Code: Select all
$this->form->setValue('title', 'details', 'some value');
'details' is the name of the fieldset wich contains the title field, but setValue doesn't work either.
So, either I don't understand what $group means or there's a bug somewhere in the setValue function.
Finally I modified my code again :
Code: Select all
$this->form->setValue('title', null, 'some value');
and that's works !
(at last).
I don't know if the setValue gonna be modified in the next Joomla's updates but
it worth to keep an eye on it.