Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 14613 invoked from network); 13 May 2004 21:33:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 May 2004 21:33:28 -0000 Received: (qmail 95955 invoked by uid 500); 13 May 2004 21:33:43 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 95793 invoked by uid 500); 13 May 2004 21:33:41 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 95543 invoked by uid 98); 13 May 2004 21:33:38 -0000 Received: from anonymous@nagoya.betaversion.org by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(192.18.33.10):. Processed in 0.270187 secs); 13 May 2004 21:33:38 -0000 X-Qmail-Scanner-Mail-From: anonymous@nagoya.betaversion.org via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(192.18.33.10):. Processed in 0.270187 secs) Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by hermes.apache.org with SMTP; 13 May 2004 21:33:38 -0000 Received: (qmail 1168 invoked by uid 50); 13 May 2004 21:34:03 -0000 Date: 13 May 2004 21:34:03 -0000 Message-ID: <20040513213403.1167.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 28954] - Lang based Enum's don't persist X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=28954 Lang based Enum's don't persist ------- Additional Comments From rdonkin@apache.org 2004-05-13 21:34 ------- cheers eric as promised in my list post, here's a specific (rather than general) solution. the new read stuff uses the idea of ActionMappings. an ActionMapping manages the binding of a complete sub-tree rooted at an element (in other words, the xml fragment wrapped by the element). you could map the enums reasonably easily by using a custom stateful ActionMapping and a specialised ActionMappingStrategy. the strategy just substitutes your custom ActionMapping (for the standard one) whenever the enum mapping is required. you set it on the ReadConfiguration. i don't really have time to create an example right now but this seems like one which would be useful for documentation so let me know if you want to go down this route and you're struggling because i might be able to find time to knock something together... --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org