[jboss-user] [JBoss Seam] - Instantiate on demand

bluetrade do-not-reply at jboss.com
Fri Jul 14 15:37:03 EDT 2006

I have a small question regarding the instantiation of entites inside other entites. 

Lets say the following: 
class Info {
 private PhoneNumber phone; 
 private Email mail;


now when I am in the view and want to use the info.phone.description I would have had to write "private PhoneNumber phone = new PhoneNumber" instead, however I only want to do this if the customer decides to really enter one, otherwise there are lots of blanks in the DB... if I do as I want, I get a "not-null property references a null or transient value property"-Exception... Do you have any clues on how to solve this problem?

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

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

More information about the jboss-user mailing list