[Webwork-devel] Webwork 1.0.3 / CVS taglib totally broken?
Brought to you by:
baldree,
rickardoberg
From: Mike Cannon-B. <mi...@at...> - 2002-05-23 06:08:01
|
I'm trying to what out what changes have occurred recently, but the taglib in CVS is currently broken and not backward compatible. I think it's to do with the recent release() movements etc. Values in correct containers (tested in both Orion and Resin) no longer get reset! Ie textfield: text = "foo" ... Jsp ... textfield: text = "foo" (this should be "" as the value in the stack is null, but the tag still has the old value because it is no longer cleared) I think this manifests itself in a number of places. I'm betting (investigating the exact cause now) that this is because you're relying on release() being called everytime the tag is executed. AFAIK (from memory I submitted a fix for this a while ago and the same error has crept in again) this is NOT what the specification specifies (I haven't got it with me) - this is how poor containers (Tomcrap) implement it. release() is called by the container when it pleases, to release resources the tag is holding (the only time it must be called is before a GC I seem to recall). If you want to _reset_ values you should do this at the end of doEndTag(). I'll try to fix this and submit patches but I suggest a rollback to previous source (as it would be easier!). Any idea why this was changed? It worked perfectly for me before. Maybe I should have just paid more attention on the devel list, or maybe I'm just v. tired ;) -mike Mike Cannon-Brookes mi...@at... ATLASSIAN - Your J2EE Expert Partner -------------------------------------------------------- > Brilliant Software - http://www.atlassian.com/software > Legendary Services - http://www.atlassian.com/support |