Hi Mounir,

If I am not mistaken, you should call:
voteField.save(jParams); 

instead of:
Entry.setField (voteField);

As I have pointed out in a previous posting to this list, the code of the  
FormContentMapperHandlerTag.storeForm method is a very good example of how to 
update a field programmatically. The code can be found here:

http://svn.jahia.org/websvn/filedetails.php?repname=jahia&path=%2Fbranches%2FJAHIA-4-1-BRANCH%2Fsrc%2Fjava%2Forg%2Fjahia%2Ftaglibs%2Fform%2FFormContentMapperHandlerTag.java&rev=11321&sc=1

Max.

________________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mounir ZEKKAOUI
Sent: maandag 29 oktober 2007 16:31
To: [email protected]
Subject: [SPAM] - [template_list] Back office Jahia - Email found in subject

Hello everybody,

  

I want to change the field value "itemJvotes" 

  

  

<Content: declareField name = 'itemJvotes' title =' number of votes' type = 
'SmallText' /> 

  

  

I used the following line of code but to no avail! 

  

  

JahiaContainer entry = getContainer (entryId, jParams); 

JahiaField voteField = entry.getFieldByName ( "itemJvotes"). SetValue ( "New 
Value"); 

Entry.setField (voteField); 

Entry.setChanged (true); 

                         

Thank you in advance,
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list

Reply via email to