I need to have a rich text editor and a component with which I should be able to display the formatted text. I am using JSF 1.2.
Asked
Active
Viewed 1,983 times
1 Answers
0
You can use some RTF editor bundled with JSF library component (primefaces, richfaces, etc.. ) and I think yuou can display it in a simple div cause the rtf output should use HTML tags and styles or you can display it in the smae RTF window just in a read only mode
1) use primefaces library version 2.2.1 (cause i think it supports jsf 1.2) , this library got the editor component (you can get some info about it from the documentation User's Guide 2.2 and 2.2.1)
2) use a Rich Text Editor like CKEditor in your JSF app, here some ref to how to use Q' + A' Using CKEditor instead of PrimeFaces Editor
Here another ref with similar Q' + A' about RTF in JSF Is there any rich text editor component for JSF RI?
-
Daniel thanks for your quick response. Primefaces & Richfaces doesnt support JSF 1.2. For editor we have a couple of options but how to display rich text which was input`ed via rich text editor in JSF? – Abhishek Dhote Jan 07 '12 at 03:55
-
you could place the created inside the same editor but in a read only mode without any toolbars ,so it will be like a read only text area, and the latest link I gave ya go some references to RTF editor for JSF 1 – Daniel Jan 07 '12 at 07:33