Aragorn,
We are using PF 5.2.
Here is a test URL: "
http://173.219.108.117:8080/test.jsf"
We are able to test this on PC and see no embedded HTML tags. Although, when we pull this up on iPad or Android we see the HTML tags.
Note:
1. The HTML string is coming from a JSF bean and the string is hard-coded.
2. For testing, we have coded a separate XHTML page "test.xhtml", where you can see that it is using primefaces <p:editor/> component, which is referring to the hard-coded HTML string in corresponding bean class (Plase refer attached code.png)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:lims="http://java.sun.com/jsf/composite/lims">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</h:head>
<h:body>
<ui:composition template="/templates/masterLayout.xhtml">
<ui:define name="head">
<h:outputScript name="lims_grid.js" library="js" />
</ui:define>
<ui:define name="windowTitle">Panel LIMS WT :: Tests</ui:define>
<ui:define name="mainPanel">
<div class="maincontent first">
<h:form id="form" dynamic="true" cache="true" enctype="multipart/form-data">
<p:outputPanel id="notesPanel">
<div id="mainNotesUploader">
<div class="row" style="margin-top: 10px;">
<!-- row -->
<div class="col-lg-12 col-xs-24">
<div class="panel panel-default">
<div class="panel-heading" style="padding: 18px !important;">
<h4>Images</h4>
</div>
<div class="panel-body" style="padding: 10px !important;">
<p:fileUpload id="fileupload"
fileUploadListener="#{manageRptTestAndPanelBean.upload}" auto="true"
mode="advanced" multiple="true" process="@form"
update="@(.mainNotes)" oncomplete="initializeDataTable();"
sizeLimit="#{utilityBean.attachmentMaxSize}" />
</div>
</div>
</div>
<div class="col-lg-12 col-xs-24">
<div class="panel panel-default">
<div class="panel-heading" style="padding: 18px !important;">
<h4>Closing Notes</h4>
</div>
<div class="panel-body" style="padding: 10px !important;">
<p:editor id="mainNotes" styleClass="mainNotes"
value="#{manageRptTestAndPanelBean.testHtml}" widgetVar="mainNotes"
onchange="submitMainNotes(); mainnotesiframe();" />
<p:remoteCommand name="submitMainNotes" process="@parent"
update="@none" />
</div>
</div>
</div>
</div>
</div>
</p:outputPanel>
</h:form>
</div>
</ui:define>
</ui:composition>
</h:body>
</html>
Tested on Android Galaxy 10.1 and the HTML text did NOT appear. It appears to be an issue related with iOS pulling the HTML from the above code and displaying it within the editor.
On iOS:
On Android Galaxy 10.1: