I'll bite. Why does TestActionBean's goToTest2() method perform no
flash scope magic? Doesn't it need something kind of like this:
RedirectResolution rr = new RedirectResolution(Test2ActionBean.class);
rr.flash(this);
return rr;
Regards,
David
Dan Kaplan wrote:
I'm using the latest version
Paulo Hélio Alves wrote:
>
> I dont use the stripesFilter, so i don't have any implementation of that.
> I call all pages by the actions, so i don't no if will be necessary to
> have a stripes filter. But, (i dont have idea if this will be important to
> the problem), in my web.xml i have the St
Farouk Alhassan wrote:
>
> 1 How can i pass the request and response objects to the BaseProcessor at
> every Request
> 2. Why is strpes removing Httpsession objects.
>
1. You can either use a Filter and define the filter mapping earlier in you
web.xml than your StripesFilter.
2. You can create
Hi Paulo,
Make sure the name of the stripes:file actually is 'newAttchement'
in your JSP (no 'a').
It seems to be defined so in your ActionBean.
Regards,
Iwao
on 08.4.7 6:46 PM Paulo Hélio Alves said the following:
> Sorry for response so late...
>
> Well, i'm using Stripes 1.4.3, Stripes Secu
Hello,
I need to extend NameBasedActionResolver to do the following:
1. When a URL needs to be resolved to an ActionBean, my custom
implementation first looks at the URL and sees if it is a "special" URL
that is mapped to a specific ActionBean.
2. If the URL is not resolved to an ActionBe
Dan Kaplan-3 wrote:
>
>
> @DefaultHandler
> public Resolution goToTest2() {
> context.getMessages().add(new SimpleMessage("This is a
> message."));
> return new RedirectResolution(Test2ActionBean.class);
> }
>
>
Try:
@DefaultHandler
public Resolution g
David,
>Why does TestActionBean's goToTest2() method perform no flash scope magic?
Because you are doing it wrong... ;) Read JavaDoc of "flash" method... it
*returns* RedirectResolution and it does not mutate existing object...
RedirectResolution rr = new RedirectResolution(Test2ActionBean.cl
You mean *without* reloading context? That sounds nice...
But I think there's no legitimate way to achieve it with the containers
that I use; i.e. Jetty and Tomcat.
// Iwao
Nathan Maves wrote on 08.4.10 11:50 AM:
> You could always use an app server that reloads it for you :)
>
> I think resin
What about reading it directly from the filesystem instead of
classpath? Then it needs "just" to check timestamp of that file and
reread it in runtime. I do that with Spring all the time. For
development phase this would suffice, does it not?
Jan
2008/4/10, Iwao AVE! <[EMAIL PROTECTED]>:
> You me
Hi,
I have a problem with a wizard form where some value is not set at some point.
I checked the logs and I found this:
2008-04-10 10:24:51 DEBUG mavoine: Log.trace: Running binding for property with
name: keys.selectedIdsString
2008-04-10 10:24:51 DEBUG mavoine: Log.debug: Converting 1 value(s
Hi there,
it seams like stripes is binding null values to all unchecked chekboxes,
is there a way to prevent this?
(my domain object has some Boolean fiedls with default values set to
Boolean.FALSE/false) and nullable=false annotation..
thx
-
Hi Mathieu,
you can make your own TypeConverter(s) check java docs..
it should look like:
class MyConverter implements
TypeConverter
{
public DeactivateKeysFromVehiclesActionBean convert(String input,
Class clazz,
Collection validationErrors){
DeactivateKeysFromVehiclesActionBean bean = new
There isn't really a way to stop this. But you raise an interesting
point, for almost all types there is a sensible default value - and
Stripes uses that where appropriate. E.g. for ints it will set 0,
and for boolean it will set false. The problem is with Booleans that
you can make the
Ok, I think I followed your suggestion and nothing changed. Here's the
only modification I made to my original test case: Test1ActionBean now says
this:
@DefaultHandler
public Resolution goToTest2() {
context.getMessages().add(new SimpleMessage("This is a message."));
Hmm, sending this one more time as it didn't seem to go to the mailing
list:
Ok, I think I followed your suggestion and nothing changed. Here's the
only modification I made to my original test case: Test1ActionBean now says
this:
@DefaultHandler
public Resolution goToTest2() {
Hi Tim,
well, no real reason except I am working agains an API
(which we are in control of, btw, so it can be changed).
Checkboxes have always been p.i.t.a (browser not submitting unchecked
values,
as I remember Spring is doing some funny replicating with hidden values).
It would be nice to ove
Does it work with the StripesResources.properties?
I guess if I place the file out of classpath, Stripes'
DefaultLocalizationBundleFactory wouldn't find it.
Or am I missing something?
// Iwao
Ing. Jan Novotný wrote on 08.4.10 10:40 PM:
> What about reading it directly from the filesystem instead
Actually I've had a discussion about default/NULL values for primitive & Object
types in Java
http://www.theserverside.com/discussions/thread.tss?thread_id=30463
I still do not see a clean solution for this... primitive types are pain...
l8r, Ruslan
From: [EMA
Ok I figured this all out on irc. I also updated the wiki on the topic.
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Kaplan
Sent: Thursday, April 10, 2008 10:15 AM
To: 'Stripes Users List'
Subject: Re: [Stripes-users] A FlashScope test case I expected to work
That's strange--your example is almost textbook and should be working. Out
of curiosity, could you try placing a stripes messages tag in the middle of
your test2.jsp file?
--
View this message in context:
http://www.nabble.com/A-FlashScope-test-case-I-expected-to-work-tp16603192p16622043.html
S
20 matches
Mail list logo