[jboss-user] [JBoss Seam] - Re: Feature request - @InOut

patrick_ibg do-not-reply at jboss.com
Fri Feb 23 20:12:05 EST 2007


Maybe I'm being dense, but... if I read your post right, it sounds like you want your entity POJOs to be referenced through a JSF managed bean... so why not just make a stateful managed bean that has getters/setters for the entities?

Something like:

@Stateful
  | @Scope ( ... )
  | @Name ("myManagedBean")
  | class MyManagedBean {
  |   private String text ;
  |   private User user ;
  | 
  |   public String getText () { return this.text ; }
  |   public void setText (String text) { this.text = text ; }
  |   public User getUser () { ... }
  |   public void setUser (User user) { ... }
  |   
  | }

Then the EL would look something like this:


User name: #{myManagedBean.user.name}
Text: #{myManagedBean.string}


etcetera...


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

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



More information about the jboss-user mailing list