Results 1 to 2 of 2

Thread: Showing Info Message with MessageContext on State change

  1. #1
    Join Date
    May 2012
    Posts
    1

    Default Showing Info Message with MessageContext on State change

    Hello together,

    when i do some stuff on a transition between to states i want display a info message on the following view-state with something like that:

    Code:
    context.getMessageContext().addMessage(new MessageBuilder().info().defaultText("Success!").build());
    I dont know if this is the right way. Please give me a hint if there is a better solution.

    But the real problem is that the message is only shown when i do this on the following view-state on the previous view-state (where the stuff is done) nothing happens. Have someone a idea how to solve this problem?

    thank you and regards

    Willi

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Default

    Hello Willi

    Read the Spring Web Flow Reference Guide. You should read all the flow Scope availables within SWF, each one has its own behavior. You should be careful about where you create and save such message and where you expect to be show

    Let me know your advance
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •