Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 35707 invoked from network); 16 May 2008 12:44:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 12:44:04 -0000 Received: (qmail 73039 invoked by uid 500); 16 May 2008 12:44:01 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 72987 invoked by uid 500); 16 May 2008 12:44:01 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 72976 invoked by uid 99); 16 May 2008 12:44:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 05:44:01 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_NETSOLPR X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mwessendorf@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 12:43:13 +0000 Received: by nf-out-0910.google.com with SMTP id c7so354715nfi.26 for ; Fri, 16 May 2008 05:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:x-mailer:mime-version:subject:date:references; bh=5p+WX3tHYXGhGHLBtoT5bpI+LkA1wLUQTpbrGgSkhgg=; b=lEpT7rRGOrgCdLEJx0iZNv3lcQRpf+0mrvTMId4FgeUMzKvRrLjVgTOJoCo7v6HIKJ9kIl3wYSiB5Fa9ZqpuSgyp5NHdvj3k5VTjrM7KakylCNJgJDxzgpVUwX1Qy44rugQX4P69fEjQYkpnvmSpDtLeR+MxIZXcSB8gBR+gU7w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:x-mailer:mime-version:subject:date:references; b=q5mrlgXP948fezoNdtQvytZTZnYOcVifduk/heaWNMgzpqrggFMPNGJMyqro8gpcN9iS42+UEdvMBcdyRaXEN5++75tpjShiFRVN6kMl1wNk+a4hH5MOnnSvLjpc/UrgnG2uhwL3TJrdTKuj78WS+Opak1AMkcTUE1xyC8j+TKc= Received: by 10.210.16.20 with SMTP id 20mr3570599ebp.134.1210941806368; Fri, 16 May 2008 05:43:26 -0700 (PDT) Received: from ?192.168.2.103? ( [79.203.85.15]) by mx.google.com with ESMTPS id g1sm18818823muf.7.2008.05.16.05.43.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 16 May 2008 05:43:24 -0700 (PDT) Message-Id: <82CFE116-50F1-4023-98AB-44E4FDEA18FB@gmail.com> From: Matthias Wessendorf To: MyFaces Discussion In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-1-706329808 X-Mailer: iPod Mail (4A93) Mime-Version: 1.0 (iPod Mail 4A93) Subject: Re: [Trinidad] Trinidad and ICEFaces Date: Fri, 16 May 2008 14:42:41 +0200 References: X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1-706329808 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes 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=C3=B6ring Markus = : > Hi all, > > i=E2=80=99m currently searching for a JSF component for a RichText = editor. T=20 > his means the user can edit fontsize / fontcolor / etc. in an TextAr=20= > ea and the String saved on the server should represent the formattin=20= > g somehow (preferred as html). > > I found a component that meets exactly these criteria in the =20 > ICEFaces Component Lib: http://www.icefaces.org / = http://component-showcase.icefaces.org/component-showcase/showcase.iface=20= > but i have some problems integrating this component into a Trinidad =20= > page. > > > > Has anyone done this before? > > > > What I have done so far is read the gettingstarted from ICEFaces and =20= > done some configuration stuff described there: > > Web.xml added: > > > > Persistent Faces Servlet > > class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet servlet-class> > > 3 > > > > > > Blocking Servlet > > class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet > > 3 > > > > > > > > Persistent Faces Servlet > > *.iface > > > > > > Persistent Faces Servlet > > /xmlhttp/* > > > > > > Blocking Servlet > > /block/* > > > > > > And included the richFaces component into an existing page: > > > xmlns:h=3D"http://java.sun.com/jsf/html" > > xmlns:f=3D"http://java.sun.com/jsf/core" > > xmlns:tr=3D"http://myfaces.apache.org/trinidad" > > xmlns:trh=3D"http://myfaces.apache.org/trinidad/html" > > xmlns:c=3D"http://java.sun.com/jstl/core" > > xmlns:ice=3D"http://www.icesoft.com/icefaces/component"> > > > > > > > value=3D"#{bean.name}" > > required=3D"true" /> > > > > > label=3D"Description" > > value=3D"#{bean.description}" /> > > > > > > > > value=3D"#{bean.richText}" /> > > > > > > > > > > When I load the page I get the following Exception: > > > > java.lang.ClassCastException: =20 > org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl=20 > $CacheRenderKit > > at =20 > com.icesoft.faces.component.inputrichtext.InputRichText.encodeBegin=20 > (InputRichText.java:85) > > at =20 > org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive=20 > (RenderUtils.java:54) > > at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild=20= > (CoreRenderer.java:299) > > at =20 > org.=20 > apache.=20 > myfaces.=20 > trinidadinternal.=20 > renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeChild=20 > (PanelGroupLayoutRenderer.java:188) > > at =20 > org.=20 > apache.=20 > myfaces.=20 > trinidadinternal.=20 > renderkit.core.xhtml.PanelGroupLayoutRenderer._encodeChildren=20 > (PanelGroupLayoutRenderer.java:154) > > at =20 > org.=20 > apache.=20 > myfaces.=20 > trinidadinternal.=20 > renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeAll=20 > (PanelGroupLayoutRenderer.java:106) > > at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd=20 > (CoreRenderer.java:224) > > at =20 > org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd=20 > (UIXComponentBase.java:711) > > at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild=20= > (CoreRenderer.java:304) > > at =20 > org.=20 > apache.=20 > myfaces.=20 > trinidadinternal.=20 > renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeChild=20 > (PanelGroupLayoutRenderer.java:188) > > at =20 > org.=20 > apache.=20 > myfaces.=20 > trinidadinternal.=20 > renderkit.core.xhtml.PanelGroupLayoutRenderer._encodeChildren=20 > (PanelGroupLayoutRenderer.java:154) > > at =20 > org.=20 > apache.=20 > myfaces.=20 > trinidadinternal.=20 > renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeAll=20 > (PanelGroupLayoutRenderer.java:106) > > at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd=20 > (CoreRenderer.java:224) > > at =20 > org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd=20 > (UIXComponentBase.java:711) > > at =20 > org.=20 > apache.=20 > myfaces.trinidadinternal.uinode.UIComponentUINode._renderComponent() > > at =20 > org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd=20 > (UIXComponentBase.java:711) > > at =20 > org.=20 > apache.=20 > myfaces.trinidadinternal.uinode.UIComponentUINode._renderComponent( --Apple-Mail-1-706329808 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
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=C3=B6ring Markus <Markus.Doering@tcc-products= .de>:

Hi = all,

i=E2=80=99m currently = searching for a JSF component for a RichText editor. This means the user can edit fontsize / fontcolor = / etc. in an TextArea and the String saved on the server should represent the = formatting 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>

         &n= bsp;  <servlet-name>Persistent Faces Servlet</servlet-name>

         &n= bsp;  <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet<= /span></servlet-class>

         &n= bsp;  <load-on-startup>3</load-on-startup>

      </servlet>

      <servlet>

         &n= bsp;  <servlet-name>Blocking Servlet</servlet-name>

         &n= bsp;  <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet<= span lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:"Courier = New";color:teal"></servlet-class>

         &n= bsp;  <load-on-startup>3</load-on-startup>

      </servlet>

 

      = <servlet-mapping>

         &n= bsp;  <servlet-name>Persistent Faces Servlet</servlet-name>

         &n= bsp;  <url-pattern>*.iface</url-pattern>

      </servlet-mapping>

      <servlet-mapping>

         &n= bsp;  <servlet-name>Persistent Faces Servlet</servlet-name>

         &n= bsp;  <url-pattern>/xmlhttp/*</url-pattern>

      </servlet-mapping>

      <servlet-mapping>

         &n= bsp;  <servlet-name>Blocking Servlet</servlet-name>

         &n= bsp;  <url-pattern>/block/*</url-pattern>

      </servlet-mapping>

 

And included the richFaces = component into an existing page:

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

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

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

      xmlns:tr=3D"http://myfaces.apache.org/trin= idad"

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

      xmlns:c=3D"http://java.sun.com/jstl/core"<= /span>

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

 

      = <tr:panelFormLayout>

         &n= bsp;  <tr:inputText label=3D"Name"

         =          value=3D"#{bean.name}"

         =          required=3D"true" />

 

         &n= bsp;  <tr:inputText

         =          label=3D"Description"

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

 

      </tr:panelFormLayout>

 

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

 

</ui:composition>

 

 

When I load the page I get = the following Exception:

 

java.lang.ClassCastException: = org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheR= enderKit

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

      at = org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(<= span lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:"Courier = New";color:navy">RenderUtils.java:54)

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

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

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

      at = org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelGroupLayoutR= enderer.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.PanelGroupLayoutR= enderer.encodeChild(PanelGroupLayoutRenderer.java:188)

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

      at = org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelGroupLayoutR= enderer.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._renderCompon= ent()

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

      at = org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode._renderCompon= ent(

= --Apple-Mail-1-706329808--