Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Rickard Öberg
Jason Carreira wrote: Why don't you just go ahead and tell us what you see as drawbacks for this approach. Obviously if Patrick thought the drawbacks outweighed the benefits then he wouldn't be endorsing it. The only thing that is obvious is that the drawbacks Patrick *saw* did not outweigh the be

[OS-webwork] Explain Pull HMVC

2003-03-06 Thread Hariharan
Hi All Can any one explain the concepts of Pull HMVC implemented in WebWork.If u have any links of tutorials pls send it to me. -- P.Hariharan Sip Technologies & Exports Ltd., G4 Elnet Software City, Taramani Chennai -113 e-mail [EMAIL PROTECTED] Phone 22541473/74 Ext 314 ---

Re: [OS-webwork] CVS Access for Matt Ho

2003-03-06 Thread Erik Beeson
+1 Always nice to see someone on top of things and keeping everybody else motivated. Keep up the good work. --Erik On Thu, 6 Mar 2003, Patrick Lightbody wrote: > In the last few weeks Matt has been hounding me to get his UI taglibs in > place, and finally Jason did it because I'm just a slacker.

RE: [OS-webwork] CVS Access for Matt Ho

2003-03-06 Thread Jason Carreira
+1 Yes please! I can't keep up with Matt's stuff plus my own! :-) > -Original Message- > From: Patrick Lightbody [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 7:33 PM > To: os-ww > Subject: [OS-webwork] CVS Access for Matt Ho > > > In the last few weeks Matt has been houndi

[OS-webwork] CVS Access for Matt Ho

2003-03-06 Thread Patrick Lightbody
In the last few weeks Matt has been hounding me to get his UI taglibs in place, and finally Jason did it because I'm just a slacker. After finally going over the tags and the quality of the work, I must say that I'm very impressed. I'd like to propose that Matt be granted CVS access for the WebWork

RE: RE: RE: [OS-webwork] i18n problem with Tag lib

2003-03-06 Thread Matt Ho
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

Re: RE: RE: [OS-webwork] i18n problem with Tag lib

2003-03-06 Thread Robert Carlens
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

RE: RE: [OS-webwork] i18n problem with Tag lib

2003-03-06 Thread Matt Ho
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

Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Patrick Lightbody
Well, that was just an example. It's up to you to write your enablders (ConnectionAware vs DatabaseConnectionAware), so it's up to you to avoid that problem ;) -Pat - Original Message - From: "John Benediktsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 2:

RE: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread John Benediktsson
I could see a problem with name collision on your get/set methods. For example, how many types of "Connection" are there? Database, Socket, Proprietary, etc... John. -Original Message- From: Jason Carreira [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 1:19 PM To: [EMAIL PROT

Re: RE: [OS-webwork] i18n problem with Tag lib

2003-03-06 Thread Robert Carlens
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

RE: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > > Are there really no other drawbacks you can think of? Please try a > little harder. > > I can think of quite a few, but as I said, I wanted to get > your view first. > > /Rickard > Why don't you just go ahead

Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Rickard Öberg
Patrick Lightbody wrote: What are the drawbacks of this approach? /Rickard Not too many... I suppose the NPE problem could crop up.. It also makes your design a bit unclear to novices ("Where'd the Connection come from?"), but these are pretty minor. Are there really no other drawbacks you can thi

Re: [OS-webwork] Format a Date

2003-03-06 Thread boxed
> Does WW have built-in support for this - or do I have to format the Date > in the Action and let getModified() return a formatted String? I do this with a cusom tag I wrote. See attachment. Anders Hovmöller [EMAIL PROTECTED] http://boxed.killingar.net DateTag.java Description: Binary data

RE: [OS-webwork] getting at the index value in webwork:iterator

2003-03-06 Thread Rachel McConnell
Thanks, that's exactly the info i was looking for. Mind if I post this to the wiki? Rachel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of boxed Sent: Thursday, March 06, 2003 11:58 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] getting at the index

[OS-webwork] Format a Date

2003-03-06 Thread Anders Engström
Hi. Something tells me this is somewhere in the docs, but I can't find it =P I have an Action that have a method 'getModified() : java.util.Date'. I access this property in a JSP using . How can I specify the formatting of the Date? I can modify it somewhat by doing "ActionContext.setLocale(..)

Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Patrick Lightbody
> What are the drawbacks of this approach? > > /Rickard Not too many... I suppose the NPE problem could crop up.. It also makes your design a bit unclear to novices ("Where'd the Connection come from?"), but these are pretty minor. -Pat --- T

Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Patrick Lightbody
The only thing that might change (or be added) is Avalon support instead of our own simple implementation. Joe Walnes is planning to help me out with that endeavor one of these days. -Pat - Original Message - From: "Rob Rudin" <[EMAIL PROTECTED]> To: "Patrick Lightbody" <[EMAIL PROTECTED]

RE: [OS-webwork] i18n problem with Tag lib

2003-03-06 Thread Matt Ho
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 H

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Matt Ho
Here's a patch for AbstractJspTest. I added a normalize method that normalizes a string by first trimming it and then converting every group of 1 or more whitespace characters into a space. The normalized expected and actual strings are then compared. I agree with Jason on testing taglibs. The

Re: [OS-webwork] getting at the index value in webwork:iterator

2003-03-06 Thread Andrew Lombardi
Hi Rachel, Yes, use the status attribute of the iterator taglib and you can reference the current index value while looping. -a Rachel McConnell wrote: Hi all, I need to access the iterator index for a list i'm iterating over, using the webwork jsp taglib. Is there a way to access the curren

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Jason Carreira
That's what this does. The problem is that the files have one type of file ending, and the code is generating the other, probably because of my setting. > -Original Message- > From: Patrick Lightbody [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 2:53 PM > To: [EMAIL PROTECTE

Re: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Patrick Lightbody
Hmm, well maybe we can point them to special test files that are very simple? -Pat - Original Message - From: "Jason Carreira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 11:42 AM Subject: RE: [OS-webwork] WW 2.0 Tag libs > Well, it's nice to see that it g

Re: [OS-webwork] getting at the index value in webwork:iterator

2003-03-06 Thread boxed
> I need to access the iterator index for a list i'm iterating over, using > the webwork jsp taglib. Is there a way to access the current index > value from within the iterator tag? Of course. iterates over users and puts a webwork.view.taglib.IteratorStatus object into the page context. Readi

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Jason Carreira
Well, it's nice to see that it generating what you expect. Since this is basically ALL that the tags do, how else do you test them? > -Original Message- > From: Patrick Lightbody [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 2:36 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-

RE: [OS-webwork] i18n problem with Tag lib

2003-03-06 Thread Matt Ho
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

Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Patrick Lightbody
I don't really see this as much of a problem. You mostly just need to "trust" 3rd party libraries (such as XWork) to do the job correctly -- so you can just assume the container will always work. As long as you've done some integration testing, the resource (Connection) will never _not_ be passed i

Re: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Patrick Lightbody
I don't think unit tests should depend on the contents of the taglib text. Maybe we should cut the tests down to something simpler? -Pat - Original Message - From: "Jason Carreira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 11:27 AM Subject: RE: [OS-webwork

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Jason Carreira
I checked these in, but I'm still getting the test failures... I believe it's due to line endings. I saw a difference of "\r\n" vs. "\n" when I stepped through. It's probably because I have IDEA set on Unix line endings, but we should look at making it cross-platform for tests. > -Original Mes

Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Rickard Öberg
Rob Rudin wrote: I think one drawback can be that you have to do some extra null- checking. In the case of a connection, the class probably has a private instance of Connection, and when it needs to use the Connection, it might not have a guarantee that the Connection is not null - i.e. that set

[OS-webwork] i18n problem with Tag lib

2003-03-06 Thread Robert Carlens
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: >From what I've figured out by looking

[OS-webwork] getting at the index value in webwork:iterator

2003-03-06 Thread Rachel McConnell
Hi all, I need to access the iterator index for a list i'm iterating over, using the webwork jsp taglib. Is there a way to access the current index value from within the iterator tag? Alternately, if i put my list into the page context, i can iterate with raw java & a for(int i=0; ... ) loop, bu

RE: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Jason Carreira
> -Original Message- > From: Rob Rudin [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 1:23 PM > To: Rickard Öberg > Subject: Re: [OS-webwork] IoC Mini Tutorial [Was: > ParameterAware deprecation] > > > I think one drawback can be that you have to do some extra > null- che

Re: [OS-webwork] IoC Mini Tutorial [Was: ParameterAware deprecation]

2003-03-06 Thread Rob Rudin
I think one drawback can be that you have to do some extra null- checking. In the case of a connection, the class probably has a private instance of Connection, and when it needs to use the Connection, it might not have a guarantee that the Connection is not null - i.e. that setConnection has be

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Matt Ho
Here are the files that need to be replaced. The ComponentTag resolves issue ww-121 http://jira.opensymphony.com/secure/views/ViewIssue.jspa?key=WW-121 -- Matt Ho Principal Indigo Egg, Inc. http://www.indigoegg.com/ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMA

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Jason Carreira
I can't seem to get the attachments... Email them to me and I'll put them in. > -Original Message- > From: Matt Ho [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 3:20 AM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] WW 2.0 Tag libs > > > I've uploaded fixes for the uni

RE: [OS-webwork] ETA of WW 2.0

2003-03-06 Thread Jason Carreira
Wewbwork 2 is a combination of these 2, with Webwork 2.0 depending on Xwork. > -Original Message- > From: Kelvin Tan [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2003 4:36 AM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] ETA of WW 2.0 > > > Is it in the sandbox/webwork or

[OS-webwork] Help in FileUpload example

2003-03-06 Thread Hariharan
Hi I am having difficulty in understanding the FileUpload.jsp in which the following line checks for the condition how is the value for hasErrorMessages gets substituted in the expression and also in the following line the options for the select comes from FileUploadTest.get

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Cameron Braid
No worries.. We will just stick with ww1.x until it it stabilises -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rickard Öberg Sent: Thursday, 6 March 2003 6:45 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW 2.0 Tag libs Cameron Braid wrote: > I'

[OS-webwork] [Patch] Sorter.java

2003-03-06 Thread Christoph Kiehl
Hi, this is a patch against Sorter.java, that prevents a NullPointerException if findValue() returns null. Christoph begin 666 Sorter.java.patch [EMAIL PROTECTED](%-OPT*(" @(" @(" @(" @("\O M($=E="!V86QU92!F;W(@9FERhttps://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

[OS-webwork] [Patch] ServletDispatcher.java

2003-03-06 Thread Christoph Kiehl
Hi, this is a patch to better detect recursion while wrapping the request. The old version does not work if the servlet container also wraps the requests. Christoph begin 666 ServletDispatcher.java.patch [EMAIL PROTECTED](%-EPT*+2 @(" @(" @ M(')E='5R;B!R97%U97-T.PT*+2 @(" @('T-"BL@(" )("!I9B HP

Re: [OS-webwork] ETA of WW 2.0

2003-03-06 Thread Kelvin Tan
Is it in the sandbox/webwork or the sandbox/xwork or someplace else altogether? I've looked and these don't seem complete. Also, anywhere we can find a nightly build? Thanks. KT On Thu, 27 Feb 2003 01:19:23 -0800 (PST), Erik Beeson said: >>We'll be starting coding in a month or so - so I guess i

Re: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Rickard Öberg
Cameron Braid wrote: I'd start to use WW2 if I knew that there were only going to be minor modifications in interfaces, configuration etc... Any idea how stable these things are now ? I don't think it's a good idea to make declarations of how stable things are at this point. The interfaces could r

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Cameron Braid
I'd start to use WW2 if I knew that there were only going to be minor modifications in interfaces, configuration etc... Any idea how stable these things are now ? ..cam.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Lightbody Sent: Thursday, 6

RE: [OS-webwork] WW 2.0 Tag libs

2003-03-06 Thread Matt Ho
I've uploaded fixes for the unit tests into Jira. The strings that the velocity tags were validating against were incorrect. Here's a link to the bug. http://jira.opensymphony.com/secure/views/ViewIssue.jspa?key=WW-124 -- Matt Ho Principal Indigo Egg, Inc. http://www.indigoegg.com/ > -Ori