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.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Steve Maryka [ steve.maryka ] | Ken Fyten [ ken.fyten ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Won't Fix [ 2 ] |
| Resolution | Won't Fix [ 2 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Issue Type | New Feature [ 2 ] | Improvement [ 4 ] |
| Summary | allow usage of html markup in dataViewColumn similar to h:outputText escape="false" | allow usage of html markup in mobi:dataViewColumn similar to h:outputText escape="false" |
| Assignee | Ken Fyten [ ken.fyten ] | Arturo Zambrano [ artzambrano ] |
| Fix Version/s | 4.0 [ 11382 ] | |
| Assignee Priority | P3 [ 10012 ] |
| Assignee Priority | P3 [ 10012 ] | P1 [ 10010 ] |
| Assignee Priority | P1 [ 10010 ] | P3 [ 10012 ] |
| Fix Version/s | EE-4.0.0.GA [ 11171 ] | |
| Fix Version/s | 4.0 [ 11382 ] |
| Fix Version/s | 4.1 [ 11375 ] | |
| Fix Version/s | EE-4.0.0.GA [ 11171 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #45043 | Tue Jun 16 14:40:28 MDT 2015 | art.zambrano | |
| Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/dataview/DataViewColumn.java
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/dataview/DataViewColumnMeta.java
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/dataview/DataViewRenderer.java
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/model/dataview/DataViewColumnModel.java
|
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Fix Version/s | EE-3.3.0.GA_P04 [ 12270 ] | |
| Affects Version/s | EE-3.3.0.GA_P01 [ 11174 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #45085 | Mon Jun 22 19:42:50 MDT 2015 | art.zambrano | |
| Files Changed | ||||
MODIFY
/icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/dataview/DataViewColumn.java
MODIFY
/icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/dataview/DataViewColumnMeta.java
MODIFY
/icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/dataview/DataViewRenderer.java
MODIFY
/icemobile/trunk/icemobile/core/src/main/java/org/icemobile/model/DataViewColumnModel.java
|
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #45086 | Mon Jun 22 19:45:49 MDT 2015 | art.zambrano | |
| Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/src/org/icefaces/mobi/component/dataview/DataViewColumnMeta.java
|
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Affects | Documentation (User Guide, Ref. Guide, etc.),Compatibility/Configuration [ 10003, 10002 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |

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>");