1 Reply Latest reply on Nov 22, 2007 12:49 PM by Damian Harvey

    Change messages (created, updated, deleted)

    gar jar Newbie

      Hi.

      I'm using jboss-seam-2.0.0.BETA1 and jboss-4.2.1.GA.

      At top of form i have <h:messages that shows messages
      Succesfully updated
      Succesfully created
      Succesfully deleted when i submit a form depending the action.

      Do you know how change language of this messages?
      On messages at resources dir, isn't. it

      thanks!

        • 1. Re: Change messages (created, updated, deleted)
          Damian Harvey Master

          I assume that you're using a class that extends EntityHome. In your persist/update/remove methods you can specify the message eg:

          super.setCreatedMessage("hello")

          or look at injecting the message bundle and using that:eg
          @In private Map<String,String> messages;
          ...
          @Override
          public String persist() {
           super.setCreatedMessage(messages.get("my.created.key"));
          ...
          Cheers,

          Damian