10-22-2007 05:47 PM
10-23-2007 08:46 AM
10-24-2007 10:34 AM
<show-property name="my:textproperty"
component-generator="TinyMCETextAreaGenerator">
package org.alfresco.module.WebClientTinyMCESupport.ui;
//…
public class TinyMCETextAreaGenerator extends TextAreaGenerator
{
private static final Log logger = LogFactory
.getLog(TinyMCETextAreaGenerator.class);
public UIComponent generate(FacesContext context, String id)
{
logger.info("TinyMCETextAreaGenerator invoked.");
UIComponent component = context.getApplication().createComponent(
ComponentConstants.JAVAX_FACES_INPUT);
component.setRendererType("org.alfresco.module.WebClientTinyMCESupport.ui.TinyMCETextArea"); // (*)
FacesHelper.setupComponentId(context, component, id);
return component;
}
}
package org.alfresco.module.WebClientTinyMCESupport.ui;
//…
public class TinyMCETextAreaRenderer extends BaseRenderer {
public void encodeBegin(FacesContext context, UIComponent component)
throws IOException
{
logger.info("encodeBegin"); // never executed!!
}
// …
}
<managed-bean>
<managed-bean-name>TinyMCETextAreaGenerator</managed-bean-name>
<managed-bean-class>org.alfresco.module.WebClientTinyMCESupport.ui.TinyMCETextAreaGenerator</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<render-kit>
<renderer>
<component-family>javax.faces.input</component-family>
<renderer-type>org.alfresco.module.WebClientTinyMCESupport.ui.TinyMCETextArea</renderer-type>
<renderer-class>org.alfresco.module.WebClientTinyMCESupport.ui.TinyMCETextAreaRenderer</renderer-class>
</renderer>
</render-kit>
10-24-2007 11:29 AM
10-25-2007 09:41 AM
10-25-2007 10:18 AM
10-25-2007 10:45 AM
10-25-2007 07:31 PM
Is it something you'd contribute to the core?
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.