Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
06. Jun 2008, 17:00 CET | Link

Hi,

I'm trying to inject a messages.properties message into a session bean.

@In("#{messages.findUserByIdSQL}")
private String findUserByIdSQL;

Sometimes this notation works, but in other injections on other session beans it doesn't work. When it doesn't work, the value of findUserByIdSQL is messages.findUserByIdSQL (in other words, the key I'm trying to lookup). It's as if a new Messages object is being created and not finding messages.properties.

Anyone know what I'm doing wrong?

Thanks, Eric

1 Reply:
06. Jun 2008, 17:05 CET | Link

Sorry, when it doesn't work the value is findUserByIdSQL, not messages.findUserByIdSQL.