zkoss / zkspring

Automatically exported from code.google.com/p/zkspring
6 stars 15 forks source link

Bug in handling of WrongValueException #13

Closed GoogleCodeExporter closed 5 years ago

GoogleCodeExporter commented 9 years ago
Relates to thread "Bug in latest ZK Integration for Spring Security?" posted in 
forum at zkoss.org/forum (help)
http://www.zkoss.org/forum/listComment/15646

ZK does not properly handle WrongValueException(s) thrown in the context of 
validating user input in an application where ZK is integrated with Spring and 
Spring Security.

For example:

Throwing a WrongValueException(component, "Invalid value") in a controller 
extending GenericForwardComposer should result in a visual error box popping up 
in GUI next to the component in question (for example a textbox) informing user 
about having entered an "Invalid value". This does however not work at all in 
ZK 5.0.6 in my environment being a mesh of ZK and Spring. 

I have no recollection of having experienced this issue with earlier versions 
of ZK.

Environment: ZK 5.0.6, ZK Spring 3, latest version of Spring framework 
(downloaded them yesterday, but also tried with the somewhat older revision 
3.0, same problem) plus some additions tools and frameworks, including AOP 
(jars).

For easy reproduction of the issue I have created an example project which is 
to be imported in Eclipse (dynamic web project) and run in a Tomcat 7 server.

Download the example project to reproduce issue from:

http://tinyurl.com/67zvrjg

Good Luck! Best regards / Juwian

Original issue reported on code.google.com by ashish.dasnurkar on 25 Mar 2011 at 1:10

cor3000 commented 5 years ago

retested with 4.0.0, doesn't happen anymore (I assume the feature causing this has been fixed in the mean time or removed in 4.0.0)