It works Freedy! Thanks for all the hard work...

Nice job...

Thiago Caiubi

On Nov 20, 2009, at 9:36 AM, stripes-users- 
[email protected] wrote:

> Send Stripes-users mailing list submissions to
>       [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.sourceforge.net/lists/listinfo/stripes-users
> or, via email, send a message with subject or body 'help' to
>       [email protected]
>
> You can reach the person managing the list at
>       [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Stripes-users digest..."
>
>
> Today's Topics:
>
>   1. Re: What's the best way to initialize an actionBean? (KR)
>   2. Executing custom default view after validation error
>      (Thiago Caiubi)
>   3. Re: Executing custom default view after validation       error
>      (Freddy Daoud)
>   4. Stripes 1.6 snapshot with Maven2 (Freddy Daoud)
>   5. Re: Stripes 1.6 snapshot with Maven2 (M.C.S.)
>   6. Re: Stripes 1.6 snapshot with Maven2 (Richard Hauswald)
>   7. Re: Stripes 1.6 snapshot with Maven2 (Freddy Daoud)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 19 Nov 2009 14:11:31 +0100
> From: "KR" <[email protected]>
> Subject: Re: [Stripes-users] What's the best way to initialize an
>       actionBean?
> To: [email protected]
> Message-ID: <[email protected]>
>
> Oops!
>
> It works now, but I did not change any code... This all seems to be  
> just a
> Netbeans Run problem....
>
> Thanks for all the help,
>
>
>
> "Cosmin Marginean" <[email protected]> wrote
> in message news:[email protected]...
>> As far as I know, once you have your @SpringBean setup you should  
>> be good
>> in any stage of lifecycle.
>>
>> Please make sure you also have the Spring interceptor setup  
>> correctly in
>> web.xml:
>>
>>   <filter>
>>       <filter-name>StripesFilter</filter-name>
>>
>> <filter-class>net.sourceforge.stripes.controller.StripesFilter</ 
>> filter-class>
>>          ......
>>       <init-param>
>>           <param-name>Interceptor.Classes</param-name>
>>           <param-value>
>>
>> net.sourceforge.stripes.integration.spring.SpringInterceptor
>>           </param-value>
>>       </init-param>
>>     ...
>>
>> Regards,
>> Cosmin
>>
>> Marcus thanks for you're response.
>>
>> The DAO class is normaly correcty injected and can be used in the  
>> event
>> handlers. But @SpringBean annotated DAO class is still NULL in a  
>> method
>> annotated with:
>> @After(stages = LifecycleStage.BindingAndValidation). But as event
>> handlers
>> are not executed during validation errors, I can't properly  
>> initialize my
>> action bean with those.
>>
>> How should I change the debug level, so I can see the spring debug
>> messages?
>>
>> thanks,
>> Karen
>>
>> "M.C.S." <[email protected]> wrote in message
>> news:[email protected]...
>> Hi Karen,
>>   I put this initialization code in a separate init method
>> and annotated the method by:
>>
>> @After(stages = LifecycleStage.BindingAndValidation)
>>
>> This works as expected, the parameters are bound and does also  
>> execute
>> when
>> I have an validation error (when no event handler is executed). The
>> problem:
>> the @Springbean annotated DAO class is not yet injected at this  
>> stage.
>>
>>     the SpringInterceptor is executed before BindingAndValidation. If
>> your
>> DAO has not been injected, the reason is probably somewhere else.  
>> Is it
>> really injected in other cases? Did you annotate the DAO field in  
>> your
>> ActionBean? Does Spring know your DAO class? Changing the log level  
>> to
>> DEBUG may help in finding the reason for your problem.
>>
>> Good luck and best wishes,
>> Marcus
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --------------------------------------------------------------------------------
>
>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
>
> --------------------------------------------------------------------------------
>
>
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 19 Nov 2009 15:54:15 -0200
> From: Thiago Caiubi <[email protected]>
> Subject: [Stripes-users] Executing custom default view after
>       validation error
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> Hey guys, I follow the list for a long time but never posted. Now I'm
> really using Stripes 1.5.2 for production. Thanks for the hard wok
> till now...
>
> Well, I am facing a problem while a validation error and executing a
> default view class.
> I check the source code and saw that in a validation error state a
> getSourcePageResolution is called!
> But I need to use the default view method implemented to find some
> data in a database and display to the user!
>
> Any help is welcome!!!
>
> Regards,
>
> Thiago Caiubi
> [email protected]
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 19 Nov 2009 18:04:46 +0000 (UTC)
> From: Freddy Daoud <[email protected]>
> Subject: Re: [Stripes-users] Executing custom default view after
>       validation      error
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8
>
> Hi Thiago,
>
>> Well, I am facing a problem while a validation error and executing a
>> default view class.
>> I check the source code and saw that in a validation error state a
>> getSourcePageResolution is called!
>> But I need to use the default view method implemented to find some
>> data in a database and display to the user!
>
> You can gain control of what happens in the presence of validation  
> errors
> by having the action bean implement the ValidationErrorHandler  
> interface,
> which has one method:
>
> public interface ValidationErrorHandler {
>  Resolution handleValidationErrors(ValidationErrors errors)
>    throws Exception;
> }
>
> This method is called after the validation process if at least one  
> validation
> error occurred and the list of errors is passed as a parameter. In
> the method, you can do pretty much anything, including the following:
>
> ? Change the list by adding, modifying, or deleting errors
> ? Change properties in the action bean
> ? Make calls to a DAO, and so on
>
> If you return a Resolution, it is executed directly instead of  
> returning
> to the source page.
>
> Hope that helps.
>
> Cheers,
> Freddy
> http://www.stripesbook.com
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 20 Nov 2009 02:26:05 +0000 (UTC)
> From: Freddy Daoud <[email protected]>
> Subject: [Stripes-users] Stripes 1.6 snapshot with Maven2
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> If you are using Maven 2 and want to experiment with the current  
> snapshot
> of Stripes 1.6, you can get it from my repository. Just add this to  
> your
> pom.xml file:
>
> 1. Under <dependencies>
>
>    <dependency>
>      <groupId>net.sourceforge.stripes</groupId>
>      <artifactId>stripes</artifactId>
>      <version>1.6-SNAPSHOT</version>
>    </dependency>
>
> 2. Under <project>
>
>  <repositories>
>    <repository>
>      <id>www.stripesbook.com</id>
>      <url>http://www.stripesbook.com/maven2</url>
>    </repository>
>  </repositories>
>
> Cheers,
> Freddy
> http://www.stripesbook.com
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 20 Nov 2009 09:04:16 +0100
> From: "M.C.S." <[email protected]>
> Subject: Re: [Stripes-users] Stripes 1.6 snapshot with Maven2
> To: Stripes Users List <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Freddy,
>
> would it hurt if you also added Stripes 1.5.2 to the repo? Central's
> current version is still 1.5.1 :-(
>
> Greetings,
> Marcus
>
>
> Freddy Daoud schrieb:
>> If you are using Maven 2 and want to experiment with the current  
>> snapshot
>> of Stripes 1.6, you can get it from my repository. Just add this to  
>> your
>> pom.xml file:
>>
>> 1. Under <dependencies>
>>
>>    <dependency>
>>      <groupId>net.sourceforge.stripes</groupId>
>>      <artifactId>stripes</artifactId>
>>      <version>1.6-SNAPSHOT</version>
>>    </dependency>
>>
>> 2. Under <project>
>>
>>  <repositories>
>>    <repository>
>>      <id>www.stripesbook.com</id>
>>      <url>http://www.stripesbook.com/maven2</url>
>>    </repository>
>>  </repositories>
>>
>> Cheers,
>> Freddy
>> http://www.stripesbook.com
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>> 2008 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 20 Nov 2009 09:11:17 +0100
> From: Richard Hauswald <[email protected]>
> Subject: Re: [Stripes-users] Stripes 1.6 snapshot with Maven2
> To: Stripes Users List <[email protected]>
> Message-ID:
>       <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Please do so. It'd be also kewl if you enable the index listings to
> enable repository browsing.
> Thanks,
> Richard
>
> On Fri, Nov 20, 2009 at 9:04 AM, M.C.S. <[email protected]> wrote:
>> Hi Freddy,
>>
>> would it hurt if you also added Stripes 1.5.2 to the repo? Central's
>> current version is still 1.5.1 :-(
>>
>> Greetings,
>> Marcus
>>
>>
>> Freddy Daoud schrieb:
>>> If you are using Maven 2 and want to experiment with the current  
>>> snapshot
>>> of Stripes 1.6, you can get it from my repository. Just add this  
>>> to your
>>> pom.xml file:
>>>
>>> 1. Under <dependencies>
>>>
>>> ? ? <dependency>
>>> ? ? ? <groupId>net.sourceforge.stripes</groupId>
>>> ? ? ? <artifactId>stripes</artifactId>
>>> ? ? ? <version>1.6-SNAPSHOT</version>
>>> ? ? </dependency>
>>>
>>> 2. Under <project>
>>>
>>> ? <repositories>
>>> ? ? <repository>
>>> ? ? ? <id>www.stripesbook.com</id>
>>> ? ? ? <url>http://www.stripesbook.com/maven2</url>
>>> ? ? </repository>
>>> ? </repositories>
>>>
>>> Cheers,
>>> Freddy
>>> http://www.stripesbook.com
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>>> 2008 30-Day
>>> trial. Simplify your report design, integration and deployment -  
>>> and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Stripes-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>> 2008 30-Day
>> trial. Simplify your report design, integration and deployment -  
>> and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>
>
>
> -- 
> Richard Hauswald
> Blog: http://tnfstacc.blogspot.com/
> LinkedIn: http://www.linkedin.com/in/richardhauswald
> Xing: http://www.xing.com/profile/Richard_Hauswald
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 20 Nov 2009 06:35:56 -0500
> From: "Freddy Daoud" <[email protected]>
> Subject: Re: [Stripes-users] Stripes 1.6 snapshot with Maven2
> To: "Stripes Users List" <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="ISO-8859-1"
>
> It is done.
>
> I didn't realize that 1.5.2 wasn't up in the Maven repo yet; I've
> been on 1.6 for a while now. Can't live without the ObjectFactory ;-)
>
> Not sure why directory listing isn't working. I'll have to check
> that out.
>
> Cheers,
> Freddy
> http://www.stripesbook.com
>
> On Fri, 20 Nov 2009 09:11:17 +0100, "Richard Hauswald"
> <[email protected]> said:
>> Please do so. It'd be also kewl if you enable the index listings to
>> enable repository browsing.
>> Thanks,
>> Richard
>>
>> On Fri, Nov 20, 2009 at 9:04 AM, M.C.S. <[email protected]> wrote:
>>> Hi Freddy,
>>>
>>> would it hurt if you also added Stripes 1.5.2 to the repo? Central's
>>> current version is still 1.5.1 :-(
>>>
>>> Greetings,
>>> Marcus
>>>
>>>
>>> Freddy Daoud schrieb:
>>>> If you are using Maven 2 and want to experiment with the current  
>>>> snapshot
>>>> of Stripes 1.6, you can get it from my repository. Just add this  
>>>> to your
>>>> pom.xml file:
>>>>
>>>> 1. Under <dependencies>
>>>>
>>>> ? ? <dependency>
>>>> ? ? ? <groupId>net.sourceforge.stripes</groupId>
>>>> ? ? ? <artifactId>stripes</artifactId>
>>>> ? ? ? <version>1.6-SNAPSHOT</version>
>>>> ? ? </dependency>
>>>>
>>>> 2. Under <project>
>>>>
>>>> ? <repositories>
>>>> ? ? <repository>
>>>> ? ? ? <id>www.stripesbook.com</id>
>>>> ? ? ? <url>http://www.stripesbook.com/maven2</url>
>>>> ? ? </repository>
>>>> ? </repositories>
>>>>
>>>> Cheers,
>>>> Freddy
>>>> http://www.stripesbook.com
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>>>> 2008 30-Day
>>>> trial. Simplify your report design, integration and deployment -  
>>>> and focus on
>>>> what you do best, core application coding. Discover what's new with
>>>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july
>>>> _______________________________________________
>>>> Stripes-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports  
>>> 2008 30-Day
>>> trial. Simplify your report design, integration and deployment -  
>>> and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Stripes-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>
>>
>>
>>
>> -- 
>> Richard Hauswald
>> Blog: http://tnfstacc.blogspot.com/
>> LinkedIn: http://www.linkedin.com/in/richardhauswald
>> Xing: http://www.xing.com/profile/Richard_Hauswald
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and
>> focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
> ------------------------------
>
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> End of Stripes-users Digest, Vol 42, Issue 32
> *********************************************

Thiago Caiubi
[email protected]




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to