Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.3.0.GA_P01
-
Fix Version/s: 4.1, EE-3.3.0.GA_P04
-
Component/s: MOBI-Components
-
Labels:None
-
Environment:jsf icemobile
-
Assignee Priority:P3
-
Support Case References:12779 support case -> https://icesoft.my.salesforce.com/5007000000bFYJT
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
User is trying to display the value in the value attribute of the dataViewColumn itself - not in the dataViewDetails. For example:
<mobi:dataViewColumn headerText="testEscString " value="#{testBean.testEscString}"
reactivePriority="0"/>
This is acting just like h:outputText escape="false" so the question is the same - how to display user-entered text (whatever that is) AND line breaks.
<mobi:dataViewColumn headerText="testEscString " value="#{testBean.testEscString}"
reactivePriority="0"/>
This is acting just like h:outputText escape="false" so the question is the same - how to display user-entered text (whatever that is) AND line breaks.
Can use the following:-
tringEscapeUtils.escapeHtml(). Looks like it works for both h:outputText with escape="false" AND the mobi:dataViewColumn value attribute.
bodyForView = StringUtils.replace(StringEscapeUtils.escapeHtml(body), "\n", "<br>");