AnsweredAssumed Answered

Howto make Property sheet render HTML

Question asked by ruffp on Mar 10, 2008
Latest reply on Mar 12, 2008 by gavinc
Hello,

I have a property with some html code inside.

Is it possible to make the view page rendering correctly the html metadata only by configuring a xml file?

If no, what to do?

I tried to make that from my generator (generateAndAdd method) :

public UIComponent generateAndAdd(FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item) {

UIComponent component = null;
if( propertySheet.getMode().equals("view")){
   component = super.generateAndAdd(context, propertySheet, item);
   HtmlOutputText hot = new HtmlOutputText();      
   hot.setParent(component);
   hot.setId("output_text_view_summary");
   hot.setEscape(false);
   return component;
}
// some other code for edition

But it doesn t work. I probably make something wrong but don't know what.
I also tried to make the setParent(item) and setParent(propertySheet) but always the same effect

Thanks in advance for your answers.

Outcomes