Sunday, October 16, 2011
Recommended Tools For Liferay
The following instructions will
help you get your development environment ready for working with the
source code. These instructions
are specific to setting up for deployment to Orion server and Tomcat 5.5
developing with Java JDK 1.5.
Liferay Portal is compatible with Java 1.4 also and a wide array of
application servers and
containers. You will need to adjust your development environment according to
your platform.
Before we can get started, the
following components must be installed on your machine.
3.1. JDK 1.5.0
or JDK 1.4.2
1. Download and install JDK 1.5.0
[http://java.sun.com/j2se/1.5.0/download.jsp]. JDK 1.4 is also
supported.
2. Set an environment variable
called JAVA_HOME to point to your JDK directory.
3.2. Jikes 1.22
or Jikes 1.21
Jikes is a Java compiler by IBM
that is much faster than the original one provided by the JDK.
1. Download and unzip Jikes 1.22
[http://www-124.ibm.com/developerworks/oss/jikes]. If using JDK
1.4 you have to use Jikes 1.21
instead.
2. Set an environment variable
called JIKES_HOME to point to your Jikes directory.
3. Add JIKES_HOME\bin
to
your PATH environment variable.
3.3. Ant 1.6.5
1. Download and unzip the latest
version of Ant [http://ant.apache.org/].
2. Set an environment variable
called ANT_HOME to point to your Ant directory.
3. Add ANT_HOME\bin to your PATH
environment variable.
3.4. Subversion
or a Similar Version Control System
We recommend that you put all
your code and configuration files into a version control system.
Subversion is free and open
source and can be used through a set of commands, by installing a
subversion client such as
SmartSVN [http://www.smartsvn.com/], TortoiseSVN [http://tortoisesvn.net/]
or through the integration
mechanisms provided by most IDEs.
Difference Between Portlet Development vs Servlet Development
Developing a Java Portlet is
similar to the process of developing a Servlet based web applications. The
main differences are:
• The portlet only produces a
fragment of the final HTML and not the full markup. The portal will join
the fragments of several portlets
and will create the full page returned to the user.
• The class receiving the
requests has to inherit from javax.portlet.Portlet instead of
javax.servlet.http.HttpServlet.
• A portlet request may involve a
two phase process:
1. On each request at most one
portlet will be able to perform an state-changing operation. This is
referred to as the Action phase
and is implemented through a method called processAction.
Not always an action phase is
needed. Requests that involved an action phase are invoked to an
URL known as an ActionURL, while
those that only have a render phase are invoked through a
RenderURL.
2. Next is the render phase where
all other portlets related to the page that is going to be returned may
be called in any order to produce
the HTML fragment to draw themselves. Portlet implement this
functionality through a method
called render.
• Existing web application
development frameworks such as Struts, JSF, Webworks, etc can be used
through the use of Bridges. Other
existing frameworks have been adapted to be usable directly
without the need of a bridge. An
example is the Spring Portlet MVC framework.
A portlet container is a server
side software component that is capable of running portlets. A portal is a
web application that includes a
portlet container and may offer additional services to the user. Liferay
Portal includes its own portlet
container and offers lots of functionalities such as user and organization
administration, creation of
virtual communities, having pages based on portlet layouts, graphical
selection of portlets and
drag&drop to place them, grouping pages into websites, several bundled
ready-to-use portlets, and much more.
How to Defining a new theme
Before digging into these folders, the next step is to register
the theme in Liferay. Edit the file
liferay-look-and-feel.xml
present in the WEB-INF directory and add the following
XML
fragment:
<theme id="my-theme" name="My theme">
<root-path>/html/themes/my-theme</root-path>
<templates-path>/html/themes/my-theme/templates</templates-path>
<images-path>/html/themes/my-theme/images</images-path>
<template-extension >jsp</template-extension>
<settings>
<setting key="my-setting" value="example-value"/>
</settings>
<color-scheme id="gen-color" name="DarkBlue">
<![CDATA[
-- Content omitted for clarity --
]]>
</color-scheme>
</theme>
The root-path element must point to the root theme folder. The
elements templates-path
contains the path to the JSP templates, and images-path points
to the subfolder that contains the
images for this theme. Note that you can choose any subdirectory
name you want or point to
subdirectories in other directories. However, it is recommended
that you keep the default
convention unless you have a good reason to change it.
The template-extension element specifies the language in which the
templates of the theme are
written. JSPs and velocity (specifying vm as the template extension) are
supported. Liferay
comes with examples of both. In this article we will assume JSP
templates, but they are very
_
Page 5 of 11 Created by Jorge Ferrer
What is portlet Content and Portlet Template
Portlet Content: the
internal area that shows the meat
of the portal.
Portlet Template:
the external area and can be customized for each theme.
Liferay Interview Question and Answers
what can you do with a theme?
A theme can control the whole look and feel
of the pages generated by Liferay. The portal-side
of the page can be completely customized.
Even the appearance of the portlets that come with
Liferay can be customized using CSS, images, JavaScripts, and special
templates.
| Liferay Interview Question and Answers |
Blog Tips for SEO
Blogs are the current rage, and many webmasters have blogs but fail to use their blog to it's full potential. Blogs provide a steady stream of fresh content, and if this content is written and managed properly, blogs have the ability to increase a website's ranking in the search engines.
1. Host Your Own Blog In order to prosper from a blog, be sure to host it on your own domain. Hosting the blog on your own server will maximize the links to your website. Link popularity is one of the factors search engines use to rank websites. Resist the urge to use free hosting services, do not give away your link popularity!
2. RSS FeedsAll blogs should have an RSS feed. An RSS feed will allow for your blog posts to be easily syndicated. The syndication will result in links back to your blog from RSS directories or others who display the feed. Blog entries should be available via an RSS feed. Website visitors who subscribe to the feed will receive notification when new blog posts are added. If the title is of interest, they will click through to your website. This gives subscribers an easy way to know when a blog has been updated.
3. Use White Space Be sure to make your content scannable. Few website visitors actually read blog posts; most web visitors simply scan a blog entry to determine its relevance or point. With that in mind, the blog posts should be displayed in short paragraphs. Overly long posts should be segmented into concise paragraphs or broken into bulleted lists to make scanning easier. Avoid the urge to "clutter" the post.
4. Titles Matter You only have seconds to grab the attention of scanners browsing your blog. Use keywords and catchy titles to draw readers in. Blog post titles can be bolded for emphasis and white space should be used to buffer the content.
5. Grammar Matters
Fresher WalkIn
Experience required for the Job: 0 - 4 years
Annual Salary of the Job: 0.0 - 3.0 Lacs
Job Location: Bengaluru/Bangalore
Dear Candidate,
Hewlett Packard - Fresher"s & Experienced Walk-in @ Bangalore
Hi,
Greetings from Hewlett Packard!!
Job Title: Technical Support Representative.
Process: Imaging and Printing Group/Personal Systems Group.
Experience: Fresher"s & Experienced (0 to 4 yrs)
Job Description:
Technical Support -Engineer Voice based- 17th October, 2011,( Monday)
 Troubleshooting operating system, hardware and network related queries of our global customers Over Phone which involves working in different time zones.
 Troubleshooting of laptops and desktops etc of HP customers (internal)
 Take calls from Global customers and initiate the right response to them, positively and professionally
 Deal with a wide range of products using a powerful information database
 Provide remote solutions to problems, probe problems and explain the solution in such a way that non-technical users understand
Eligibility: Graduate in any discipline, Experience: 0 - 3 years of work experience
* Excellent communications and technical skills is a must.
What we have for you!
You can look forward to a fulfilling and enriching career with HP. At HP, we encourage employees (after a minimum of 18 months in the current roles) to explore career opportunities across different business units, customer segments and functional roles within HP itself.
WALK-IN SESSION:17th October, 2011,( Monday)
Venue:
'LAKSHYA' Towers
5th Floor, #16(old No. 309/2),
OPP: P.M.R Hall, 5th Block,
K H B Colony, KORAMANGALA
BANGALORE - 560034
Phone Number: 080 40981841
Registration:
09:00 AM to 1:00 PM.
Please ensure that you carry the documents mentioned below for this Walk-in-Interviews:
Mandatory Documents:
* Photo copies of 10th , 12th marks card if undergraduate and all the degree marks cards if graduate.
* Resume (Ensure that your Full Name is on it)
* 2 copies of recent passport sized photographs
* Proof of date of birth
* Degree Certificate/ Provisional Degree Certificate(original)
* Photo ID (Passport, Driving license, Election ID Card)
* Offer letter/Revised offer letter/Pay slips/ Experience letter (in case of experienced candidates)
Thanks & regards,
HR-Staffing Team (Hewlett Packard India Pvt Ltd)
Note :
1) Candidate should be willing to work in rotational shift
Apple to bring lower priced iPad
To compete with Amazon's cheap Kindle Fire proposition, Apple is expected to unveil a lower priced iPad in the first few months of 2012
The news came via a story published on BGR, according to a report by You Know Mobile.
‘Our research is pointing to the unveiling of a lower priced iPad in the first few months of 2012 that is aimed at expanding the company’s market potential by tapping into a more price sensitive consumer segment," said Ticonderoga Securities analyst Brian White in a media statement.
‘Essentially, this ‘iPad mini’ will also fend off the recently announced Amazon Kindle Fire that addresses the low-end tablet market with a $199 price tag but could lead to bigger tablet ambitions from the online retailer in the future," he added .
According to White, this lower priced iPad could be priced in the mid-to-high-$200 range. Also, according to the report, White has also claimed that a more premium-grade iPad tablet will land in 2012 as well.
More on Apple to bring lower priced iPad
Powered by IT PRO India











