-
Notifications
You must be signed in to change notification settings - Fork 38.5k
There is no way to display success message(s). [SPR-2657] #7346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Rick Evans commented Hi Daigo I'm not quite sure what you mean with this issue; can you please explain a little more, perhaps supplying a use case? If you want to display data upon sucess, you can put the data that you want displayed in the ModelAndView. Cheers |
Daigo Kobayashi commented Hi Rick Actually I can set message to ModelAndView. However, I can't handle following issue cleverly.
Sample code: <spring:hasBindMessages name="command"> |
Akram BEN AISSI commented I would be also interrested with this evolution for a secondary purpose: In fact, I want to warn (or inform) users about some validation problems (that are not critical, not errors in facts). if the user submit the form again with no changes, I want to perform the submit. |
Gunnar Hillert commented Hi, This is one area where Struts is superior IMO and I wish Spring MVC would offer functionality similar to Struts' ActionMessage. (In my opinion good success messages are just as important as good error messages :-) Also, on a side note - would it be wise to have messages support for spring core? In quite a few cases my service layer methods need to pass back messages and I wonder if that is something to 'standardize' instead of rolling your own approach? See also: http://forum.springframework.org/archive/index.php/t-29411.html Thanks! Regards - Gunnar |
Andrew Wong commented It will be very useful to have some comment framework for messaging besides just errors. Are there any plans for this issue? |
adrian commented I also need this feature. In the meanwhile I think we'll be developing (or borrowing) a custom one. SWF appears to have this feature : http://static.springsource.org/spring-webflow/docs/2.3.x/reference/htmlsingle/spring-webflow-reference.html#view-messages. JSF has a similar feature (http://wiki.apache.org/myfaces/Displaying_Errors/Infos/Warnings_in_JSF_Pages).
Here's the API to add an info message to the queue :
Seam 2 (works on top of JSF) has a simple API for info messages, and a less simple for ERROR/WARN messages (http://docs.jboss.org/seam/2.2.2.Final/reference/en-US/html/framework.html#d0e8463)
Thanks ! |
Daigo Kobayashi opened SPR-2657 and commented
There is no way to display success message(s) like struts' ActionMessage. Spring should provide Messages inteface in a similar way of Errors and related tag libraries.
Issue Links:
12 votes, 12 watchers
The text was updated successfully, but these errors were encountered: