editor doesn't render in chrome

UI Components for JSF
Post Reply
jimjim
Posts: 3
Joined: 18 Aug 2010, 00:44

28 Aug 2010, 20:33

hey,

i've been enjoying using the prime faces component suite with Tomcat v7.0 and primefaces version 2.1 (i've also tried your latest 2.2 build). I've been testing in chrome and it seemed to work fine with some components i've tried (layout, datatable, treetable, etc) but i couldn't get the rich html editor to render in chrome. i thought it was a config issue, but then i tried the same page in IE and it rendered as expected. Code is below, in chrome this page just renders as an html text box, in IE it renders properly as a rich html editor. (i've tried clearing the cache in chrome).

Any ideas? Do you support chrome?

Thanks!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.prime.com.tr/ui" >
<h:head>
</h:head>
<h:body>
<p:editor />
</h:body>
</html>

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Aug 2010, 20:58

No chrome is not supported!

Kidding, you need to enforce content type. ;)

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.prime.com.tr/ui" >
<f:view contentType="text/html">
<h:head>
</h:head>
<h:body>
<p:editor />
</h:body>
</f:view>
</html>

jimjim
Posts: 3
Joined: 18 Aug 2010, 00:44

28 Aug 2010, 21:11

ha, you had me worried for a second :)

thanks for the quick response, that worked perfectly!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Aug 2010, 22:33

Glad to help ;)

NikNik77771
Posts: 14
Joined: 01 Aug 2010, 14:56

30 Aug 2010, 02:30

With this heap I am not able to apply skins in chrome for <p:button> and <p:accordionPanel>.
Version 2.2.M1

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Aug 2010, 02:37

Can you see the showcase examples with your chrome?

NikNik77771
Posts: 14
Joined: 01 Aug 2010, 14:56

30 Aug 2010, 02:42

Yes. Of course.

NikNik77771
Posts: 14
Joined: 01 Aug 2010, 14:56

30 Aug 2010, 04:05

Only this work for me:

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui" xmlns:ui="http://java.sun.com/jsf/facelets">

<f:view contentType="text/html; charset=UTF-8">

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests