Yep. That was it. Patrick explained to me that OGNL 2.4.0 introduced MethodAccessor support which basically means that peek() no longer works the way it used to. However, you'll also find that
#set( $labelValue = $stack.findValue("getText('${tag.label}')") ) now works. -- Matt Ho Principal Indigo Egg, Inc. http://www.indigoegg.com/ > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Robert Carlens > Sent: Thursday, March 06, 2003 3:27 PM > To: [EMAIL PROTECTED] > Subject: Re: RE: RE: [OS-webwork] i18n problem with Tag lib > > I played around with the code, and found that $stack.findValue("peek()") > return "null". In order to get it to work I had to write > > #set( $labelValue = $stack.findValue("[0]").peek().getText($tag.label) ) > > This means that $stack.findValue("[0]") returns a CompoundRoot object > which in turn contains the Action. > > Hope this helps in locating the problem. > > /Robert > > -----Original Message----- > From: "Matt Ho" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: Thu, 6 Mar 2003 14:03:45 -0800 > Subject: RE: RE: [OS-webwork] i18n problem with Tag lib > > Yeah, it looks broken now. The problem appears to be that > $stack.findValue("peek()") no longer returns the top element off the > value stack. This might be an artifact of moving from OGNL 2.3.x to > OGNL 2.4.0. In any event, I'll check this out tonight and see if I > can't figure out what the scoop is. > > -- > Matt Ho > Principal > Indigo Egg, Inc. > http://www.indigoegg.com/ > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Robert Carlens > > Sent: Thursday, March 06, 2003 1:18 PM > > To: [EMAIL PROTECTED] > > Subject: Re: RE: [OS-webwork] i18n problem with Tag lib > > > > The action extends a "BaseAction" which in turn extends ActionSupport > so > > the getText method should be implemented. > > I had this working for webwork (latest from CVS) but I don't seem to > be > > able to get it to work with WW2. > > > > > > -----Original Message----- > > From: "Matt Ho" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Date: Thu, 6 Mar 2003 12:14:48 -0800 > > Subject: RE: [OS-webwork] i18n problem with Tag lib > > > > Doh ... I suck. I just reread the message :) > > > > Does your Action implement getText(String text) or does it extend > > ActionSupport? > > > > -- > > Matt Ho > > Principal > > Indigo Egg, Inc. > > http://www.indigoegg.com/ > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf > Of > > > Matt Ho > > > Sent: Thursday, March 06, 2003 11:48 AM > > > To: [EMAIL PROTECTED] > > > Subject: RE: [OS-webwork] i18n problem with Tag lib > > > > > > WW1 or WW2? > > > > > > -- > > > Matt Ho > > > Principal > > > Indigo Egg, Inc. > > > http://www.indigoegg.com/ > > > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] On > Behalf > > Of > > > > Robert Carlens > > > > Sent: Thursday, March 06, 2003 11:07 AM > > > > To: [EMAIL PROTECTED] > > > > Subject: [OS-webwork] i18n problem with Tag lib > > > > > > > > I'm trying out WW2 and I really like what I see. I have one > problem > > > though > > > > with the taglibs, I don't seem to get the i18n functionality to > > work. > > > I > > > > have looked through the code, but I can't figure out what's wrong. > > Am > > > I > > > > missing something. > > > > > > > > I have this tag: > > > > <ui:password label="password" name="password" size="25"/> > > > > > > > > >From what I've figured out by looking at the code in > > controlheader.vm > > > the > > > > label attribute should be looked up in the actions property file > and > > > > replaced by the value in the property file. However, this doesn't > > > happen, > > > > the label becomes the text "password" and not the value of that > key. > > > > > > > > I can't figure out what I'm doing wrong, Am I missing something? > > > > > > > > Any help appreciated! > > > > > > > > rgs, > > > > Robert > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: Etnus, makers of TotalView, The > > > > debugger > > > > for complex code. Debugging C/C++ programs can leave you feeling > > lost > > > and > > > > disoriented. TotalView can help you find your way. Available on > > major > > > UNIX > > > > and Linux platforms. Try it free. www.etnus.com > > > > _______________________________________________ > > > > Opensymphony-webwork mailing list > > > > [EMAIL PROTECTED] > > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Etnus, makers of TotalView, The > > > debugger > > > for complex code. Debugging C/C++ programs can leave you feeling > lost > > and > > > disoriented. TotalView can help you find your way. Available on > major > > UNIX > > > and Linux platforms. Try it free. www.etnus.com > > > _______________________________________________ > > > Opensymphony-webwork mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The > > debugger > > for complex code. Debugging C/C++ programs can leave you feeling lost > and > > disoriented. TotalView can help you find your way. Available on major > UNIX > > and Linux platforms. Try it free. www.etnus.com > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The > > debugger > > for complex code. Debugging C/C++ programs can leave you feeling lost > and > > disoriented. TotalView can help you find your way. Available on major > UNIX > > and Linux platforms. Try it free. www.etnus.com > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The > debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The > debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork