Hello Chethan,
You have to touch the code, very small change in the view.jsp, but there is not automatic way of doing it today.
Using generated code from XMLPFExample06.xml go to xmlpfexampleF/docroot/JSPs/users/view.jsp and you can see code:
1 <liferay-ui:search-container-column-text name="Comments" align="center">
2 <%
3 String userCommentsIcon = iconUnchecked;
4 String userComments = users.getUserComments();
5 if (!userComments.equals("")) {
6 userCommentsIcon= iconChecked;
7 }
8 %>
9 <liferay-ui:icon image="<%=userCommentsIcon %>"/>
10 </liferay-ui:search-container-column-text>
That leads to the icon being checked or not. (see image "text_icon.jpg" below). If you change this code for:
1 <liferay-ui:search-container-column-text
2 name="Comments (text)"
3 property="userComments"
4 orderable="false"
5 orderableProperty="userComments"
6 align="left"
7 />
You will get the text from it. (see image "text.jpg" below).
If you wanted to have an option in the userComments field, about showing the icon, or showing the text, how would you write it in the xml definition?
<field>
<name>userComments</name>
<title>Comments</title>
<type>
<text></text>
</type>
<showFieldInView>true</showFieldInView>
<required>false</required>
</field>
Saludos, Jack.