Re: [Stripes-users] Stripes vs. Struts 2

2008-03-26 Thread Poitras Christian
Hi, I tried to migrate a site from struts 1 to struts 2. I finally gave up very quiclky due to the following. 1) Struts 2 throws a hole bunch of null pointer exceptions as soon as you try using domain objects (which they recommand). 2) To limit the number null exceptions you'll get, you need to

Re: [Stripes-users] Stripes vs. Struts 2

2008-03-26 Thread Poitras Christian
] On Behalf Of Poitras Christian Sent: Wednesday, March 26, 2008 5:43 PM To: 'Stripes Users List' Subject: Re: [Stripes-users] Stripes vs. Struts 2 Hi, I tried to migrate a site from struts 1 to struts 2. I finally gave up very quiclky due to the following. 1) Struts 2 throws a hole bun

Re: [Stripes-users] Accessing HttpSession stripes(method attached)

2008-04-07 Thread Poitras Christian
Is the listener registered in web.xml? Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Farouk Alhassan Sent: Monday, April 07, 2008 4:55 PM To: Stripes Users List Subject: Re: [Stripes-users] Accessing HttpSession stripes(method attached)

Re: [Stripes-users] Accessing HttpSession stripes(method attached)

2008-04-07 Thread Poitras Christian
I've tried accessing an attribute set by one of my session listener. It works well. I have revision 868. You can checkout stripes latest version from svn and see if it's related to stripes. Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf O

[Stripes-users] One converters per request

2008-04-22 Thread Poitras Christian
Hi, Is there only one converter per request? Or do converters get shared by some request? Christian - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still ti

Re: [Stripes-users] One converters per request

2008-04-24 Thread Poitras Christian
To answer my own question, when DefaultActionBeanPropertyBinder and DefaultTypeConverterFactory are used, a new instance of converter is created for every parameter to convert. Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras

Re: [Stripes-users] FileUpload any events available during upload?

2008-04-28 Thread Poitras Christian
Just to mention, I've used the idea in Ben's link. http://www.telio.be/blog/2006/01/05/ajax-upload-progress-monitor-for-commons-fileupload/ Christian. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zenin, Ruslan Sent: Monday, April 28, 2008 9:00 A

Re: [Stripes-users] FileUpload any events available during upload?

2008-04-28 Thread Poitras Christian
I've coded something last friday. The best advantage of my method is that it will surely work if javascript is disabled (althought, progress bar is not shown). Since there is no frame stuff, you can return a Resolution from your handler and it works without any twist in action bean. You only need

Re: [Stripes-users] history.back() using stripes

2008-04-29 Thread Poitras Christian
Can you use javascript? Or do you really need to pass through an action bean? Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SivaKumarl Sent: Saturday, April 26, 2008 2:05 AM To: stripes-users@lists.sourceforge.net Subject: [Stripes-users] his

Re: [Stripes-users] handling errors on a per-method basis

2008-05-06 Thread Poitras Christian
Tim, I've already programmed something close to this. It's an interceptor that returns a different resolution if handle errors method returns a Resolution. Of course, you can also change validation errors during method execution if you like. So you can have things like: @HandlesErrors publi

[Stripes-users] RedirectResolution calls wrong event with wrizard

2008-05-12 Thread Poitras Christian
Hi, When my action bean uses @Wizard and I return a RedirectResolution from and event, it tries to call the same event again causing an exception. Removing @Wizard prevents the exception. return new RedirectResolution(this.getClass(), "done").flash(this); net.sourceforge.stripes.exception.Stri

Re: [Stripes-users] RedirectResolution calls wrong event with wrizard

2008-05-13 Thread Poitras Christian
Done this. I've attached the code. Once update is called, update is called again on the redirect. Here's the logs beginning when update is called. 2008-05-13 09:59:00,383 - TRACE - logEvent - update - ca.qc.ircm.proteus.web.user.result.UntreatedRelationAction - (poitrac[P:1]) - 107 2008-05-13

Re: [Stripes-users] RedirectResolution calls wrong event with wrizard

2008-05-13 Thread Poitras Christian
D] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian Sent: Tuesday, May 13, 2008 10:00 AM To: 'Stripes Users List' Subject: Re: [Stripes-users] RedirectResolution calls wrong event with wrizard Done this. I've attached the code. Once update is called, update is called again on t

Re: [Stripes-users] RedirectResolution calls wrong event with wrizard

2008-05-13 Thread Poitras Christian
27;s ActionBeanContext in DispatchHelper's resolveHandler method. Path is included in email. Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian Sent: Tuesday, May 13, 2008 11:08 AM To: 'Stripes Users List' Subject

Re: [Stripes-users] RedirectResolution calls wrong event with wrizard

2008-05-16 Thread Poitras Christian
Christian, please update and try this again. We made some changes to how flashed beans are handled that should fix both of the event-related problems you reported recently. -Ben Poitras Christian wrote: Hi, When my action bean uses @Wizard and I return a RedirectResolution from and event, it

Re: [Stripes-users] More feedback needed

2008-05-16 Thread Poitras Christian
Would that be a problem to encode urls? What are the downsides? Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Gunter Sent: Friday, May 16, 2008 11:40 AM To: Stripes Users List Subject: [Stripes-users] More feedback needed We have an

[Stripes-users] Converter not used for wilcard types

2008-05-26 Thread Poitras Christian
Hi, I have an action bean with a field This one is doesn't work. public class ReadRelationVisibilityAction extends BaseActionBean { private Rel relation; When I pass a value for relation, it doesn't get converted by my RelationConverter which is public class RelationConverter implements Ty

Re: [Stripes-users] Converter not used for wilcard types

2008-05-27 Thread Poitras Christian
:689) at java.lang.Thread.run(Thread.java:595) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian Sent: Monday, May 26, 2008 5:41 PM To: 'Stripes Users List' Subject: [Stripes-users] Converter not used for wilcard types H

Re: [Stripes-users] Converter not used for wilcard types

2008-05-27 Thread Poitras Christian
card types Christian, Can you log a JIRA issue for this? I'll try to look into it later today. Aaron Poitras Christian wrote: > Hi, > > I have an action bean with a field > This one is doesn't work. > public class ReadRelationVisibilityAction extends > BaseActionBean { &g

Re: [Stripes-users] How to stop the validation of a Datatype for particular event

2008-05-30 Thread Poitras Christian
Which version of Stripes are you using? These have changed a lot from 1.4.3 to 1.5. I think the behaviour in 1.5 is more natural. In Stripes 1.5, @DontValidate will not run validations during binding. Take a look at this thread : http://article.gmane.org/gmane.comp.java.stripes.user/6269 Chris

Re: [Stripes-users] How to display single errorMessage for multiple validations

2008-06-16 Thread Poitras Christian
If this doesn't happen to often, make your action beans implement ValidationErrorHandler. You can then remove duplicates in ValidationErrors. http://stripes.sourceforge.net/docs/current/javadoc/ If this happens often, you can use an interceptor that will remove any errors by first for each key/

Re: [Stripes-users] Spoke too soon...

2008-06-30 Thread Poitras Christian
>From what I read in the s:label tag doc >(http://stripes.sourceforge.net/docs/current/taglib/), I doubt you want to put s:text in s:label since s:text could be skipped by the content of the for attribute. The value of the label is set by searching for a non-null value in the following order:

Re: [Stripes-users] @DefaultHandler tag just stopped working...

2008-07-07 Thread Poitras Christian
What version are you using? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Newman, John W Sent: Monday, July 07, 2008 4:53 PM To: Stripes Users List Subject: Re: [Stripes-users] @DefaultHandler tag just stopped working... Did something here change

Re: [Stripes-users] Calling All Stripes Plugins

2008-07-08 Thread Poitras Christian
I've just updated documentation for @Session plugin on Stripes web site. The documentation now contains information on the new interceptor I've work on for the session plugin. The new version is available in Stripes Stuff project. Christian From: [EMAIL PROTECTE

Re: [Stripes-users] Where is stripes session plugin

2008-08-04 Thread Poitras Christian
Hi Farouk, The source link was not intuitive... I've updated the source code link so that it shows the svn command to use. Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Porter Sent: Monday, August 04, 2008 2:19 AM To: Stripes Users Lis

Re: [Stripes-users] Where is stripes session plugin

2008-08-04 Thread Poitras Christian
farouk alhassan Sent: Monday, August 04, 2008 3:11 PM To: Stripes Users List Subject: Re: [Stripes-users] Where is stripes session plugin thanks but do I have to check it out and compile or there is a compiled version. Dont mind doing it tho --- On Mon, 8/4/08, Poitras Christian <[EMAIL PROTE

Re: [Stripes-users] UrlBinding => sourcePage?

2008-08-13 Thread Poitras Christian
Are you using tag to get http://host/foo? Christian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joel Truher Sent: Wednesday, August 13, 2008 1:59 PM To: Stripes Users List Subject: [Stripes-users] UrlBinding => sourcePage? Hi, Apologies in advance

Re: [Stripes-users] UrlBinding => sourcePage?

2008-08-13 Thread Poitras Christian
s this way. I'm just having trouble combining that idea with bound Urls. Is there a "standard" way to do it? On Wed, Aug 13, 2008 at 11:24 AM, Poitras Christian <[EMAIL PROTECTED]> wrote: > Are you using tag to get http://host/foo? > > Christian > > -

Re: [Stripes-users] maps and @ValidateNestedProperties

2008-08-19 Thread Poitras Christian
If i'm guessing correctly, you're currently trying to validate the PAGE_SIZE property of a java.lang.String. This is incorrect. ValidateNestedProperties is used to validate sub properties of an object (if indexed, the ? in List, if mapped the ? in Map). Christian ___

Re: [Stripes-users] maps and @ValidateNestedProperties

2008-08-19 Thread Poitras Christian
Can you explain what you are trying to validate? I'll try to help you write an appropriate validate annotation. Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Poitras Christian Sent: Tuesday, August 19, 2008 12:39 PM To: 'Str

Re: [Stripes-users] maps and @ValidateNestedProperties

2008-08-19 Thread Poitras Christian
Map map; Again, this works partially. So I'm not sure that the annotations are the problem, but please feel free to educate me :) On Tue, Aug 19, 2008 at 8:44 PM, Poitras Christian <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: Can you explain what you are trying to vali

Re: [Stripes-users] Stripes Action Before Serving Page

2008-08-29 Thread Poitras Christian
You might need to change 3 things. First, don't use tag in home.jsp unless you really want to instantiate another action bean in the jsp. Your HomeActionBean will be available in the jsp as a request attribute under ${actionBean}. Second, make sure stripes handles the "/" url. You will need to

Re: [Stripes-users] I need help with a complex form element

2008-09-30 Thread Poitras Christian
You should use Note that you should replace '.friendlyCode' by the property you want to set. Christian -Original Message- From: Tiffany [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 7:42 AM To: stripes-users@lists.sourceforge.net Subject: [Stripes-users] I need help with

Re: [Stripes-users] Collections, textareas, OneToManyTypeConverter, and no possiblitity of inverse formatting

2008-10-02 Thread Poitras Christian
Could this be because you use set instead of list? Stripes is not supposed to support set... Christian From: Newman, John W [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2008 2:13 PM To: Stripes Users List Subject: Re: [Stripes-users] Collections, textarea

Re: [Stripes-users] Collections, textareas, OneToManyTypeConverter, and no possiblitity of inverse formatting

2008-10-04 Thread Poitras Christian
Cheers, Freddy http://www.stripesbook.com On Thu, 2 Oct 2008 15:13:29 -0400, "Poitras Christian" <[EMAIL PROTECTED]> said: > Could this be because you use set instead of list? > Stripes is not supposed to support set... > > Christian > > _

Re: [Stripes-users] [Fwd: Map property validation and error messages]

2008-10-08 Thread Poitras Christian
I think the only way to acheive this is by using a validation method. @ValidationMethod public void validateMyMap() { for (Enum e : myEnum) { if (!myMap.contains(e)) { context.getValidationErrors().add("myMap[" + e + "]", new LocalizableError(".myMap." + e + ".invalidNumber")); }

Re: [Stripes-users] Showing a single error message for multiple error types in validation

2008-10-09 Thread Poitras Christian
You can make your action bean implement ValidationErrorHandler. Then simply write this in your action bean. public Resolution handleValidationErrors(ValidationErrors errors) { errors.clear(); errors.addGlobalError(new LocalizableError("errorMessage")); return context.getSourcePageResol

Re: [Stripes-users] Stripes link tag and params

2008-10-09 Thread Poitras Christian
If you want to submit all fields, you should use a submit button. If you really need to use a link, use javascript to do a post request instead of a get. Then you'll just have to add all fields using either Prototype or jQuery form.serialize() method. Christian -Original Message- From

Re: [Stripes-users] problem in finding the ActionBean class by jsp

2008-10-09 Thread Poitras Christian
Did you create the net.sourceforge.stripes.examples.quickstart.CalculatorActionBean class (it's not included with Stripes)? If so, did you include ActionResolver.Packages net.sourceforge.stripes.examples in the St

Re: [Stripes-users] problem in finding the ActionBean class by jsp

2008-10-09 Thread Poitras Christian
use is used in the current quickstart. See it at http://www.stripesframework.org/display/stripes/Quick+Start+Guide Christian -Original Message- From: Poitras Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2008 4:39 PM To: 'Stripes Users List' Subject: Re: [Stripes

Re: [Stripes-users] Eclipse Ganymede (3.4.1) and tag

2008-10-23 Thread Poitras Christian
I know Eclipse europa shows these errors very often when validating pages with el expression. I've never been able to find exactly what type of expression does this, but ${pageContext.request.contextPath} gives me a warning in Eclispe europa. I suggest you investigate further and report this bug

Re: [Stripes-users] Problem with form errors

2008-11-06 Thread Poitras Christian
I believe the error is caused by the impossibility to convert "new" and "existing" to an instance of Client. Do you have an appropriate converter? Or do you really want "new" and "existing" as a Client? Here's your code that breaks : I don't known why you have no error messages. The only think I

Re: [Stripes-users] UrlBinding & Preaction & Setup

2008-11-06 Thread Poitras Christian
You can use DynamicMappingFilter instead of StripesDispatcher. Then you can define any UrlBinding. Take note that you still need to declare StripesFilter (for Stripes settings) when using DynamicMappingFilter. Dynamically maps URLs to ActionBeans. Stripes Dynamic Mapping Fil

[Stripes-users] Custom validation order

2008-11-14 Thread Poitras Christian
Is it possible to specify an order for custom validation methods to be called? Christian - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK

Re: [Stripes-users] Unifying Stripes Application Structure

2008-11-17 Thread Poitras Christian
Personnaly, I would prefer to clearly separate model from Stripes. project-name -- models - User.java -- stripes-app controllers --- LoginAction.java views --- Login.jsp And if you want to put your JSPs in WEB-INF, it would look like. project-name -- models - User.java --

[Stripes-users] Multiple custom validation methods

2008-11-17 Thread Poitras Christian
Hi, I have multiple validation methods that needs to be executed before the event executes. I would like to perform all custom validations even if other custom validations failed. I would also like my custom validation to be called only if binding succeeded. When I try to execute the event, th

Re: [Stripes-users] Fresh Eyes Needed

2008-11-19 Thread Poitras Christian
If you use @StrictBinding, check if you have a @Validate tag for values field. You can also check if you have a setter for values. Christian From: Gregg Bolinger [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 10:11 AM To: Stripes Users List Subject:

Re: [Stripes-users] {$event} cannot be the first element in UrlBinding

2008-11-24 Thread Poitras Christian
The correct syntax is {event}. Christian. From: Jeroen van Wilgenburg [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2008 11:11 AM To: stripes-users@lists.sourceforge.net Subject: [Stripes-users] {$event} cannot be the first element in UrlBinding Hi, I'm

Re: [Stripes-users] issues with stripes indexed check box

2008-11-24 Thread Poitras Christian
It seems a problem with the EL expression. If I'm right, your EL expression ${candidate.id} never gets evaluated even with plain HTML: So the problem is not Stripes, but your container. Unfortunetly, I have no idea of why this expression doesn't get evaluated when other expression are evaluated.

Re: [Stripes-users] issues with stripes indexed check box

2008-11-26 Thread Poitras Christian
Can you check what happens if you try scripting? Christian From: ping lu [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 4:34 PM To: user stripes Subject: Re: [Stripes-users] issues with stripes indexed check box Christian, you are exactly right. I

Re: [Stripes-users] Event binding not handled

2008-12-05 Thread Poitras Christian
Hi, I have experienced problems with events when I had a property with the same name as an event. I can't remember what happened back then, but I might been what you describe. Christian -Original Message- From: KenBarnesJr [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 8:10

Re: [Stripes-users] Indexed checkboxes : WAS Re: Indexed radio buttons

2008-12-18 Thread Poitras Christian
Is there a reason why you need to keep the indexes? I may miss something, but using checkbox and indexes does not seem to be a good implementation since, upon submission, unchecked checkboxes are not submitted... Christian -Original Message- From: Nathan Maves [mailto:nathan.ma...@gmail.

Re: [Stripes-users] Encryption of nested ids within forEach

2009-02-20 Thread Poitras Christian
The s:param seems wrong. It should be Christian -Original Message- From: Richard Hauswald [mailto:richard.hausw...@googlemail.com] Sent: Friday, February 20, 2009 11:27 AM To: Stripes Users List Subject: [Stripes-users] Encryption of nested ids within forEach Hello, I want to encrypt th

Re: [Stripes-users] Newbie Email Verification Questions

2009-03-31 Thread Poitras Christian
Hi, 1) You can use @Validate(encrypted=true) in your first action bean to encrypt user.id and user.email fields. You can also use a suctom formatter and converter to use your secret code mechanism. If you user UrlBinding("/somelink.action/{user.id}/{user.email}"), it will hide the parameter nam

Re: [Stripes-users] Problems with FlashScope - Lifetime of Object

2009-04-20 Thread Poitras Christian
Hi, You have a many possibilities. But unless you put the ActionBean in session (@SessionScope), a new instance will be created for each request. 1) Use @SessionScope. See http://www.stripesframework.org/display/stripes/annotation+reference#annotationreferen...@sessionscope Only one instance of

Re: [Stripes-users] init on app startup (ibatis) (equivalent of struts1 plugin)

2009-05-21 Thread Poitras Christian
Hi, Personally, I use Spring as my DAO framework. So it seems logical to me to initialize iBATIS in Spring. This allows me to initialize the database either in a web app or on a local app in the same way. If you want to initialize iBATIS in a web app, I would prefer to use a SerlvetContextList

Re: [Stripes-users] access session from a TypeConverter

2009-06-08 Thread Poitras Christian
Hi Daniil, There is no simple way of accessing session in a TypeConverter. I've achieved this by using Spring with a session bean. Unfortunetly, I've been forced to do some hacking with Spring so it's context is saved in a static variable. One you do this hack, simply have a TypeConverterFactory

Re: [Stripes-users] access session from a TypeConverter

2009-06-08 Thread Poitras Christian
Another way would be to link session to a ThreadLocal inside an interceptor. Christian From: Daniil Sosonkin [mailto:dan...@orbisfn.com] Sent: Monday, June 08, 2009 10:30 AM To: Stripes Users List Subject: Re: [Stripes-users] access session from a TypeConverter T

Re: [Stripes-users] BeanFirstPopulationStrategy

2009-06-19 Thread Poitras Christian
If you have a property and a method with name "itemNumMfr", this sort of messages can appear. Christian -Original Message- From: Savoy, Melinda [mailto:melindasa...@texashealth.org] Sent: Friday, June 19, 2009 8:03 AM To: 'Stripes Users List' Subject: Re: [Stripes-users] BeanFirstPopulat

Re: [Stripes-users] stripes:options-enumeration

2009-08-03 Thread Poitras Christian
Hi, Try to create a converter/formatter for your enum and make sure it is in found by Stripes. Then you can convert/format your enum with ordinal instead of name. Christian -Original Message- From: massive.boisson [mailto:massive.bois...@gmail.com] Sent: Monday, August 03, 2009 4:47 PM

Re: [Stripes-users] Storing an entity between requests

2009-10-28 Thread Poitras Christian
Full details are here : http://www.stripesframework.org/display/stripes/Save+ActionBean+fields+in+session You can remove the object from session either by setting it to null or removing it from session by it's key. Remove objects from session Just calling session.removeAttribute(key) will not

Re: [Stripes-users] stripes:select doesn't update value correctly

2009-11-17 Thread Poitras Christian
Is it possible that your population strategy is set to net.sourceforge.stripes.tag.DefaultPopulationStrategy (default value)? If so, I suggest you use net.sourceforge.stripes.tag.BeanFirstPopulationStrategy. You can add this to your web.xml StripesFilter configuration: PopulationStrategy.Clas

Re: [Stripes-users] @Session for list

2009-11-18 Thread Poitras Christian
Hi Swarna, There are two problems with your approach. First, @Session cannot be used with checkboxes since unchecked checkboxes are not submitted when not checked. It may work, but it's not a supported feature since it is very likely to fail. Second, if a field with the same name is submitted as

Re: [Stripes-users] ActionBeanConext.getEventName() does not return the correct event when called from the default handler

2010-01-08 Thread Poitras Christian
Another option is to extend AnnotatedClassActionResolver or NameBasedActionResolver and save the submitted event name in request/session. Christian -Original Message- From: DaveMark [mailto:djdavem...@yahoo.co.uk] Sent: Friday, January 08, 2010 9:20 AM To: stripes-users@lists.sourcefor

Re: [Stripes-users] Interceptor Order

2010-03-26 Thread Poitras Christian
Check "CoreInterceptor.Classes" init-param in stripes configuration reference page http://www.stripesframework.org/display/stripes/Configuration+Reference. Here org.stripesstuff.plugin.waitpage.WaitPageInterceptor will be executed first. CoreInterceptor.Classes org.stripesstuff.plugin.wait

Re: [Stripes-users] NumberFormatException for array length???

2010-04-26 Thread Poitras Christian
Hi Sadly, You can use ${fn:length(actionBean.x)} to obtain the length of an array or collection. All you need is import JSTL functions in your JSP. Christian From: Aaron Stromas [mailto:passog...@gmail.com] Sent: Monday, April 26, 2010 3:21 PM To: Stripes Users

Re: [Stripes-users] SecurityManager.Class not called on @ValidationMethod(on = ...) method, is it a bug ?

2010-06-03 Thread Poitras Christian
Hi Laurent, I've looked at the source code of SecurityInterceptor. As long as binding does not generate an error, CustomValidation step is executed prior to checking access. After validation, access is checked only if CustomValidation step generates an error. On EventHandling step, access is ch

Re: [Stripes-users] New to stripes- facing an issue

2010-06-23 Thread Poitras Christian
What you are experiencing is exactly was is obtained with Firefox on any web site with a file input. The only you can obtain a similar behaviour to what you want is by saving the file on the server and show that a file was already uploaded and that the server will use that file if no other file

Re: [Stripes-users] Stripes Development and its Future... (this one is long too)

2010-09-02 Thread Poitras Christian
Hi, I didn't read everything in this post since it's very long, but I will repeat what has been said in the MyBatis mail list. I think it might help to have additional ideas. The MyBatis developers agreed to add more developers in the framework. That was one reason for moving from Apache to Goo

Re: [Stripes-users] The New Stripes Website - WAS: Re: Stripes Development and its Future... (this one is long too)

2010-09-03 Thread Poitras Christian
Aaron, that's great! I've also documented StripesStuff's plugins for @Session and @WaitPage on the Stripes site. http://www.stripesframework.org/display/stripes/Save+ActionBean+fields+in+session http://www.stripesframework.org/display/stripes/Wait+Page+for+Long+Events Christian -Message d'o

Re: [Stripes-users] MockRoundtrip doesn't work with wizard action beans, kinda

2010-09-17 Thread Poitras Christian
You may need to convert the result of CryptoUtil.encrypt() to base64 before adding the parameter. Christian De : Damien Bastin [mailto:banana.ch...@rocketmail.com] Envoyé : September-16-10 10:12 PM À : stripes-users@lists.sourceforge.net Objet : [Stripes-users] MockRoundtrip doesn't work with wi

Re: [Stripes-users] MockRoundtrip doesn't work with wizard action beans, kinda

2010-09-21 Thread Poitras Christian
Thanks! It would be great to add the solution to the wiki too! Christian De : Damien Bastin [mailto:banana.ch...@rocketmail.com] Envoyé : September-21-10 4:17 AM À : Stripes Users List Objet : Re: [Stripes-users] MockRoundtrip doesn't work with wizard action beans, kinda Thanks for your suggest

Re: [Stripes-users] Stripes Development and its Future... (long)

2010-10-05 Thread Poitras Christian
A problem with the Spring approach is that parameter names are not accessible by reflection. The consequence is that if you have method like public void substract(int param1, int param2) It will be difficult to pass the parameters in the right order. You will need either the source code to find t

Re: [Stripes-users] Stripes Development and its Future... (long)

2010-10-05 Thread Poitras Christian
l be bound correctly without the need for the annotations. Or is that what you meant by "you will need the source code"? Cheers, Freddy On Tue, 5 Oct 2010 08:36:43 -0400, "Poitras Christian" said: > A problem with the Spring approach is that parameter names are not > accessi

Re: [Stripes-users] Associating Parameters to Specific Actions

2010-10-05 Thread Poitras Christian
egards, > > --Nikolaos > > > > > Evan Leonard wrote: >> Here's an interesting approach from the waffle framework. It uses >> annotations, but lists all the parameter names in a single annotation. >> >> @ActionMethod(parameters = {"fi

Re: [Stripes-users] Associating Parameters to Specific Actions

2010-10-06 Thread Poitras Christian
ality. On Oct 5, 2010, at 2:36 PM, Poitras Christian wrote: > The downside of using 2 binders is that it's difficult to mix both approach. > > Still, it would seem bizarre to have both approach in the same program... > > -Message d'origine- > De : Evan Leona

Re: [Stripes-users] Rather basic question about flashScope and ValidationErrors

2010-10-08 Thread Poitras Christian
Hi, Errors don't survive the redirect. Only messages do. One thing you can do is to save errors in context.getMessages("errors") and get them back on the next request. This solutions may force you to create a subclass of MessagesTag. Another option is to save errors in flash scope and get them b

Re: [Stripes-users] re quest/response scoping

2011-03-03 Thread Poitras Christian
Hi Tony, Personally, I would code the action bean differently making it look almost exactly like the Spring version. // ANNOTATIONS, GETTERS AND SETTERS OMITTED FOR BREVITY class MyActionBean extends BaseActionBean { private User user; Resolution deleteUser() { user

Re: [Stripes-users] Index Properties + Null Values

2011-03-15 Thread Poitras Christian
Maybe a better solution is to provide default values as empty/null strings in the action bean's property. So if your property look like private List messages; Try adding an initialisation method like @Before(stages=LifecycleStage.BindingAndValidation) public void populateDefaultMessages() {

Re: [Stripes-users] Cannot get simple validation to work

2011-08-16 Thread Poitras Christian
Hi, As a side note, getters and setters are optional for public attributes. So this kind of validation will work. @Validate(required=true, on="myEvent") public String myProperty; // No getter/setter. Christian -Message d'origine- De : Thomas Menke [mailto:stripe...@cipher-code.de] Envo

Re: [Stripes-users] s:hidden value transfer issue

2011-10-04 Thread Poitras Christian
As an additional information, Stripes uses the value of a tag only if it cannot find a suitable value in your action bean. Since the lidNumber property has a value of 0, it is considered suitable and value is ignored. The best way to initialize properties of an ActionBean is with a method annota

Re: [Stripes-users] Stripes Stuff Security manager

2011-10-04 Thread Poitras Christian
Hi Nathan, I can commit the change if you plan to build it from source. Christian De : Nathan Maves [mailto:nathan.ma...@gmail.com] Envoyé : October-04-11 12:17 PM À : Stripes Users List Objet : [Stripes-users] Stripes Stuff Security manager Not sure if anyone is still working on this project.

Re: [Stripes-users] Stripes Stuff Security manager

2011-10-04 Thread Poitras Christian
break; } } } } On Oct 4, 2011, at 11:28 AM, Poitras Christian wrote: Hi Nathan, I can commit the change if you plan to build it from source. Christian De : Nathan Maves [mailto:nathan.ma...@gmail.com] Envo

Re: [Stripes-users] Stripes Stuff Security manager

2011-10-04 Thread Poitras Christian
break; } } } } On Oct 4, 2011, at 11:28 AM, Poitras Christian wrote: Hi Nathan, I can commit the change if you plan to build it from source. Christian De : Nathan Maves [mai

Re: [Stripes-users] File inputs with the new "multiple" attribute

2012-01-12 Thread Poitras Christian
Hi, I've managed to create a workarounf for this a while ago. I thought about adding it to StripesStuff project, but it would be better if it was in Stripes itself. I think it would be easy to change it so that we won't need to add a "[0]" at the end of the name element. In the ActionBean:

Re: [Stripes-users] File inputs with the new "multiple" attribute

2012-01-12 Thread Poitras Christian
7 PM, Mike McNally mailto:emmecin...@gmail.com>> wrote: whoa that's awesome ... I'll def. give that a try. Thanks!!! On Thu, Jan 12, 2012 at 1:19 PM, Poitras Christian mailto:christian.poit...@ircm.qc.ca>> wrote: > Hi, > > I've managed to create a workarounf for th

Re: [Stripes-users] Stripes:select: force to use the value attribute?

2012-02-10 Thread Poitras Christian
Hi, To answer to your questions: 1. Yes, it's the intended behaviour. As it's specified in most Stripes' tags like text (http://stripes.sourceforge.net/docs/current/taglib/stripes/text.html), Stripes tag uses the value attribute only if the ActionBean's properties is unavailable. 2. As you can

Re: [Stripes-users] Stripes:select: force to use the value attribute?

2012-02-13 Thread Poitras Christian
oyé : February-11-12 7:08 PM À : Stripes Users List Objet : Re: [Stripes-users] Stripes:select: force to use the value attribute? On 02/10/2012 02:55 PM, Poitras Christian wrote: > Hi, > > To answer to your questions: > 1. Yes, it's the intended behaviour. As i

Re: [Stripes-users] Proposal: Page Scope

2012-04-03 Thread Poitras Christian
Hi, For binding Stripes always binds shortest parameters first. So if you have these two bindings: "customer" will always be bound before "customer.name". This makes sense to me. Christian De : Rick Grashel [mailto:rgras...@gmail.com] Envoyé : April-03-12 8:52 AM À : Stripes Users List Objet

[Stripes-users] StripesStuff 0.3 released

2012-05-01 Thread Poitras Christian
StripesStuff 0.3 is available for download from Sourceforge. This is a minor bug fix release. Sourceforge download: https://sourceforge.net/projects/stripes-stuff/files/StripesStuff/ Christian -- Live Security Virtual Co

Re: [Stripes-users] StripesStuff 0.3 released

2012-05-01 Thread Poitras Christian
inters too. Christian -Message d'origine- De : Nathan Maves [mailto:nathan.ma...@gmail.com] Envoyé : May-01-12 2:47 PM À : Stripes Users List Objet : Re: [Stripes-users] StripesStuff 0.3 released awesome news thanks! On Tue, May 1, 2012 at 11:36 AM, Poitras Christian wrote: > S

Re: [Stripes-users] Mapping Root of Web App to an Action using Dynamic Mappings

2012-05-16 Thread Poitras Christian
Hi, You can add this kind of code in your action bean to fake a 404 until the bug is solved. if (!context.getRequest().getServletPath().equals("/")) { return new ErrorResolution(HttpServletResponse.SC_NOT_FOUND); } Christian -Message d'origine- De : gshegosh

Re: [Stripes-users] @WaitPage pure AJAX

2012-05-18 Thread Poitras Christian
Hi, I think it's possible even though I didn't try myself. The trick is to use the "path" attribute to return some content to Ajax to indicate that the event is currently being executed. This path should also return validation errors so that your Ajax code can update the page and show the error

Re: [Stripes-users] internal form refresh after validation

2012-08-20 Thread Poitras Christian
Hi, I usually use @Before(stages=LifecycleStage.ResolutionExecution) to populate the values that will appear in a select. That way, my values are always present even if the validation fails and my handler is not invoked. Christian De : Aaron Stromas [mailto:passog...@gmail.com] Envoyé : Augus

Re: [Stripes-users] Stripes WaitPageInterceptor Issue

2012-10-31 Thread Poitras Christian
Hi, I don't think it's currently possible for @WaitPage to run on multiple server. It was not programmed to support a multi-server environment. I don't think it can support sticky sessions right now, but it may be possible to change the code to make it work. The best thing you can do is look at

Re: [Stripes-users] Stripes Problem

2013-01-07 Thread Poitras Christian
Hi, What is the method that seems to be the problem? If it's the addProduct method, then something is wrong in your code sample because you cannot redirect to a resource under the WEB-INF folder. Only Forwards are allowed. public Resolution addProduct() { // Removed irrelevant code.

Re: [Stripes-users] interceptor for JSP pages

2013-02-12 Thread Poitras Christian
Hi, Maybe the Interceptors are not run for JSPs because it's not an ActionBean instance. I guess most lifecycle stages are skipped because they simply don't make sense. In such a case, you may have better luck using the RequestInit and RequestComplete lifecycle stages. Christian De : Marcus K

Re: [Stripes-users] Exception handler not working

2013-02-12 Thread Poitras Christian
Hi, Try to call super.init(configuration) here: public void init(Configuration configuration) throws Exception { super.init(configuration); } Christian De : Venkat Ravuri [mailto:ravuri.ven...@gmail.com] Envoyé : February-11-13 6:41 PM À : stripes-users@lists.sourceforge.net Objet : [Stripes-us

Re: [Stripes-users] FlashScope

2013-02-21 Thread Poitras Christian
Hi, FlashScope is meant to be used for the Redirect-After-Post pattern, basically : 1) ActionBean changes something on the server (usually database). 2) ActionBean redirects to another/same ActionBean to prevent double submit if user press refresh. Current ActionBean wants to save information for

Re: [Stripes-users] Encrypted field by stripes

2013-03-05 Thread Poitras Christian
Hi, Can you post you JSP page and ActionBean? That will help to find the problem. Christian -Message d'origine- De : - [mailto:grandebu...@gmail.com] Envoyé : March-05-13 9:17 AM À : Stripes Users List Objet : Re: [Stripes-users] Encrypted field by stripes Can someone help me with a so

  1   2   >