[jboss-user] [JBoss Seam] - Re: Using OneToMany with SEAM and JSF

pete.muir@jboss.org do-not-reply at jboss.com
Wed Jan 30 06:38:10 EST 2008


anonymous wrote : The question is, how do i reference a single streetaddress from within a JSF Page ?

If you know which one try:

#{contact.streetAddresses[10].zip}

Or, iterate over them in a datatable.

anonymous wrote :  and how do i add new streetadresses to contact ?

You need a method on your backing (action) bean like

public void addStreetAddress() {
  |    contact.addStreetAddress(new StreetAddress());
  | }

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

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



More information about the jboss-user mailing list