Interceptor proposal: BeforeValidationInterceptor

2009-08-31 Thread Alex Siman
implement {...@link BeforeValidationAware}. This interceptor * is very useful for any situation, where you need to clean up or modify some * parameters just after all parameters are set but before validation and * action method invoked. * * @see BeforeValidationAware * * @author Alex Siman

Re: Interceptor proposal: BeforeValidationInterceptor

2009-08-31 Thread Alex Siman
Sorry, I forgot about "com.opensymphony.xwork2.interceptor.PrepareInterceptor". Alex Siman wrote: > > In my project I use the following simple but logically useful interceptor. > Maybe Struts community will found its useful too. > > BeforeV

JUnit Plugin: Little refactoring

2009-09-17 Thread Alex Siman
// From protected ActionMapping getActionMapping(String url) { MockHttpServletRequest req = new MockHttpServletRequest(); req.setRequestURI(url); return Dispatcher.getInstance().getContainer().getInstance(ActionMapper.class).getMapping(req, Dispatcher.ge

Re: JUnit Plugin: Little refactoring

2009-09-17 Thread Alex Siman
gt; On Thu, Sep 17, 2009 at 7:15 PM, Alex Siman > wrote: >> >> // From >>    protected ActionMapping getActionMapping(String url) { >>        MockHttpServletRequest req = new MockHttpServletRequest(); >>        req.setRequestURI(url); >>        retu

Where to post XWork issue?

2009-09-24 Thread Alex Siman
Where to post XWork 2.1.6 issue? -- View this message in context: http://www.nabble.com/Where-to-post-XWork-issue--tp25592812p25592812.html Sent from the Struts - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mai

Re: Where to post XWork issue?

2009-09-24 Thread Alex Siman
I ask, because I have not found version 2.1.6 here: http://jira.opensymphony.com/browse/XW Alex Siman wrote: > > Where to post XWork 2.1.6 issue? > -- View this message in context: http://www.nabble.com/Where-to-post-XWork-issue--tp25592812p25593344.html Sent from the Struts - De

Re: parameters in url

2009-09-24 Thread Alex Siman
Very useful feature! It's SEO friendly and reduces/eliminates using of UrlRewriteFilter. Is this code correct?: @Results({ @Result( name = Action.SUCCESS, location = "{2}.jsp" ) }) class TestAction { String bio, name; @Action("/{bi

Re: Where to post XWork issue?

2009-09-24 Thread Alex Siman
I have posted issue here: Allow "LoggerUtils.format" to support unlimited number of args http://jira.opensymphony.com/browse/XW-726 Do I need to repost it to Struts2 JIRA? Wes Wannemacher wrote: > > On Thursday 24 September 2009 06:02:22 pm Alex Siman wrote: >> I a

Re: new showcase

2009-09-25 Thread Alex Siman
Maybe more AJAX? IMHO showcase must be organized similar to GWT's showcase (note tabs for "Example" and "Source Code" loaded w/ AJAX): http://gwt.google.com/samples/Showcase/Showcase.html And here is my proposals: - AJAX file upload with progressbar; - AJAX autosuggest backed by server response

Bug: Struts 2.1.8 and "multipart/form-data"

2009-10-13 Thread Alex Siman
If form uses [enctype="multipart/form-data"] then Struts2 stores request params in session (I suppose, at least not in request). And with every form submit Struts2 prepend prev value of parameter to a new one separated by a comma. Example: update.jsp --

XWork: Real UTF-8 in *.properties

2009-10-14 Thread Alex Siman
I hacked class [com.opensymphony.xwork2.util.LocalizedTextUtil] and now it uses [http://sourceforge.net/projects/j18n/] to load resource bundles. J18n allows *.properties files to be in UTF-8 encoding and contain not escaped UTF-8 characters. This is very usable in comparison with Java's native2as

Re: Bug: Struts 2.1.8 and "multipart/form-data"

2009-10-14 Thread Alex Siman
ended with previously entered values. WTF. Musachy Barroso wrote: > > why do you think it stores them in the session? that sounds weird. > > musachy > > On Tue, Oct 13, 2009 at 4:58 PM, Alex Siman > wrote: >> >> If form uses [enctype="multipart/form-data&qu

Re: XWork: Real UTF-8 in *.properties

2009-10-14 Thread Alex Siman
What is the problem with that GPL? Maybe we can ask the j18n author to add Apache kind license? BTW I used to think that "open source is really open". I am bored w/ all those licenses. IMHO it's like native2ascii to me. Philip Luppens wrote: > > On Wed, Oct 14, 2009 at

Re: Bug: Struts 2.1.8 and "multipart/form-data"

2009-10-14 Thread Alex Siman
needed. Musachy Barroso wrote: > > are you sure that a new instance of your action is created everytime, > like if using spring, scope="prototype"? > > musachy > > On Wed, Oct 14, 2009 at 2:20 AM, Alex Siman > wrote: >> >> Yes, it is very strange behaviour.

Re: Bug: Struts 2.1.8 and "multipart/form-data"

2009-10-14 Thread Alex Siman
The issue has gone away, after I removed plugin [struts2-fileupload-plugin-2.1.7-SNAPSHOT.jar]. But this plugin works correctly w/ Struts 2.1.6. Alex Siman wrote: > > If form uses [enctype="multipart/form-data"] then Struts2 stores request > params in session (I suppose, at l

Re: Bug: Struts 2.1.8 and "multipart/form-data"

2009-10-14 Thread Alex Siman
Wes Wannemacher, what is wrong w/ this file upload plugin and Struts 2.1.8? Alex Siman wrote: > > The issue has gone away, after I removed plugin > [struts2-fileupload-plugin-2.1.7-SNAPSHOT.jar]. But this plugin works > correctly w/ Struts 2.1.6. > -- View this message in

Re: Bug: Struts 2.1.8 and "multipart/form-data"

2009-10-15 Thread Alex Siman
I use [2.1.8]. Just read the version of Struts in a Subject of this thread. Additionally I listed versions of Struts related JARs in first message. DNewfield wrote: > >>> Alex Siman wrote: >>>> The issue has gone away, after I removed plugin >>>> [struts2-

Pretty mapping of actions

2009-11-16 Thread Alex Siman
I have found some pretty RESTful approaches to map actions. I think Struts 2 must borrowed these ideas. >From V|Raptor: http://vraptor.caelum.com.br/documentation/vraptor3-ten-minutes-guide/ public class ProductsController { //... @Get @Path("/products") public List list() {.

Re: Pretty mapping of actions

2009-11-25 Thread Alex Siman
Hi there! Anyone interested? Any thoughts? Alex Siman wrote: > > I have found some pretty RESTful approaches to map actions. I think Struts > 2 must borrowed these ideas. > > From V|Raptor: > http://vraptor.caelum.com.br/documentation/vraptor3-ten-minutes-guide/

Re: struts 2.2 and guice

2009-12-10 Thread Alex Siman
Wes Wannemacher wrote: > > "Everything is tied to either the request > or the session, I can't build wizard-style views" > Yeah, we need wizards sometimes. -- View this message in context: http://old.nabble.com/struts-2.2-and-guice-tp26594350p26728156.html Sent from the Struts - Dev mailing l

Re: struts 2.2 and guice

2009-12-10 Thread Alex Siman
What if application needs expirable and parallel (say 5 instances at a time) wizard? andreak wrote: > > On Thursday 10. December 2009 15.31.15 Alex Siman wrote: >> >> Wes Wannemacher wrote: >> > >> > "Everything is tied to either the request >&g

Re: Conversations (continued from "struts 2.2 and guice")

2009-12-11 Thread Alex Siman
I have created such wizard: - simple LRU cache based on HashMap with fixed capacity, say for 5 elems; - each cache elem collects wizard data; - this cache stored in user session; - each request in wizard flow pass the ID - the key of element (wizard data) in cache; - when wizard get finished - the

Re: Conversations (continued from "struts 2.2 and guice")

2009-12-15 Thread Alex Siman
Who would implement all of these features? So many work and potential bugs... Maybe it's the way easier to update SWF plugin to version 2? Gabriel Belingueres-2 wrote: > > I also agree that implementing something similar to SWF2 is not very > compelling. > > However having implemented conversa

Re: Conversations (continued from "struts 2.2 and guice")

2009-12-15 Thread Alex Siman
a will to fix that plugin? Musachy Barroso wrote: > > That's what I said. I honestly don't see the point in reinventing the > wheel :) > > On Tue, Dec 15, 2009 at 7:52 AM, Alex Siman > wrote: >> >> Who would implement all of these features? So many work