empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1378455 - in /empire-db/trunk: empire-db-examples/empire-db-example-jsf2/src/main/java/org/apache/empire/jsf2/websample/web/objects/EmployeeSearchFilter.java empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
Date Wed, 29 Aug 2012 06:40:41 GMT
Author: doebele
Date: Wed Aug 29 06:40:40 2012
New Revision: 1378455

URL: http://svn.apache.org/viewvc?rev=1378455&view=rev
Log:
EMPIREDB-160
removed obsolete call in JSF2 Example

Modified:
    empire-db/trunk/empire-db-examples/empire-db-example-jsf2/src/main/java/org/apache/empire/jsf2/websample/web/objects/EmployeeSearchFilter.java
    empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java

Modified: empire-db/trunk/empire-db-examples/empire-db-example-jsf2/src/main/java/org/apache/empire/jsf2/websample/web/objects/EmployeeSearchFilter.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-examples/empire-db-example-jsf2/src/main/java/org/apache/empire/jsf2/websample/web/objects/EmployeeSearchFilter.java?rev=1378455&r1=1378454&r2=1378455&view=diff
==============================================================================
--- empire-db/trunk/empire-db-examples/empire-db-example-jsf2/src/main/java/org/apache/empire/jsf2/websample/web/objects/EmployeeSearchFilter.java
(original)
+++ empire-db/trunk/empire-db-examples/empire-db-example-jsf2/src/main/java/org/apache/empire/jsf2/websample/web/objects/EmployeeSearchFilter.java
Wed Aug 29 06:40:40 2012
@@ -20,10 +20,6 @@ package org.apache.empire.jsf2.websample
 
 import java.io.Serializable;
 
-import javax.faces.context.FacesContext;
-
-import org.apache.empire.jsf2.app.FacesUtils;
-
 public class EmployeeSearchFilter implements Serializable
 {
     private static final long serialVersionUID = 1L;
@@ -46,12 +42,6 @@ public class EmployeeSearchFilter implem
         lastName = "";
         departmentId = "";
         gender = "";
-
-        /**
-         * Make sure submitted values are discarded.
-         * Works only, if the "immediate" attribute on the h:commandLink tag is set to true

-         */
-        FacesUtils.setClearSubmittedValues(FacesContext.getCurrentInstance(), true);
     }
 
     public String getEmployeeId()

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java?rev=1378455&r1=1378454&r2=1378455&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
(original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/utils/TagEncodingHelper.java
Wed Aug 29 06:40:40 2012
@@ -555,6 +555,7 @@ public class TagEncodingHelper implement
                 }
                 // a record
                 ((Record) record).setValue(getColumn(), value);
+                mostRecentValue = value;
             }
             else if (record instanceof RecordData)
             { // a record



Mime
View raw message