3 Replies Latest reply on Dec 22, 2009 8:29 PM by jpalmer1026.jpalmer1026.mchsi.com

    Creating status messages

    jpalmer1026.jpalmer1026.mchsi.com

      I'm trying to create status messages in my application to provide feedback any time a CRUD operation occurs. According to the Seam in Action book, this can be accomplished by overriding the create() method on the Home component like so:




      @Override public void create() {
      setCreatedMessage("You've successfully added #{course.name}. " + "Thanks for contributing!");



      Something must have changed in the later versions of Seam, however, since setCreatedMessage() now takes a ValueExpression and not a String. I couldn't find any examples online on how to use a ValueExpression to accomplish this, though, so I was hoping someone might be able to lend a hand.