[jboss-user] [JBoss Seam] - Re: Is this the correct way to go about this?

gavin.king@jboss.com do-not-reply at jboss.com
Thu Jul 13 12:44:44 EDT 2006


@RequestParameter String companyId;
  | 
  | public Company getCompany()
  | {
  |     return getCompany(companyId);
  | }
  | 
  | public Company getCompany(String companyId)
  | {
  |     return entityManager.find(Company.class, companyId);
  | }

Note that if there is no value for an @RequestParameter, it will be null, it will not throw an exception (yes, this is inconsistent with @In and is arguably a wart).

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

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



More information about the jboss-user mailing list