This might help to render an editor when needed:
http://matthiaswessendorf.wordpress.com/2008/02/16/using-dojo-and-apache-trinidad/
You can put the following code in your Java event handler method:
ExtendedRenderKitService service =
Service.getRenderKitService(
FacesContext.getCurrentInstance()
, ExtendedRenderKitService.class
)
;
service.addScript(
FacesContext.getCurrentInstance()
, "alert('Render editor function here');"
);
See also:
http://myfaces.apache.org/trinidad/trinidad-api/apidocs/org/apache/myfaces/trinidad/render/ExtendedRenderKitService.html
Renzo Tomaselli wrote:
>
> Well - in case anybody is interested - things can be setup by catching
> any ongoing Trinidad PPR request by using addStateChangeListener and
> then killing all existing Timymce editors.
> The tricky point is that any returning page part might not involve
> existing editors at all (for example, expanding a tr:tree node) - thus
> surviving editors must be recreated at PPR completion (same listener).
> This strategy seems working well for all cases when PPR returns with
> same/more/less editor areas than page had before.
> The only drawback is about some heavy flickering due to turning off/on
> editors of surviving areas. I tried to kill lost editors during PPR
> response processing, but this raises Tinymce exceptions - likely because
> Dom changed. I will try to post some how-to on the Tinymce list.
>
> -- Renzo
>
--
View this message in context:
http://www.nabble.com/-Trinidad--about-using-Tinymce-with-Trinidad-tp16202920p20831598.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.