Ian Bicking wrote:

The problem is you are using mutable forms, and the forms are stored in a module global and keyed to these dynamic names (like "form1"). When you restart the AppServer there may be people with reference to forms that no longer exist.

Just looked at how formIDs were generated:


def getName():
    global nameCount, nameCountLock
    nameCountLock.acquire()
    name = 'form%i' % nameCount
    nameCount = nameCount + 1
    nameCountLock.release()
    return name

So if I read this correctly, if form names are not explicitly assigned, then the name a form has will depend on when it was first instantiated.

If one has two different forms fA in servlet sA, and fB in servlet sB, then if servlet sA is instantiated before sB, form fA will have formID = form1, and form fB will have formID = form2.

If, on a restart, servlet sB is instantiated but sA is not, then form fB will now have formID = form1, and form2 will not exists in the global space.

So, if this is correct, FFK is mighty sensitive to servlet instantiation order. The immediate workaround is to assign formIDs in a manner that is not instantiation order sensitive. E.g., use the absolute path of the servlet as the formID. Or, assign names to forms explicitly.

Is this correct?

...Edmund.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to