Announcement Announcement Module
Collapse
No announcement yet.
flash message wont work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • flash message wont work

    Hy,

    I am runinng Grails 2.0.1 and STS 2.9 and the flash messages doesen't work.

    I have in the Controller-Class:

    def index() {
    flash.message = message(code: 'default.not.found.message')
    }

    def delete() {
    def allInstance= All.get(params.id)
    if (!allInstance) {
    flash.message = message(code: 'default.not.found.message', args: [message(code: 'allgemein.label', default: 'All'), params.id])
    redirect(action: "list")
    return
    }

    and in the GSP file I have:

    <g:message code="${flash.message}"
    default="${flash.default}"/>

    But when I run it, I see no error. Why?

    The file message_properties is defined:

    default.not.found.message= just testing!

    Plese help!
    regards
Working...
X