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 using Spring.
>
> If you use Spring injection via an xml file, you must use inheritance:
>
>
>
>
> depends-on="baseAction">
>
>
>
> depends-on="baseAction,itemDetails">
>
>
> Cheers,
> J.
>
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
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
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
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
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
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
08/4/27 balaji.m.cs <[EMAIL PROTECTED]>:
> >> BaseFrom extends ActionForm {
> >>
> >> private List myList = null;
> >> }
> >>
> >> ChildForm extends B
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
>
> ---
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
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
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
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
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
&
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
[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.
>
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
--- "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
)(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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
> 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
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
>
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
-
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
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
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
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
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,
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]
45 matches
Mail list logo