[jboss-user] [JBoss Seam] - Namespace or alias of messages' key

zaya do-not-reply at jboss.com
Thu Nov 1 23:13:26 EDT 2007


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]}

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101138#4101138

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101138



More information about the jboss-user mailing list