Author: nbelaevski
Date: 2009-11-19 21:19:52 -0500 (Thu, 19 Nov 2009)
New Revision: 15934
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
Log:
https://jira.jboss.org/jira/browse/RF-7732 - updates in base and utility framework
classes
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java 2009-11-20
02:18:05 UTC (rev 15933)
+++
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererBase.java 2009-11-20
02:19:52 UTC (rev 15934)
@@ -250,7 +250,10 @@
* Get base component slass , targetted for this renderer. Used for check arguments
in decode/encode.
* @return
*/
- protected abstract Class<? extends UIComponent> getComponentClass();
+ protected Class<? extends UIComponent> getComponentClass() {
+ //TODO - do we need this function?
+ return UIComponent.class;
+ }
/**
* Template method for custom decoding of concrete renderer.
Modified:
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
===================================================================
---
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2009-11-20
02:18:05 UTC (rev 15933)
+++
root/framework/trunk/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2009-11-20
02:19:52 UTC (rev 15934)
@@ -426,6 +426,12 @@
encodeAttribute(context, component, getComponentAttributeName(attribute),
attribute);
}
+ public void writeText(ResponseWriter writer, Object value, String property) throws
IOException {
+ if (value != null) {
+ writer.writeText(value, property);
+ }
+ }
+
/**
* Write html-attribute
*