You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/04/21 12:59:10 UTC

svn commit: r395846 - in /myfaces/tomahawk/branches/1_1_2/examples/simple/src/main: java/org/apache/myfaces/examples/misc/Country.java webapp/masterDetail.jsp

Author: imario
Date: Fri Apr 21 03:59:08 2006
New Revision: 395846

URL: http://svn.apache.org/viewcvs?rev=395846&view=rev
Log:
fix for TOMAHAWK-266

Modified:
    myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/java/org/apache/myfaces/examples/misc/Country.java
    myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/webapp/masterDetail.jsp

Modified: myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/java/org/apache/myfaces/examples/misc/Country.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/java/org/apache/myfaces/examples/misc/Country.java?rev=395846&r1=395845&r2=395846&view=diff
==============================================================================
--- myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/java/org/apache/myfaces/examples/misc/Country.java (original)
+++ myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/java/org/apache/myfaces/examples/misc/Country.java Fri Apr 21 03:59:08 2006
@@ -15,19 +15,32 @@
  */
 package org.apache.myfaces.examples.misc;
 
-
 /**
  * @author Sylvain Vieujot (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
 public class Country
 {
-    private String code = null;
+	private String code = null;
+	private long id;
+
+	public String getCode()
+	{
+		return code;
+	}
+
+	public void setCode(String code)
+	{
+		this.code = code;
+	}
+
+	public long getId()
+	{
+		return id;
+	}
 
-    public String getCode() {
-        return code;
-    }
-    public void setCode(String code) {
-        this.code = code;
-    }
+	public void setId(long id)
+	{
+		this.id = id;
+	}
 }

Modified: myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/webapp/masterDetail.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/webapp/masterDetail.jsp?rev=395846&r1=395845&r2=395846&view=diff
==============================================================================
--- myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/webapp/masterDetail.jsp (original)
+++ myfaces/tomahawk/branches/1_1_2/examples/simple/src/main/webapp/masterDetail.jsp Fri Apr 21 03:59:08 2006
@@ -54,7 +54,7 @@
 								<h:outputText value="#{currentCountry.name}" />
 								<!-- for convenience: MyFaces extension. sets id of current row in countryForm -->
 								<!-- you don't have to implement a custom action! -->
-								<t:updateActionListener property="#{countryForm.id}" value="#{country.id}" />
+								<t:updateActionListener property="#{countryForm.id}" value="#{currentCountry.id}" />
 							</t:commandLink>
 						</h:column>