Re: [Stripes-users] stripes and log4j2

2014-03-25 Thread Levi Hoogenberg
Stripes uses Commons Logging to abstract away from specific logging implentations, so simply using the Log4j2 implementation of that API should do the trick: http://logging.apache.org/log4j/2.x/log4j-jcl/index.html Regards, Levi 2014-03-25 15:35 GMT+01:00 Jens Grüntjes

Re: [Stripes-users] [ASK] Stripes with Popup Selection

2013-10-20 Thread Levi Hoogenberg
in this message are those of the individual sender and may not necessarily reflect the views of PT GASI.* On Sun, Oct 20, 2013 at 6:23 AM, Levi Hoogenberg levihoogenb...@gmail.com wrote: You could replace your (div and) jsp:include with a c:import (to an action that provides the popup div

Re: [Stripes-users] [ASK] Stripes with Popup Selection

2013-10-19 Thread Levi Hoogenberg
You could replace your (div and) jsp:include with a c:import (to an action that provides the popup div). This way, reusing the jsp with the popup form becomes easier as well (when a submit results in validation errors for instance). Alternatively, you could remove the import altogether and load

Re: [Stripes-users] actionBean namespace

2011-11-20 Thread Levi Hoogenberg
Or you could implement ELResolver and register it with the JspApplicationContext inside a ServletContextListener. 2011/11/20 ted_smith2...@comcast.net in the view when I need to reference a property in action bean, I must always use ${actionBean.propertyName} Is there any setting to enable

Re: [Stripes-users] Simple Stripes Example

2011-07-24 Thread Levi Hoogenberg
Newer EL versions do support method calls, but I don't think that's the problem here [yet ;)]. OP, are you using version 2.3 of the servlet spec (in web.xml)? It should be at least 2.4. Op 24 jul. 2011 13:33 schreef Thomas Menke stripe...@cipher-code.de het volgende:

Re: [Stripes-users] Calling methods from JSP

2011-04-02 Thread Levi Hoogenberg
The more (most? I'm not sure) recent EL versions do allow method invocation, by the way... so if you can upgrade, you don't have to use any workarounds. Op 2 apr 2011 23:43 schreef Freddy Daoud xf2...@fastmail.fm: Nice writeup Joel and good to have for a quick reference. Thomas, I know your

Re: [Stripes-users] Anyway to Redirect to an external page?

2011-01-22 Thread Levi Hoogenberg
Isn't there a second constructor that accepts a boolean value, /prepend context path/? Op 22 jan 2011 09:18 schreef Yee yeec...@gmail.com: No luck yet. I tried doing return new RedirectResolution(https://subdomain1.mydomian.com/myApp/userHome.action;). It gives an error that says: The

Re: [Stripes-users] Smarter RedirectResolution To Clean URL?

2010-11-20 Thread Levi Hoogenberg
Why are you using {_eventName} instead of {$event}? Op 20 nov 2010 19:29 schreef Nikolaos Giannopoulos nikol...@brightminds.org: gshegosh, Much Appreciated. The following was 99% there: return (new RedirectResolution(ArticleActionBean.class, view).addParameter(authorId,

Re: [Stripes-users] Maven project hosting, syncing to central (#2)

2010-09-03 Thread Levi Hoogenberg
An alternative would be to setup a custom repository - that way, the only step that's necessary but wouldn't be when synching to Maven central is adding that repository to the POM file (a really small nuisance if you ask me). Of course, if a synch with the default repository is possible, that

Re: [Stripes-users] Database backed Resource Bundle Blog Entry

2010-08-11 Thread Levi Hoogenberg
The only way to do this (AFAIK) is to create a LocalizationContext with your custom resource bundle and invoke Config.set [ http://download-llnw.oracle.com/javaee/5/jstl/1.1/docs/api/javax/servlet/jsp/jstl/core/Config.html#set(javax.servlet.ServletContext,%20java.lang.String,%20java.lang.Object)]

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Levi Hoogenberg
the population strategy, it's a global change for the whole application. It might affect something else, if I do so and I'll need to do regression testing, correct? -a On 13 July 2010 14:00, Levi Hoogenberg levihoogenb...@gmail.com wrote: You can change the population strategy to bean first

Re: [Stripes-users] Cleaning out the value after validation

2010-07-13 Thread Levi Hoogenberg
the strategy indeed affects something else? It would have to be recoded. Is there no way of avoiding the global change, to restricting its scope? On 13 July 2010 14:36, Levi Hoogenberg levihoogenb...@gmail.com wrote: Yes, that's correct. Yet another reason to be disciplined when it comes

Re: [Stripes-users] stripersist: recreating (drop/create) a database

2010-07-13 Thread Levi Hoogenberg
You could run each test inside a transaction - just rollback after each test [method] and you're golden. On Tue, Jul 13, 2010 at 11:01 PM, Lev d...@plektos.com wrote: On Tue, Jul 13, 2010 at 1:31 PM, Oscar Westra van Holthe - Kind os...@westravanholthe.nl wrote: On 13-07-2010 at 12:01,

Re: [Stripes-users] Binary valued property in ActionBean

2010-07-12 Thread Levi Hoogenberg
This doesn't work, since the value of the src attribute should be a URL that points to image data, not the data itself. Fortunately, there's an easy way to create this mapping. In your action bean, you need an event handler that streams the image data: @HandlesEvent(image) public Resolution

Re: [Stripes-users] Issue with validation when form is dynamiclly created

2010-06-23 Thread Levi Hoogenberg
Which version of Stripes are you using? It sounds like you would like to use the BeanFirstPopulationStrategy (the default in recent versions), but are using the former default, the name of which I can't remember. That, or you're missing a hidden field. Op 23 jun. 2010 om 14:42 heeft David

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

2010-06-23 Thread Levi Hoogenberg
This is normal behaviour (not related to Stripes) and is the way it is for security reasons. Op 23 jun. 2010 om 16:19 heeft Ravinder Kumar ravinder@gmail.com het volgende geschreven: Hi, m very new to stripes. m facing an issue related to file upload. 1. i have a web form in which

Re: [Stripes-users] ActionBean initialization

2010-04-28 Thread Levi Hoogenberg
You could use a ServletContextListener and store your configuration in the servlet context in contextInitialized(). Action beans can access the servlet context via their action bean contexts. Regards, Levi On Wed, Apr 28, 2010 at 2:25 PM, essey es...@hotmail.com wrote: Hi, how would I

Re: [Stripes-users] Proposal: @UrlBinding annotation thatincludes(sub)domain names

2009-12-28 Thread Levi Hoogenberg
I was about to post the same, but Eclipse accepts this without complaints. On Mon, Dec 28, 2009 at 8:24 PM, Ben Gunter gunter...@gmail.com wrote: Doing so would break existing code because if we add any new elements to the @UrlBinding annotation then the shorthand form @UrlBinding(/blah)

Re: [Stripes-users] Best way to test redirects with url bindings

2009-12-14 Thread Levi Hoogenberg
Something like SettingsMenuAction.class.getAnnotation (UrlBinding.class).value() should do the trick. Levi Op 14 dec 2009 om 23:49 heeft Nathan Maves nathan.ma...@gmail.com het volgende geschreven:\ right now I have an action like @UrlBinding(/settings) public class

Re: [Stripes-users] Multiple URL bindings per action

2009-10-04 Thread Levi Hoogenberg
There are a couple of Stripes classes that assume a one on one relationship between action beans and URL bindings. One example is the URL binding factory. This is a design choice that's probably hard to change - one implication of allowing multiple URL bindings per action bean is ambiguity when

Re: [Stripes-users] stripes:hidden binding order (and boolean properties)

2009-09-17 Thread Levi Hoogenberg
I don't see why a body would be more important than an attribute; do you have an example of a tag for which this is the case? What you could do is use a regular HTML input tag; that way, you can be certain that Stripes won't change its value. Levi Op 17 sep 2009 om 05:09 heeft Brandon

Re: [Stripes-users] Getting a constant value from an action bean in a link param

2009-08-13 Thread Levi Hoogenberg
Depending on which EL version you're using, you could also extend ElResolver (and register it). Not sure if that would be worth the trouble, though. On Thu, Aug 13, 2009 at 9:50 PM, M@ Hunter technologyro...@gmail.comwrote: Hi, I'm trying to add the value of a constant from my action bean to

Re: [Stripes-users] catalina.policy file in Tomcat with security manager

2009-08-12 Thread Levi Hoogenberg
Hello, this is caused by the fact that Stripes performs a System.getProperties() call the StripesFilter. There are two ways around it: - subclass StripesFilter to avoid the call; - edit your security settings to allow the call. I'm no SecurityManager expert, but the line you need

Re: [Stripes-users] catalina.policy file in Tomcat with security manager

2009-08-12 Thread Levi Hoogenberg
A few corrections to my previous mail: the offending line is a System.getProperty(...) call and is done by the BootstrapPropertyResolver. So that's the class to subclass (and configure) if you would like to override the behaviour. On Wed, Aug 12, 2009 at 8:25 PM, Levi Hoogenberg levihoogenb

Re: [Stripes-users] Adding freemarker servlet into stripes mock container tests?

2009-04-14 Thread Levi Hoogenberg
Hi John, I've done this for my personal website. I'm not using FreeMarker, though; it's based on Jelly. The nice thing about it is apart from that you can test that no exceptions are thrown while executing the templates (as you mentioned), you can check the output as well (e.g. when there hasn't

Re: [Stripes-users] stripes:link tag and jsessionId

2009-03-31 Thread Levi Hoogenberg
On Wed, Apr 1, 2009 at 12:03 AM, marc marcv...@hotmail.com wrote: If i turn cookies off, the jsessionid shows up again for all links generated using a stripes:link tag. And you'd like to have these gone as well? You do use the session, right? Then the jsessionid parameter is a (very small)

Re: [Stripes-users] problems binding boolean bean property to hidden input field

2009-03-19 Thread Levi Hoogenberg
Does it make any difference whether you name your getter *isApricot*? On Thu, Mar 19, 2009 at 5:12 PM, Mike McNally emmecin...@gmail.com wrote: On Thu, Mar 19, 2009 at 11:01 AM, Ben Gunter gunter...@gmail.com wrote: Do you get the same behavior using both DefaultPopulationStrategy and

Re: [Stripes-users] Quest on removing data in error during wizard

2009-03-17 Thread Levi Hoogenberg
Hi Melinda, I guess that the *fields present*-parameter (_fp) is causing this behaviour - it contains the names of all of the fields that are used in the current wizard step. I haven't been using wizards much, so I'm not sure how you could work around this. Maybe someone else could shine a light

Re: [Stripes-users] Stripes and Cayenne - getContext is null (sometimes)

2009-02-27 Thread Levi Hoogenberg
Hi Dan, when you do private Firm firm = (Firm) getContext().getDataContext().newObject(Firm.class); firm is being assigned a value as soon as the action bean is instantiated. That means that Stripes has not had the chance to set a context when you try to retrieve it. A number of options to

Re: [Stripes-users] Stripersist OutOfMemoryError for PermGen space

2009-02-24 Thread Levi Hoogenberg
Hi, this is normal behaviour when using frameworks that create classes on the fly - each loaded class takes a part of the permanent heap space (which does not expand and doesn't reclaim memory after old classes unload). Both Hibernate (entities) and Stripes-Reload (action beans) redefine classes

Re: [Stripes-users] lifecycle stages being executed twice

2009-02-20 Thread Levi Hoogenberg
Long shot: are you using Stripes 1.5 and declaring BeforeAfterMethodInterceptor inside web.xml under the key Interceptor.Classes? On Fri, Feb 20, 2009 at 9:23 PM, zkn z...@abv.bg wrote: Hi, in my application all methods annotated with @Before ot @After are being executed twice. The full log

Re: [Stripes-users] pre-selecting entity in select box

2009-02-14 Thread Levi Hoogenberg
You have to make sure that your event getter (on SwitchEventActionBean) returns the current project. You can do this in a before method (a method that's marked with @Before) or in a pre-action, if you have any. Regards, Levi On Sat, Feb 14, 2009 at 4:16 PM, Eric Palmitesta

Re: [Stripes-users] BeforeAndAfter is loaded twice

2009-01-27 Thread Levi Hoogenberg
Since 1.5, the BeforeAfterInterceptor is a core interceptor (you can configure those with the CoreInterceptor.Classes parameter). You don't have to configure it as a regular interceptor anymore. In fact, I think that was the whole point of making it a core interceptor - so that you don't have to

Re: [Stripes-users] Session attributes

2008-12-08 Thread Levi Hoogenberg
You can access the HTTP session from within action beans by doing the following: getContext().getRequest().getSession(false) It will return null if there's no session (yet). You can also pass true as parameter or use the getSession() method which will create a session if it isn't available. On

Re: [Stripes-users] Interceptor invocation order

2008-12-03 Thread Levi Hoogenberg
I've been thinking about this lately - an @AutoloadOrder(int value) would solve this quite nicely (and has the added benefit of being so generic that it could be used for other autoloaded, ordered configurable components as well). Levi On Wed, Dec 3, 2008 at 5:46 PM, Nathan Maves [EMAIL

Re: [Stripes-users] Interceptor invocation order

2008-12-03 Thread Levi Hoogenberg
-guicer plugin - that interceptor doesn't have any dependencies; all it cares for is that it's the first one to run. Levi On Wed, Dec 3, 2008 at 8:32 PM, Oscar Westra van Holthe - Kind [EMAIL PROTECTED] wrote: On 03-12-2008 at 19:54, Levi Hoogenberg wrote: I've been thinking about this lately

Re: [Stripes-users] Chart Libraries

2008-12-01 Thread Levi Hoogenberg
Something that may or may not be a disadvantage of using Google Charts is that you have to be on line to be able to use it. On Mon, Dec 1, 2008 at 5:22 PM, Philip Constantinou [EMAIL PROTECTED] wrote: One other option is Google Charts: http://code.google.com/apis/chart/ I haven't done more

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

2008-11-20 Thread Levi Hoogenberg
I think the problem is that your container does not evaluate EL (your ${ candidate.id}). Are you by any chance using a web.xml that targets version 2.3 of the servlet spec? On Thu, Nov 20, 2008 at 11:15 PM, ping lu [EMAIL PROTECTED] wrote: Hi, all, while playing with Stripes indexed check

Re: [Stripes-users] Question about stripes spring integration

2008-11-17 Thread Levi Hoogenberg
Though there is a difference between Stripes' wiring and Spring's: if you have the same dependency in a class and its superclass, Stripes will not inject the superclass. (I'm talking about field injection here.) On Mon, Nov 17, 2008 at 5:50 AM, Gregg Bolinger [EMAIL PROTECTED]wrote: The only

Re: [Stripes-users] Question about form construction

2008-11-07 Thread Levi Hoogenberg
You might want to look into type converters (see http://www.stripesframework.org/display/stripes/Validation+Reference, the Type Conversion section). That way, the ID (or any other unique field that you choose) is indeed enough and you can have a setter that accepts the entity. I believe that the

Re: [Stripes-users] Custom ActionResolver implementation pains

2008-11-01 Thread Levi Hoogenberg
Could you give an example of a limitation you ran into? I've read your mail a couple of times now and I don't understand what a context object would add. (It could be the type parameter for the ManageEntityActionBean, but I'm not sure.) Another question: what functionalities would this

Re: [Stripes-users] Custom ActionResolver implementation pains

2008-11-01 Thread Levi Hoogenberg
Alright, then I see your point. I don't know how many entities you would like to manage, but creating a subclass per entity would work around it, of course (not that you hadn't thought of that yourself). That'd be very KISS as well - I get the impression that your current approach could be doing

Re: [Stripes-users] BootstrapPropertyResolver.getProperty(...)

2008-10-31 Thread Levi Hoogenberg
Exactly. (I'd write getProperty a bit differently though.) You could call setBootstrapPropertyResolver from the constructor or from within init(). On Fri, Oct 31, 2008 at 9:32 AM, dbrownell83 [EMAIL PROTECTED]wrote: Thanks for the help on this one. It looks like I might eventually get my app

Re: [Stripes-users] freemaker templates under the WEB-INF

2008-10-21 Thread Levi Hoogenberg
Or you could subclass FreemarkerServlet and test wether the response has been forwarded or not. The code inside doGet/doPost would look something like if (request.getAttribute(javax.servlet.forward.servlet_path) == null)) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } else {

[Stripes-users] Dynamic default values in clean URLs

2008-10-16 Thread Levi Hoogenberg
Hi, I'm having a feature request and before filing an issue, I would like to have other users' opinions on its necessity. Anyway, in clean URLs you can use defaults for parameter values: @UrlBinding(/members/{page=1}) This default value helps when building an URL (e.g. with the stripes:url and

Re: [Stripes-users] Can i get the ActionContext in a non ActionBean class?

2008-10-06 Thread Levi Hoogenberg
And if you use Spring, you can use their request context holder ( http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/context/request/RequestContextHolder.html). I tend to pass the current user from my action beans to my services when needed, though. On Mon, Oct 6,

Re: [Stripes-users] Unable to instantiate type converter class... but why?

2008-09-30 Thread Levi Hoogenberg
There's no stopping people from replying to your e-mail, no :) On Wed, Oct 1, 2008 at 12:53 AM, smox [EMAIL PROTECTED] wrote: Is there a way to close a thread when it has become answered? - This SF.Net email is sponsored

Re: [Stripes-users] Problem with stripes:option input tag in stripes 1.5

2008-08-27 Thread Levi Hoogenberg
Depending on your target audience, setting a padding-left/-right on option tags works in Firefox (but not in Safari or IE6 - IE7 I can't tell at the moment). On Wed, Aug 27, 2008 at 2:56 PM, Eirik Lied [EMAIL PROTECTED] wrote: Hello. I have been using stripes:option and

Re: [Stripes-users] Problem with stripes:option input tag in stripes 1.5

2008-08-27 Thread Levi Hoogenberg
Or you could use the optgroup tag, if that suits your situation. On Wed, Aug 27, 2008 at 3:29 PM, Levi Hoogenberg [EMAIL PROTECTED]wrote: Depending on your target audience, setting a padding-left/-right on option tags works in Firefox (but not in Safari or IE6 - IE7 I can't tell at the moment

Re: [Stripes-users] maps and @ValidateNestedProperties

2008-08-19 Thread Levi Hoogenberg
Followup: Stripes *does* process the validation annotations, but adds validation errors under the key preferences.PAGE_SIZE instead of the expected preferences[PAGE_SIZE]. On Mon, Aug 18, 2008 at 10:38 PM, Levi Hoogenberg [EMAIL PROTECTED]wrote: Hi, today I've been binding into a Map

Re: [Stripes-users] maps and @ValidateNestedProperties

2008-08-19 Thread Levi Hoogenberg
? *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Levi Hoogenberg *Sent:* Tuesday, August 19, 2008 2:27 AM *To:* Stripes Users List *Subject:* Re: [Stripes-users] maps and @ValidateNestedProperties Followup: Stripes *does* process the validation annotations, but adds

Re: [Stripes-users] problem in stripes:file

2008-08-18 Thread Levi Hoogenberg
If varStatus=loop is the only attribute you're passing to c:forEach, then you're missing some attributes: either begin/end or items. The 'var' attribute is optional, but can be handy. On Mon, Aug 18, 2008 at 5:56 PM, Stripes-payal [EMAIL PROTECTED] wrote: Thanks for the reply... has one

Re: [Stripes-users] Introducing Stripes-Reload

2008-08-12 Thread Levi Hoogenberg
I must say that that it's a very cool idea to rewrite framework classes to avoid having to patch them. Even more fine-grained than an AOP approach. @Freddy: I haven't had time to look at the source code, but how will stripes-reload handle session-scoped action beans? I figured that that would be

Re: [Stripes-users] Clean Urls and the stripes:form tag

2008-08-11 Thread Levi Hoogenberg
On Sun, Aug 10, 2008 at 9:54 PM, Gregg Bolinger [EMAIL PROTECTED]wrote: IDE's refactor you know. So this shouldn't be a problem. Plus, how often do you really move a class around? They do? That sounds great, I really should look into that ;) I do tend to rename some of my classes, yes - I

Re: [Stripes-users] not clearing the fields after forward Resolution

2008-08-11 Thread Levi Hoogenberg
You could try a redirect resolution? On Mon, Aug 11, 2008 at 9:42 PM, Stripes-payal [EMAIL PROTECTED] wrote: hi, i have a page called test.jsp having submit button and text fields, related action class. after subbmiting the page i forward it to the same page using forward Resolution. it

Re: [Stripes-users] not clearing the fields after forward Resolution

2008-08-11 Thread Levi Hoogenberg
Either using OnwardResolution#set/addParameter, or (it's more likely that you mean this) using the flash scope. See http://stripesframework.org/display/stripes/State+Management. On Mon, Aug 11, 2008 at 10:01 PM, Stripes-payal [EMAIL PROTECTED] wrote: thanks for y'r replies, one more thing How

Re: [Stripes-users] how to determine if there were errors on a page

2008-08-10 Thread Levi Hoogenberg
The validation errors are stored in the action bean context, so a simple c:if test=${not action.context.validationErrors.empty !-- display errors -- /c:if should do the trick. Alternatively, you could use the stripes:errors tag with nested errors-header, errors-footer and individual-error

Re: [Stripes-users] Clean Urls and the stripes:form tag

2008-08-10 Thread Levi Hoogenberg
On Sun, Aug 10, 2008 at 9:32 PM, Gregg Bolinger [EMAIL PROTECTED]wrote: Well, there are a couple of things here. First, you should really use the beanclass attribute of the s:form tag. Stripes will then determine your action for you. That way, if you decide to change your UrlBinding you

Re: [Stripes-users] Error on Validation Annotation

2008-08-08 Thread Levi Hoogenberg
Well, does StripesResources.properties contain the key? On Fri, Aug 8, 2008 at 7:22 PM, Stripes-payal [EMAIL PROTECTED] wrote: I added the annotaion validation in bean class say: @Validate(required=true) private String username; but when i try executing my jsp,with username as a blank

Re: [Stripes-users] Error on Validation Annotation

2008-08-08 Thread Levi Hoogenberg
Ah! What happens when you move it to WEB-INF/classes? On Fri, Aug 8, 2008 at 10:55 PM, Stripes-payal [EMAIL PROTECTED] wrote: Yes ,I checked property file it has the key and value both... I am using eclipse and keeps the property file in WEB_INF lib levi_h wrote: Well, does

Re: [Stripes-users] Stripes actionbean as default welcome page

2008-08-06 Thread Levi Hoogenberg
You have two options (depending on your servlet container, though): - you can do a meta refresh or a c:redirect from your actual home page; - you can change your welcome file to Home.action - for this to work, you'll have to create a file named Home.action, which can be empty. Levi On Wed,

Re: [Stripes-users] Stripes actionbean as default welcome page

2008-08-06 Thread Levi Hoogenberg
Well, that makes it a no-brainer then... but is this since Tomcat 6, or has it always worked that way? On Wed, Aug 6, 2008 at 7:54 PM, Oscar Westra van Holthe - Kind [EMAIL PROTECTED] wrote: On 06-08-2008 at 14:37, Levi Hoogenberg wrote: You have two options (depending on your servlet

Re: [Stripes-users] Nested Validation

2008-07-26 Thread Levi Hoogenberg
You could also take a look at the expression property of @Validate: http://stripesframework.org/display/stripes/[EMAIL PROTECTED](expression%3D%22%24\%22) On Sat, Jul 26, 2008 at 6:56 AM, Brian Wawok [EMAIL PROTECTED] wrote: Ah good Idea, I didn't think about working backwards and removing the

Re: [Stripes-users] Newbie question: Jasper exception - annotation issue

2008-07-25 Thread Levi Hoogenberg
You mention that it took some time to get the deployer JARs right - I'm not exactly sure what you mean by that, but I do think that that's the source of your problems. If you download a Tomcat ZIP from tomcat.apache.org, extract it, and deploy the quickstart application that comes with Stripes (by

Re: [Stripes-users] AJAX form success/validation error flag

2008-07-08 Thread Levi Hoogenberg
Hi Freddy, the response header seems to be the most suitable option. Setting it should be as easy as return new ForwardResolution(/path/to/your/page.jsp) { @Override public void execute(HttpServletRequest request, HttpServletResponse response) throws

Re: [Stripes-users] Grabbing the Current Resolution

2008-06-23 Thread Levi Hoogenberg
When you define an Interceptor, Stripes passes an ExecutionContext. This object contains the resolution. I'm not sure, but I don't think that the BeforeAfterMethodInterceptor hands @Before/@After methods the execution context (it would be nice, though, to have the interceptor support an optional

Re: [Stripes-users] Grabbing the Current Resolution

2008-06-23 Thread Levi Hoogenberg
that intercepts like this: @Before(LifecycleStage.ResolutionExecution) Will the method be called when there's a binding/validation error, or is it totally skipped? -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Levi Hoogenberg *Sent

Re: [Stripes-users] Conditional Validation

2008-06-11 Thread Levi Hoogenberg
Something else that might work for you is using validation expressions: @Validate(expression = (not includeName) or (includeName ne null)) public String getName() {return name;} (See http://mc4j.org/confluence/display/stripes/Validation+Reference) The disadvantage, however, is that you have to

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

2008-05-29 Thread Levi Hoogenberg
Then you'd probably want to use @DontBind rather than @DontValidate (see http://mc4j.org/jira/browse/STS-288). On Thu, May 29, 2008 at 11:38 AM, SivaKumarl [EMAIL PROTECTED] wrote: Hi Friends, I have a field with int datatype in action,while i submitting form with the string value its

Re: [Stripes-users] How to write if condition in expression attribute

2008-05-22 Thread Levi Hoogenberg
I'm sorry, the second one is rubbish, of course. On Thu, May 22, 2008 at 1:45 PM, Levi Hoogenberg [EMAIL PROTECTED] wrote: Probably something like ((no1 eq 1) or (no2 eq 2)) ? (this gt 1) : (this ge 1) or, if that won't work for some reason, (((no1 eq 1) or (no2 eq 2)) and (this gt 1

Re: [Stripes-users] How to write if condition in expression attribute

2008-05-22 Thread Levi Hoogenberg
Probably something like ((no1 eq 1) or (no2 eq 2)) ? (this gt 1) : (this ge 1) or, if that won't work for some reason, (((no1 eq 1) or (no2 eq 2)) and (this gt 1)) or (this ge 1) On Thu, May 22, 2008 at 1:00 PM, SivaKumarl [EMAIL PROTECTED] wrote: Hi friends, I want to validate a

Re: [Stripes-users] More feedback needed

2008-05-16 Thread Levi Hoogenberg
Hi, a possible alternative could be to roll your own and still encode URLs, but only for a subset of the characters that URLEncoder escapes. Kind regards, Levi We have an open issue requesting that clean URL parameters be URL-encoded. http://stripesframework.org/jira/browse/STS-559 This