Not used ice faces...
Could using dojo and an inputText solve the Problem?

Sent from my iPod.

Am 16.05.2008 um 14:22 schrieb Döring Markus <[EMAIL PROTECTED] e>:

Hi all,

i’m currently searching for a JSF component for a RichText editor. T his means the user can edit fontsize / fontcolor / etc. in an TextAr ea and the String saved on the server should represent the formattin g somehow (preferred as html).

I found a component that meets exactly these criteria in the ICEFaces Component Lib: http://www.icefaces.org / http://component-showcase.icefaces.org/component-showcase/showcase.iface but i have some problems integrating this component into a Trinidad page.



Has anyone done this before?



What I have done so far is read the gettingstarted from ICEFaces and done some configuration stuff described there:

Web.xml added:

      <servlet>

            <servlet-name>Persistent Faces Servlet</servlet-name>

<servlet- class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</ servlet-class>

            <load-on-startup>3</load-on-startup>

      </servlet>

      <servlet>

            <servlet-name>Blocking Servlet</servlet-name>

<servlet- class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>

            <load-on-startup>3</load-on-startup>

      </servlet>



      <servlet-mapping>

            <servlet-name>Persistent Faces Servlet</servlet-name>

            <url-pattern>*.iface</url-pattern>

      </servlet-mapping>

      <servlet-mapping>

            <servlet-name>Persistent Faces Servlet</servlet-name>

            <url-pattern>/xmlhttp/*</url-pattern>

      </servlet-mapping>

      <servlet-mapping>

            <servlet-name>Blocking Servlet</servlet-name>

            <url-pattern>/block/*</url-pattern>

      </servlet-mapping>



And included the richFaces component into an existing page:

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets";

      xmlns:h="http://java.sun.com/jsf/html";

      xmlns:f="http://java.sun.com/jsf/core";

      xmlns:tr="http://myfaces.apache.org/trinidad";

      xmlns:trh="http://myfaces.apache.org/trinidad/html";

      xmlns:c="http://java.sun.com/jstl/core";

      xmlns:ice="http://www.icesoft.com/icefaces/component";>



      <tr:panelFormLayout>

            <tr:inputText label="Name"

                  value="#{bean.name}"

                  required="true" />



            <tr:inputText

                  label="Description"

                  value="#{bean.description}" />



      </tr:panelFormLayout>



<ice:inputRichText id="iceInpRchTxt" height="275" width="600" value="#{bean.richText}" />



</ui:composition>





When I load the page I get the following Exception:



java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl $CacheRenderKit

at com.icesoft.faces.component.inputrichtext.InputRichText.encodeBegin (InputRichText.java:85)

at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive (RenderUtils.java:54)

at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild (CoreRenderer.java:299)

at org. apache. myfaces. trinidadinternal. renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeChild (PanelGroupLayoutRenderer.java:188)

at org. apache. myfaces. trinidadinternal. renderkit.core.xhtml.PanelGroupLayoutRenderer._encodeChildren (PanelGroupLayoutRenderer.java:154)

at org. apache. myfaces. trinidadinternal. renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeAll (PanelGroupLayoutRenderer.java:106)

at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd (CoreRenderer.java:224)

at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd (UIXComponentBase.java:711)

at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild (CoreRenderer.java:304)

at org. apache. myfaces. trinidadinternal. renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeChild (PanelGroupLayoutRenderer.java:188)

at org. apache. myfaces. trinidadinternal. renderkit.core.xhtml.PanelGroupLayoutRenderer._encodeChildren (PanelGroupLayoutRenderer.java:154)

at org. apache. myfaces. trinidadinternal. renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeAll (PanelGroupLayoutRenderer.java:106)

at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd (CoreRenderer.java:224)

at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd (UIXComponentBase.java:711)

at org. apache. myfaces.trinidadinternal.uinode.UIComponentUINode._renderComponent()

at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd (UIXComponentBase.java:711)

at org. apache. myfaces.trinidadinternal.uinode.UIComponentUINode._renderComponent(

Reply via email to