<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
On Mon, 2006-03-20 at 09:45 -0500, Stephan Richter wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Saturday 04 March 2006 10:01, Thierry FLORAC wrote:</FONT>
<FONT COLOR="#000000">&gt; &nbsp;- define &quot;editform&quot; in browser's &quot;configure.zcml&quot; =&gt; probably bad !</FONT>

<FONT COLOR="#000000">If the &quot;for&quot; attribute differs from the &quot;schema&quot; attribute in the edit form, </FONT>
<FONT COLOR="#000000">the form will automatically look up an adapter from the context object </FONT>
<FONT COLOR="#000000">(implementing the &quot;for&quot; interface) to the interface specified in &quot;schema&quot;.</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
I tried to add the &quot;for&quot; attribute to my &quot;configure.zcml&quot; &lt;editform&gt; statement, but the problem I described in several previous post (between march 04 and march 07) remains :<BR>
 - on first &quot;read&quot; access to the form, annotations (a PersistentDict) are correctly defined<BR>
 - if trying to set values, modifications seems to be applied, but in fact they are lost when refreshing the form (they are probably just extracted from request) and the adapter setters are not called (as seen if printing to standard output).<BR>
<BR>
Actually, the only working way I found to update my annotations through my adapters is always to use &quot;form&quot; directives with the help of a support class using &quot;getData/setData&quot; methods which call the adapter directly...<BR>
<BR>
Any idea ?<BR>
Thierry<BR>
<BR>
</BODY>
<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.
</HTML>