Re: Default includeParams value, was: Re: [S2] and Integer lists

2008-09-06 Thread Jeromy Evans
Dave Newton wrote: The default value defines this behavior--you told it what to do implicitly by not changing it. Barring disagreement from others I'm changing the default to "none" as other people have also had an problem reading the documentation, and personally, I also think the default is

Re: Default includeParams value, was: Re: [S2] and Integer lists

2008-09-06 Thread Dave Newton
As I was chastised and called a 12-year old for taking this off the list, I'll post it to the list as well. Somehow that seems a little backwards, but whatever. -- Taken off-list. --- On Sat, 9/6/08, Lyallex wrote: > Is this suppose[d] to make me feel bad[?] > I couldn't care less what you thi

Re: Default includeParams value, was: Re: [S2] and Integer lists

2008-09-06 Thread Lyallex
Is this suppose to make me feel bad. I couldn't care less what you think quite frankly. Like I say, it's good to know this will change. Lyallex 2008/9/6 Dave Newton <[EMAIL PROTECTED]>: > --- On Sat, 9/6/08, Lyallex wrote: >> Um, I didn't "have a problem reading the documentation" at all. >> I

Re: Default includeParams value, was: Re: [S2] and Integer lists

2008-09-06 Thread Dave Newton
--- On Sat, 9/6/08, Lyallex wrote: > Um, I didn't "have a problem reading the documentation" at all. > I just didn't read that bit. Oh, okay. It's like a third of the page in the 2.0.9 docs, including the snippet for changing the default, but I'll see if there's a way to make it even more promi

Re: Default includeParams value, was: Re: [S2] and Integer lists

2008-09-06 Thread stanlick
I must add that the documentation is seemingly a mash-up of varying struts 2 versions (<2.1 vs >=2.1) and somewhat obtuse. I think with marked differences in implementation, the docs should be more clearly delineated. RTFM is fine when it exists, is complete and is accurate. Imagine the evolutio

Re: Default includeParams value, was: Re: [S2] and Integer lists

2008-09-06 Thread Lyallex
... as other people have also had an problem reading the documentation, and personally, I also think the default is counter-intuitive. Um, I didn't "have a problem reading the documentation" at all. I just didn't read that bit. But it's good to know that this will change. Lyallex > > Dave > >

Default includeParams value, was: Re: [S2] and Integer lists

2008-09-06 Thread Dave Newton
--- On Sat, 9/6/08, Lyallex wrote: > Instead of assuming I need to tell the tags what I want > them to do I now assume I have to tell them what I don't > want them to do ... The default value defines this behavior--you told it what to do implicitly by not changing it. Barring disagreement from

Re: [S2] and Integer lists

2008-09-06 Thread Lyallex
2008/9/6 Jeromy Evans <[EMAIL PROTECTED]>: > Lyallex wrote: >> >> I'm starting to feel that way about Struts2, ... > > So, I guess you didn't notice the url tag has includeContext (default true) > and includeParams (default false) attributes. Er well actually Jeromy according to http://struts.apac

Re: [S2] and Integer lists

2008-09-06 Thread Jeromy Evans
Lyallex wrote: I'm starting to feel that way about Struts2, the other day I wanted to add some params to a url .. lo and behold the framework automatically appended all the params available on the action to the URL ... bloody madness. I ended up turning this ludicrous 'feature' off and doing it

Re: [S2] and Integer lists

2008-09-06 Thread Lyallex
2008/9/5 stanlick <[EMAIL PROTECTED]>: > > Should it be referred to as intelligent? I seriously think these crazy S2 > tags are causing new Struts 2 users more pain than they are worth. > Well I have to agree with you here. Leaving stuff off is not really intuitive is it. I use Struts2 because

Re: [S2] and Integer lists

2008-09-05 Thread Dave Newton
--- On Fri, 9/5/08, stanlick wrote: > If getting one of these tags to work requires either > leaving an attribute off It's a list of non-composite objects. Why should the select tag require a non-required attribute that can't provide any useful information? Dave

Re: [S2] and Integer lists

2008-09-05 Thread stanlick
If getting one of these tags to work requires either leaving an attribute off or intValue() or %{intValue()} Should it be referred to as intelligent? I seriously think these crazy S2 tags are causing new Struts 2 users more pain than they are worth. Lyallex wrote: > > 2008/9/5 L

Re: [S2] and Integer lists

2008-09-05 Thread Lyallex
2008/9/5 Lukasz Lenart <[EMAIL PROTECTED]>: >> > listKey="intValue" listValue="intValue" required="true"/> ... > > or don't specify listKey and listValue Dave and Lukasz Thanks, it works, no idea how just yet, it must be those 'intelligent defaults' I keep reading about ... Lyallex

Re: [S2] and Integer lists

2008-09-05 Thread Lukasz Lenart
> listKey="intValue" listValue="intValue" required="true"/> Try intValue() or %{intValue()} or don't specify listKey and listValue Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [S2] and Integer lists

2008-09-05 Thread Dave Newton
--- On Fri, 9/5/08, Lyallex wrote: > it's exposed to the ValueStack in the action (List > years ...) and I know it's populated and I want to do this > > listKey="intValue" listValue="intValue" required="true"/> > > but of course it doesn't work, I've tried all sorts > of things without luck (th

[S2] and Integer lists

2008-09-05 Thread Lyallex
Hi I have a form It requires the user select year and month of birth I have a little class Month that has getters and setters for monthNo and monthName This works perfectly when the months list is exposed to the ValueStack in the action ( List months ...) I also have a List of Integers, it's