You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2006/08/08 17:25:15 UTC
svn commit: r429688 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java
Author: lofwyr
Date: Tue Aug 8 08:25:14 2006
New Revision: 429688
URL: http://svn.apache.org/viewvc?rev=429688&view=rev
Log:
fix: valuebinding not works with escape attribute
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java?rev=429688&r1=429687&r2=429688&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIOutput.java Tue Aug 8 08:25:14 2006
@@ -18,6 +18,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_MARKUP;
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_ESCAPE;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
@@ -31,7 +32,7 @@
*/
public class UIOutput extends javax.faces.component.UIOutput {
public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.Output";
- private boolean escape = true;
+ private Boolean escape;
private String markup;
private String tip;
private boolean createSpan = true;
@@ -58,7 +59,15 @@
}
public boolean isEscape() {
- return escape;
+ if (escape != null) {
+ return escape;
+ }
+ ValueBinding vb = getValueBinding(ATTR_ESCAPE);
+ if (vb != null) {
+ return (Boolean.TRUE.equals(vb.getValue(getFacesContext())));
+ } else {
+ return true;
+ }
}
public void setEscape(boolean escape) {