Re: Action inheritance and value automatic injection failure

2012-05-29 Thread Łukasz Lenart
2012/5/29 Dionis Argiri : > In case, when I have some JSP, that's shared with different pages. I don't > want to make two copies of it. If some value is not set, then I get OGNL > error and observe it in logs, that "value was not injected". As a potential > workaround I tried to create public void

Re: Action inheritance and value automatic injection failure

2012-05-29 Thread Dionis Argiri
re using Spring. > > If you use Spring injection via an xml file, you must use inheritance: > > > > > depends-on="baseAction"> > > > > depends-on="baseAction,itemDetails"> > > > Cheers, > J. >

Re: Action inheritance and value automatic injection failure

2012-05-29 Thread J. Garcia
I guess you're using Spring. If you use Spring injection via an xml file, you must use inheritance: Cheers, J. On Tue, May 29, 2012 at 2:31 PM, Dionis Argiri wrote: > Hi! > > I'm using struts 2.3.3. And I have marked following p

Re: Action inheritance and value automatic injection failure

2012-05-29 Thread Łukasz Lenart
Are you sure ? Could you post the whole stack trace ? Maybe there is a conversion error... Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubs

Action inheritance and value automatic injection failure

2012-05-29 Thread Dionis Argiri
Hi! I'm using struts 2.3.3. And I have marked following problem. When I have some hierarchy of inheritance, then value is not automatically injected in inherited action. Example: abstract class BaseAction extends ActionSupport { ... } class NewItem extends BaseAction { ... } class ItemDe

Re: @Validation annotation inheritance?

2008-05-12 Thread Musachy Barroso
Actually, Struts 2 checks the whole class hierarchy when an action is to be validated, so it will find the annotation on the parent class. musachy 2008/5/12 Musachy Barroso <[EMAIL PROTECTED]>: > That's the way we roll in Struts 2, it works even when it is not > supposed to :). Do you have any x

Re: @Validation annotation inheritance?

2008-05-12 Thread Musachy Barroso
That's the way we roll in Struts 2, it works even when it is not supposed to :). Do you have any xml validation set up as well? musachy On Mon, May 12, 2008 at 12:00 PM, Anna Skawińska <[EMAIL PROTECTED]> wrote: > Hi all, > > I'll start my posting here with a fairly basic Java issue - hope I won

@Validation annotation inheritance?

2008-05-12 Thread Anna Skawińska
Hi all, I'll start my posting here with a fairly basic Java issue - hope I won't get banned ;) I've just realized that I'm using the @Validation annotation on a base class for my validated actions. As far as I know, Java5 annotations don't get inherited unless the annotation type has the @In

Re: inheritance...

2008-05-04 Thread venkat reddy
08/4/27 balaji.m.cs <[EMAIL PROTECTED]>: > >> BaseFrom extends ActionForm { > >> > >> private List myList = null; > >> } > >> > >> ChildForm extends B

Re: inheritance...

2008-04-28 Thread balaji.m.cs
extends ActionForm { >> >> private List myList = null; >> } >> >> ChildForm extends BaseForm > > ChildForm is also BaseForm, it's OOP inheritance, so I don't see the > problem here. > > Antonio > > ---

Re: inheritance...

2008-04-27 Thread Antonio Petrelli
2008/4/27 balaji.m.cs <[EMAIL PROTECTED]>: > BaseFrom extends ActionForm { > > private List myList = null; > } > > ChildForm extends BaseForm ChildForm is also BaseForm, it's OOP inheritance, so I don

inheritance...

2008-04-27 Thread balaji.m.cs
with the BaseForm reference... if we can how to get the BaseForm reference in jsp... -- View this message in context: http://www.nabble.com/inheritance...-tp16926881p16926881.html Sent from the Struts - User mailing list archive at Nabble.com

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
riginal Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 3:47 PM To: Struts Users Mailing List Subject: Re: Inheritance within form beans On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Ok, that's quite interesting.. > > I th

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Ok, that's quite interesting.. > > I think I just need to find a efficient way of doing the deep copy > because my parent class has thousands of attributes in all including > nested attributes.. Hmm "thousands" of attributes? I doubt you ar

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
tober 03, 2007 2:37 PM To: Struts Users Mailing List Subject: Re: Inheritance within form beans On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Thanks a lot Rick. That gives me a new area to explore. > > The BeanUtils method - BeanUtils.copyProperties(Object target, Object &

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/3/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Thanks a lot Rick. That gives me a new area to explore. > > The BeanUtils method - BeanUtils.copyProperties(Object target, Object > src) - does give me a shallow copy of an object, Im trying to figure out > how to get a deep copy.. I might

RE: Inheritance within form beans

2007-10-03 Thread Kothari, Kailash
[mailto:[EMAIL PROTECTED] Sent: Wednesday, October 03, 2007 7:21 AM To: Struts Users Mailing List Subject: Re: Inheritance within form beans On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Thaks Rick. > > This will give me an instance of the parent bean OR the child bean. >

Re: Inheritance within form beans

2007-10-03 Thread Rick Reumann
On 10/2/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > Thaks Rick. > > This will give me an instance of the parent bean OR the child bean. > > What I need is a child bean pre populated with data from the parent > bean. Ok, so just get ParentBean and then populate your subclassed bean... publi

RE: Inheritance within form beans

2007-10-02 Thread Dave Newton
--- "Kothari, Kailash" wrote: > This will give me an instance of the parent bean OR > the child bean. > > What I need is a child bean pre populated with data > from the parent bean. I'd probably consider hooking in to the request processor (or chain if you're using 1.3, I suppose) and implement t

RE: Inheritance within form beans

2007-10-02 Thread Kothari, Kailash
)(instance of parent bean)); Since java does not allow such downcasting. Would appreciate anything to help me move along ! -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, October 01, 2007 5:57 PM To: Struts Users Mailing List Subject: Re: Inheritance within form

Re: Inheritance within form beans

2007-10-01 Thread Rick Reumann
On 10/1/07, Kothari, Kailash <[EMAIL PROTECTED]> wrote: > What I also need is that, when a child form bean is instantiated by > Struts, I want Struts to check if there is an instance of the parent > form bean in the session and if so, pre populate that data from the > parent to the child form bean

Inheritance within form beans

2007-10-01 Thread Kothari, Kailash
Hello, I have an interesting Struts design requirement and Im a little lost, would really appreciate help ! I have multiple form beans in my application and a lot of them share data. Instead of duplicating the common attributes in each form bean, I am opting for an more elegant approach, i.e. en

Re: [S2] config file inheritance (extending packages) - need help

2007-07-10 Thread Don Brown
e: According to the following page in the Struts 2 docs, package inheritance only includes interceptor, interceptor-stack, and action configurations. http://struts.apache.org/2.0.8/docs/package-configuration.html Is this true? I would like to know if , , and also get inherited when extending a p

[S2] config file inheritance (extending packages) - need help

2007-07-09 Thread Bill Johnson
According to the following page in the Struts 2 docs, package inheritance only includes interceptor, interceptor-stack, and action configurations. http://struts.apache.org/2.0.8/docs/package-configuration.html Is this true? I would like to know if , , and also get inherited when extending a

Re: [S1] No inheritance of validation properites?

2007-01-27 Thread Laurie Harper
ies should be validated), the validation does not work. I have to copy the validation code and refer to each single subtype of the form. Does the validation part not take the inheritance hierarchy of form beans take into account or did I make an error in my configuration? It's hard to know if t

[S1] No inheritance of validation properites?

2007-01-24 Thread uni
validation does not work. I have to copy the validation code and refer to each single subtype of the form. Does the validation part not take the inheritance hierarchy of form beans take into account or did I make an error in my configuration? Cheers, Thorsten

[OT] inheritance and equals

2006-03-16 Thread Tamas Szabo
lorPoint p1 = new ColorPoint(1, 2, Color.RED); Point p2 = new Point(1, 2); ColorPoint p3 = new ColorPoint(1, 2, Color.BLUE); p1.equals(p2) is true and p2.equals(p3) is true but p1.equals(p3) is false. So my question is how do you solve this problem? The book says that a workaround is to use composition

RE: Validator Form and inheritance

2005-07-06 Thread Charles . Gouin-Vallerand
eed to use protected instead of private. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 4:19 PM To: Struts Users Mailing List Subject: RE: Validator Form and inheritance Sorry, the problem is not evident to me. Perhaps you could explain what ha

RE: Validator Form and inheritance

2005-06-30 Thread erikweber
30, 2005 3:16 PM To: user@struts.apache.org Subject: RE: Validator Form and inheritance I was using the validation for other form and it's work fine. I just have difficulty to validate field from a extend class. There is a snippet of my code : The declaration in the

RE: Validator Form and inheritance

2005-06-30 Thread Charles . Gouin-Vallerand
e 30, 2005 3:00 PM To: Struts Users Mailing List Subject: Re: Validator Form and inheritance I take it you are using the Validator plugin? Do you have the xml files setup correctly? Is there a form-bean defined as type AddBottleForm? Is this the type you specify in your action mapping? Does vali

Re: Validator Form and inheritance

2005-06-30 Thread erikweber
inheritance Hi EveryBody, I'm trying to use some inheritance with ValidatorForm. But, when it's time to validate some field from the father class in the child class, it doesn't work. I know that i'm not clear but check this exemple you will understand more : I go

Validator Form and inheritance

2005-06-30 Thread Charles . Gouin-Vallerand
Hi EveryBody, I'm trying to use some inheritance with ValidatorForm. But, when it's time to validate some field from the father class in the child class, it doesn't work. I know that i'm not clear but check this exemple you will understand more : I got a Bott

Re: Validator inheritance

2005-05-20 Thread Riyaz Mansoor
i asked this same question and the answer i got here is: this was added to Validator but not public release has been made after this. u can download a source distro of validator and compile and use it. > the above should work as is - i am using it :) riyaz Yaroslav Novytskyy wrote: Hi! Does anyone

Validator inheritance

2005-05-20 Thread Yaroslav Novytskyy
Hi! Does anyone know about the way to "inherit" (1) and "reuse" (2) validations for multiple forms in validation.xml Explanation: 1. I have a number of myForms: myForm1, myForm2, and so on they are of class MyForm (so they all have same fields) and I want them to validate the same. e.g. pro

Inheritance using multiple validator.xml

2005-04-19 Thread Narayan, Anand
Here's what I am trying to do: I need to use a "default" validator.xml file to configure validations for fields on forms. I also want to be able to specify another "custom" validator xml file, say "validator-custom.xml" which contain changes to the validations of some fields. When I do this using

Re: Inheritance of DynaActionForms

2004-12-23 Thread Radu Badita
Regarding the inheritance of DynaActionForms I've once read an very good and interesting article of someone who found an workaround. I don't have the url though, so maybe you'll get lucky with google ;-) Hi, I am looking for a "Best practice" of using the ActionForms.

Re: Inheritance of DynaActionForms

2004-12-22 Thread Eddie Bush
> these Forms share some common properties and some validation logic is also > common. > > Currently we are using the Inheritance in the ActionForms, to solve this > requirement(Like we have a Super ActionForm and all the other ActionForms > extend that Super ActionForm). > &g

Inheritance of DynaActionForms

2004-12-22 Thread Vijay K Dasari
Hi, I am looking for a "Best practice" of using the ActionForms. We are using lot of Forms(both ActionForm and DynaActionForms) in our application. All these Forms share some common properties and some validation logic is also common. Currently we are using the Inheritance in the Actio

RE: inheritance in tiles

2004-10-06 Thread wiwit_tjahjana
> 10/06/2004 02:39 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc Subject RE: inheritance in tiles A stupid question : Can we pass parameters in this extension. TIA -

RE: inheritance in tiles

2004-10-06 Thread Fogleson, Allen
irole, Amar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 06, 2004 2:39 PM To: 'Struts Users Mailing List' Subject: RE: inheritance in tiles A stupid question : Can we pass parameters in this extension. TIA -Amar -Original Message- From: news [mailto:[EMAIL PROTECTED] O

RE: inheritance in tiles

2004-10-06 Thread Jirole, Amar
A stupid question : Can we pass parameters in this extension. TIA -Amar -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich Sent: Wednesday, October 06, 2004 2:25 PM To: [EMAIL PROTECTED] Subject: Re: inheritance in tiles yes. josh wrote: > Can a t

Re: inheritance in tiles

2004-10-06 Thread Vic Cekvenich
yes. josh wrote: Can a tile definition that extends another definition itself be extended again? definition ^ | child definition ^ | grandchild definition - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

inheritance in tiles

2004-10-06 Thread josh
Can a tile definition that extends another definition itself be extended again? definition ^ | child definition ^ | grandchild definition -- Joshua Cronemeyer Thank you. signature.asc Description: This is a digitally signed message part

RE: Tiles inheritance

2004-10-05 Thread Fogleson, Allen
Honestly pretty much like regular OO inheritance. If you define values in the "subclassed" tile then they replace the ones in the parent, if you do not then the parents value is used. Al -Original Message- From: Wylie van den Akker [mailto:[EMAIL PROTECTED] Sent: Tuesday,

Tiles inheritance

2004-10-05 Thread Wylie van den Akker
Can anyone explain to me strait how tiles inheritance model actually works? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]