You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/08/11 23:00:54 UTC
svn commit: r684928 -
/myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/model/SelectItem.java
Author: lu4242
Date: Mon Aug 11 14:00:54 2008
New Revision: 684928
URL: http://svn.apache.org/viewvc?rev=684928&view=rev
Log:
MYFACES-1897 escape value of a selectItem is never evaluated
Modified:
myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/model/SelectItem.java
Modified: myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/model/SelectItem.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/model/SelectItem.java?rev=684928&r1=684927&r2=684928&view=diff
==============================================================================
--- myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/model/SelectItem.java (original)
+++ myfaces/core/trunk_1.2.x/api/src/main/java/javax/faces/model/SelectItem.java Mon Aug 11 14:00:54 2008
@@ -34,7 +34,7 @@
private String _label;
private String _description;
private boolean _disabled;
- private boolean escape;
+ private boolean _escape;
// CONSTRUCTORS
public SelectItem()
@@ -47,6 +47,7 @@
_label = value == null ? null : value.toString();
_description = null;
_disabled = false;
+ _escape=true;
}
public SelectItem(Object value, String label)
@@ -55,6 +56,7 @@
_label = label;
_description = null;
_disabled = false;
+ _escape = true;
}
public SelectItem(Object value, String label, String description)
@@ -63,6 +65,7 @@
_label = label;
_description = description;
_disabled = false;
+ _escape = true;
}
public SelectItem(Object value, String label, String description, boolean disabled)
@@ -71,6 +74,7 @@
_label = label;
_description = description;
_disabled = disabled;
+ _escape = true;
}
public SelectItem(Object value, String label, String description, boolean disabled, boolean escape)
@@ -79,7 +83,7 @@
_label = label;
_description = description;
_disabled = disabled;
- this.escape = escape;
+ this._escape = escape;
}
// METHODS
@@ -127,12 +131,12 @@
public boolean isEscape()
{
- return escape;
+ return _escape;
}
public void setEscape(boolean escape)
{
- this.escape = escape;
+ this._escape = escape;
}
}