Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Will Henry
Okay, so I am...
July 18, 2013 1:24 PM
Answer

Will Henry

Rank: New Member

Posts: 15

Join Date: July 11, 2012

Recent Posts

Okay, so I am wanting to use this tag
 1<liferay-ui:search-container-column-text
 2        buffer="buffer"
 3        href="<%= rowURL %>"
 4        name="last-name"
 5        orderable="<%= true %>"
 6        property="lastName"
 7        >
 8        <%
 9            buffer.append("<span>");
10            buffer.append(", " + user.getFirstName());
11            buffer.append("</span>");
12        %>
so that the column will be orderable by last name, but I am unable to append the first name via the buffer. I am reformatting the directory for a mobile view, so I need both names to be in the same column while the columns are orderable by last name. How can I do this?
Amos Fong
RE: Okay, so I am...
July 18, 2013 4:17 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1896

Join Date: October 7, 2008

Recent Posts

Hi Will,

Are you sure it's not ONLY appending the FIRST name? If you specify a buffer, I think it only outputs what you add to the buffer.
Will Henry
RE: Okay, so I am...
July 19, 2013 8:46 AM
Answer

Will Henry

Rank: New Member

Posts: 15

Join Date: July 11, 2012

Recent Posts

Yes I have verified that the span is not appended, and if I change the property from lastName to firstName, the search container only contains first names then