Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 17046 invoked from network); 26 Jun 2006 02:41:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2006 02:41:11 -0000 Received: (qmail 89742 invoked by uid 500); 26 Jun 2006 02:41:09 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 89701 invoked by uid 500); 26 Jun 2006 02:41:08 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 89690 invoked by uid 99); 26 Jun 2006 02:41:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jun 2006 19:41:08 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MANY_EXCLAMATIONS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [206.190.53.30] (HELO smtp105.plus.mail.re2.yahoo.com) (206.190.53.30) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 25 Jun 2006 19:41:06 -0700 Received: (qmail 1632 invoked from network); 26 Jun 2006 02:40:45 -0000 Received: from unknown (HELO ?70.210.54.125?) (jmitchtx@70.210.54.125 with plain) by smtp105.plus.mail.re2.yahoo.com with SMTP; 26 Jun 2006 02:40:44 -0000 Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <22076670.1151066776241.JavaMail.jira@brutus> References: <22076670.1151066776241.JavaMail.jira@brutus> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8EBAAE04-EEFA-44E0-8A70-CEC25942EBB8@apache.org> Content-Transfer-Encoding: 7bit From: James Mitchell Subject: Re: [jira] Reopened: (STR-2887) TagUtils.instance is private final. Please allow to change the instance with a custom one! Maybe put it protected only! Date: Sun, 25 Jun 2006 22:40:34 -0400 To: dev@struts.apache.org X-Mailer: Apple Mail (2.750) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Oops, sorry. -- James Mitchell On Jun 23, 2006, at 8:46 AM, Wendy Smoak (JIRA) wrote: > [ http://issues.apache.org/struts/browse/STR-2887?page=all ] > > Wendy Smoak reopened STR-2887: > ------------------------------ > > > Reopening to set the fix version, closed issues can't be edited. > >> TagUtils.instance is private final. Please allow to change the >> instance with a custom one! Maybe put it protected only! >> --------------------------------------------------------------------- >> ---------------------------------------------------- >> >> Key: STR-2887 >> URL: http://issues.apache.org/struts/browse/STR-2887 >> Project: Struts Action 1 >> Type: Improvement > >> Components: Apps >> Versions: 1.2.9 >> Reporter: David Gagnon >> Priority: Trivial >> Fix For: 1.3.5 > >> >> Hi all, >> I'm running with struts 1.1 and I tried to migrate to 1.2.9 this >> morning. My biggest problem is that I needed to change the code >> base of my 1.1 to put new feature I needeed. One of them is that >> I introduced new scope like: window scope So I have >> ApplicationScope >> SessionScope >> WindowScope >> RequestScope >> PageScope. >> This allow me to have multiple browser windows on the same >> application and they not interfering. To do so I needed to patch >> the RequestUtil.lookup and now the TagUtils.lookup method. My >> problem is that there is no way in. The TagUtils defines an >> instance but it's a private final variable. So no way to plug in >> a new TagUtils classe in there?! For sure that would be a good >> feature for me :-) >> If the instance variable is at least protected and not final. It >> would be possible to create my new WindowScopeEnabledTagUtils >> class that inherit from tagUtils and change the instance for my >> new instance. That would have been great! Is that can be done ? >> Is there a reason why thing are like that? >> Have been away from the lastest version of struts and I have some >> catchup to do :-) >> Thanks for your help >> Best Regards >> /David >> public class TagUtils { >> /** >> * The Singleton instance. >> */ >> private static final TagUtils instance = new TagUtils(); > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the > administrators: > http://issues.apache.org/struts/secure/Administrators.jspa > - > For more information on JIRA, see: > http://www.atlassian.com/software/jira > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org