Al Sutton wrote:
Scott,
Annotations serve a very useful purpose, and unless you're using a JRE
less than version 5 they're worth the effort.
Similar thoughts here.
I found using validation annotations within actions and XML validation
for models (visitor validation) was a good compromise.
Scott,
Annotations serve a very useful purpose, and unless you're using a JRE
less than version 5 they're worth the effort.
I didn't think they were worth it until I had an opportunity to write a
Struts2/Hibernate app from scratch and saw how it moved a lot of the
config from a dis-associate
What's wrong with annotations, and more importantly -
How hot is your sister?!
(sorry, couldn't resist)
-Wes
On Mon, 2008-09-01 at 08:57 -0500, [EMAIL PROTECTED] wrote:
> Thanks Jeromy --
>
> I'd rather sleep with my sister than embed annotations in my code. This
> notwithstanding, I underst
> > From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> > Subject: Re: REST Showcase 2.1.2
> > To: "Struts Users Mailing List"
> > Date: Monday, September 1, 2008, 10:03 AM
> > Someone should update the REST plug-in docs so others
> > don't waste day
Become the change you desire.
http://struts.apache.org/helping.html#documentation
Dave
--- On Mon, 9/1/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: Re: REST Showcase 2.1.2
> To: "Struts Users Mailing List&q
Someone should update the REST plug-in docs so others don't waste days
trying something that WILL NOT work as designed. Validation permutations
can be tricky enough without chasing a dead end.
On Mon, Sep 1, 2008 at 8:57 AM, <[EMAIL PROTECTED]> wrote:
> Thanks Jeromy --
>
> I'd rather sleep wit
Thanks Jeromy --
I'd rather sleep with my sister than embed annotations in my code. This
notwithstanding, I understand your reluctance to add yet another permutation
to that lookup scheme. I poked around in the code back in 2.0 and nearly
got a nose bleed. I hope there are a ton of unit tests a
stanlick wrote:
Also, what is the naming convention for validation xml files using the Code
Behind/REST plug-in?
I've tried several combinations of naming, but none seem to work.
The short answer is: you can't. It doesn't work.
Fortunately annotation validation works correctly in 2.1
I thought the framework created types that were null as a prerequisite to set
parameters? The whole Google Juice 1.0 inject internals? Do you know the
naming scheme for external validation? I feel like I need a secret REST 2
decoder ring or to become a member of the secret society!
%-|
Peace,
S
stanlick wrote:
So any ideas why the model is being created inside the action and not
injected by the framework?
private Order model = new Order();
I think Don was just being lazy in the quick example ;-)
I load or create the model in the appropriate prepare method. All that
matters is t
Also, what is the naming convention for validation xml files using the Code
Behind/REST plug-in?
I've tried several combinations of naming, but none seem to work.
--
View this message in context:
http://www.nabble.com/REST-Showcase-2.1.2-tp19228759p19229925.html
Sent from the Struts - User
So any ideas why the model is being created inside the action and not
injected by the framework?
private Order model = new Order();
newton.dave wrote:
>
> --- On Fri, 8/29/08, stanlick <[EMAIL PROTECTED]> wrote:
>> Also, what's with the ModelDriven refreshModelBeforeResult? I
>> haven't seen
--- On Fri, 8/29/08, stanlick <[EMAIL PROTECTED]> wrote:
> Also, what's with the ModelDriven refreshModelBeforeResult? I
> haven't seen that one before! Don't see it in the
> http://struts.apache.org/2.x/docs/model-driven-interceptor.html
> guide Is this a guide/version deal?
It hasn't been d
So what do you suppose is the special missing sauce? I see Spring inject my
service bean into the action but not the model! Very strange indeed.
Public setter method, bean wiring by autodetect... really has me scratching
my head. Also, what's with the ModelDriven refreshModelBeforeResult? I
h
Lifecycle is the same: up to you. There is no specific reason why it needs
to be like that. (you know the struts style: many ways of doing the same
thing)
musachy
On Fri, Aug 29, 2008 at 7:05 PM, stanlick <[EMAIL PROTECTED]> wrote:
>
> Is there a reason the lifecycle will not create the model ob
On Dec 9, 2007 9:58 AM, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Good Morning Piero
> in my test pom.xml in plugin-repositories if I configure the suggested
> pluginRespository
>
> apache.snapshots
> Apache Maven Repository (Snapshots and Test Builds)
>
>
> apache.snapshots
> Apache Maven Repository (Snapshots and Test
> Builds)
>
> http://people.apache.org/repo/m2-snapshot-repository/
> false
> false
>
You disabled releases as well as snapshots?
Don't know if this is the reason for
m: "Piero Sartini" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Sunday, December 09, 2007 10:48 AM
Subject: Re: REST Showcase
> > If you've used Maven before you're probably better off checking out the
> > source and performing your own
> If you've used Maven before you're probably better off checking out the
> source and performing your own build. It would take less than 10-30
> mins to setup.
> http://struts.apache.org/2.x/docs/building-the-framework-from-source.html
If maven is used, 2.1.1-SNAPSHOT should work:
Frans Thamura wrote:
anyone have a binary distribution of newest struts with REST
You could try downloading an unstable binary distribution of struts 2.1:
http://people.apache.org/builds/struts/2.1.0/
However, REST is currently in the struts sandbox so I'm not sure it's
included in
> anyone have a binary distribution of newest struts with REST
MG>start here..
http://cwiki.apache.org/S2PLUGINS/smarturls-plugin.html
so i can test it, even unstable.
MG>are you requesting a non-GA release???
> F
>
-
To unsu
21 matches
Mail list logo