Author Archives: admin

Embedding a portlet in the theme – velocity template

Liferay themes are developed using the Velocity template language (.vm extention). It has Liferay built-in features to perform special activity. We can embed a built-in Liferay portlet or a plugin portlet which can be either instanceable or non-instanceable portlets. Here …

Posted in Liferay | Tagged | Leave a comment

Calendar or Date difference in Java – example difference in day, hour, minute and second

This example shows how to to get Calendar or Date difference in day, hour, minute and second using Java code. First, get the date in milliseconds for both of the date object and then get their difference. Finally divide it by …

Posted in Java-J2ee | Tagged | Leave a comment

Loading bar on Image loading using javascript

We some times need to show loading bar or “please wait…”  while loading a big image. We can do it very easy using simple javascript. Below is the javascript method to do the same. We have used one ajax rotating …

Posted in HTML | Tagged | Leave a comment

Java – get calendar time of other time zone

Java java.util.TimeZone class represents time zones. We can do easy calendar arithmetic across time zones in conjunction with the java.util.Calendar class. Here is an example which prints all the available time zones: String TimeZoneIds[] = TimeZone.getAvailableIDs(); for (String zoneId: TimeZoneIds) { System.out.println(zoneId); } The below method …

Posted in Java-J2ee | Tagged | Leave a comment

Showing Liferay Web Content in Custom Portlet

You can easily create a portlet to show web content. First of all, you create few a web content from Control panel. Now create a portlet to the content. The jsp page needs only the below line to show content …

Posted in Liferay | Leave a comment

liferay-ui:input-date – how to display only month and year

I am in need just show month and year field. However, liferay-ui:input-date show all the three fields by default along with the calendar icon. I did this using jQuery, I have written code to hide the field as per need. For …

Posted in Liferay | 4 Comments

About us

ksdkfkjfkjfbskjfbkjdfbkbfkjdfkd ldjfldfj ldf jlsdfjlsdfj lsdjflfjlsd jfldfj ldflsdf ljfljfljfldsjfls fld jflsd jflds jlfsdj fldjlf dlf jldf jlkdf ld

Posted in About us | Leave a comment

How to convert decimal to binary in Java with Example

This tutorial explains how to Convert decimal value into binary value. Integer class of java.lang package contains a method toBinaryString() which takes a decimal int value as argument and returns binary String value. Here is the complete program. import; …

Posted in About us, Adobe Flex, Adobe flex2, C and Cpp, ColdFusion, CSS, Delphi, Dreamweaver, eCommerce, HTML, Java-J2ee, Marketing, Microsoft Asp.Net, MM Fusion, MS Access, MS Excel, MS Frontpage, MySQL, Perl and CGI, PHP, Prestshop, Python, Ruby on Rails, SEO, Uncategorized, Visual Basic, Web Design, XML | Leave a comment