p:textEditor - formattings are getting lost in PF6.2 RC1

UI Components for JSF
Post Reply
RueKow
Posts: 331
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

16 Jan 2018, 08:55

Since PF 6.2 all formattings (font, size, crlf, ...) are getting lost when submitting/processing the content of texteditor. This doesn't happen in PF 6.1.
Can anyone confirm that?
Rüdiger

PrimeFaces 11.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

RueKow
Posts: 331
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

17 Jan 2018, 19:49

Seems to be a bug in PF6.2 RC1.

XHTML

Code: Select all

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

    <h:head>
    </h:head>

    <h:body>
		<h:form>
			<p:textEditor widgetVar="editor" value="#{testController.text}" height="300">
			</p:textEditor>
			<p:commandButton value="Submit"
				process="@form"
				update="@form" />
		</h:form>
    </h:body>

</html>
BEAN

Code: Select all

package de.test;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@SuppressWarnings("serial")
@ManagedBean
@SessionScoped
public class testController implements Serializable
{
	private String text;

	public String getText()
	{
		return text;
	}

	public void setText(String text)
	{
		this.text = text;
	}

}
Before submit
Image

After submit
Image
Rüdiger

PrimeFaces 11.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

17 Jan 2018, 22:34

Please file an issue in gitbub

RueKow
Posts: 331
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

18 Jan 2018, 09:10

issue #3170 created
Rüdiger

PrimeFaces 11.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

18 Jan 2018, 14:20

Looks like this was done on purpose. Need to figure out how to make it work like the old QuillJS.

https://github.com/quilljs/quill/issues/903
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

02 Feb 2020, 07:40

Is this back?
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 63 guests