Sunday, 11 January 2015

Search Container for Boolean value


Here we are storing paymentStatus as boolean(0,1), like 1=true=paid and 0=false=Unpaid when we display data using search Container by using property="paymentStatus"it will display true or false.But we want to dispaly Paid for true and Unpaid for False




<% 
String status;
if(info.getPaymentStatus()){
status="Paid";
}else{
status="Not Paid";
}
%>
<liferay-ui:search-container-column-text name="Payment Status" value="<%=status %>" />

<%
if(select.equalsIgnoreCase("RequestedForCancel")){
%>
<liferay-ui:search-container-column-jsp path="/html/Admin/bookingdetail/actionBookingDetails.jsp" name="Action">
</liferay-ui:search-container-column-jsp>

<%}%>

No comments: