I have an action that has a few properties with validation attached
(@Validate), with a couple of further validation methods (@ValidationMethod).
There are two handlers, view (@DefaultHandler @DontValidate) and save.
There is an associated JSP with a stripes:form tag on it that view() forwards
to.
All the validation works as it should, the handlers work just fine. However,
there is one weird issue I have noticed while testing in development. I get a
SPNFE if I upload and redeploy the action after creating a validation error and
not refreshing the form.
Here is the sequence :
1) Call URL for the action, triggers view handler
2) Enter a value in the form which will trigger a validation error, either via
the initial declaration validation or the subsequent validation methods
3) Page re-renders with errors
4) Change action code, upload and redeploy
5) Hit save button without refreshing the page and receive a SPNFE.
If I refresh the page between steps 4 and 5 and re-enter the invalid values
then hit save, the exception is not generated.
Why do I need to refresh the page after redeploying action changes?
Chris
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users