2 Replies Latest reply on Nov 11, 2007 3:31 PM by Pierre Raoul

    Namespace or alias of messages' key

    Yenan Zhou Newbie

      I implemented something like this, I'm wondering if it's a good idea?

      I configure a custom messages component. And in components.xml:

      <component name="org.jboss.seam.international.messages">
       <property name="abbrs">
       <value>*:btn=lacewiki.button</value>
       <value>*:lb=lacewiki.label</value>
       <value>/admin.xhtml:_=lacewiki.button.adminHome.</value>
       <value>/login.xhtml:ur.=lacewiki.button.userRegister.</value>
       </property>
      </component>
      
      


      Now in /admin.xhtml instead of wrting something like #{"messages['lacewiki.button.adminHome.Remove']"} I can write #{"msg._Remove"}
      And in /login.xhtml I can write #{msg['ur.Register]}