[seam-commits] Seam SVN: r11926 - modules/remoting/trunk/examples/model/src/main/webapp.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Jan 7 04:34:59 EST 2010


Author: shane.bryzak at jboss.com
Date: 2010-01-07 04:34:59 -0500 (Thu, 07 Jan 2010)
New Revision: 11926

Modified:
   modules/remoting/trunk/examples/model/src/main/webapp/model.html
Log:
implement create new person function


Modified: modules/remoting/trunk/examples/model/src/main/webapp/model.html
===================================================================
--- modules/remoting/trunk/examples/model/src/main/webapp/model.html	2010-01-07 09:34:32 UTC (rev 11925)
+++ modules/remoting/trunk/examples/model/src/main/webapp/model.html	2010-01-07 09:34:59 UTC (rev 11926)
@@ -89,13 +89,15 @@
       var person = model.getValue("person");
       document.getElementById("firstName").value = person.getFirstName();
       document.getElementById("lastName").value = person.getLastName();
-      document.getElementById("dob").value = person.getDateOfBirth().toLocaleString();
+      document.getElementById("dob").value = person.dateOfBirth != null ? person.dateOfBirth.toLocaleString() : "";
       
       var addressDiv = document.getElementById("addresses");
       clearElement(addressDiv);      
       addressDiv.appendChild(createLinkRow("Load addresses", "loadAddresses()"));
       
       document.getElementById("personDetail").style.display = "block";
+      
+      if (person.addresses) loadAddressesCallback();
     }
     
     function loadAddresses() {



More information about the seam-commits mailing list