[jboss-user] [JBoss Seam] - Re: DataModelSelection and Outjection confusion

gavin.king@jboss.com do-not-reply at jboss.com
Sun Oct 1 12:45:47 EDT 2006


I just added an @RaiseEvent annotation. So you could write:

@RaiseEvent("selectDataSource")
   public String selectDataSource()
  |    {
  |       log.info("get datasource: #0 for #{user.username}", dataSource.getId());
  |       dataSource = em.find(DataSource.class, dataSource.getId());
  |       log.info("got datasource: #0 for #{user.username}", dataSource.getName());
  |       return "datasource";
  |    }

To solve your problem.

Of course, another solution would be to use Contexts.getSessionContext().set("dataSource", dataSource) instead of outjection.

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

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



More information about the jboss-user mailing list