Thursday, January 24, 2013

How to change icon for Primefaces tree

This post shows how to change the default icon for Primefaces tree.

From the Primefaces demo, we can see that there are attributes for us to change the opened and closed icon - expandedIcon, collapsedIcon, and also icon.
icon for Primefaces tree

These attributes are not referring to image files. Instead, there are css classes.
Thus, we have to define css classes to overwrite the existing.

Sunday, January 20, 2013

How to create Struts application with JBoss Tools

Objective of this post is to show how to create Struts application with JBoss Tools.

1. Eclipse
2. JBoss Tools
3. Tomcat or other supported application server

1. Install JBoss Tools
2. File > New > Other > JBoss Tools Web > Struts > Struts Project > Next
Create Struts application - New project

How to create layout with dynamic include

1. design the layout. eg,
create layout with dynamic include
2. create the template file in XHTML. eg
create layout with dynamic include

Saturday, January 19, 2013

dynamic include in Richfaces tabPanel

The main purpose to have dynamic include in <rich:tabPanel /> is save bandwidth and reduce the page size, especially when the tabs having a lots of content.

This can be achieve through the attribute "onenter" and <a4j:jsFunction />

Thursday, January 17, 2013

Group Chatting with SparkWeb and OpenFire

When we deployed SparkWeb as our web IM, group chat is possible with the combination of SparkWeb and OpenFire.
Due to the limited features in SparkWeb, users login through SparkWeb are not allowed to create chat room. Thus, we have to create the chat room / conference in OpenFire admin console or Spark IM Client.


Saturday, January 12, 2013

How to create wizard with dynamic include in JSF2

In Richfaces, wizard can be created with <rich:togglePanel />, but the disadvantage of this solution is, the component tree would be quite large.
Because the togglePanel component needed to hold all components for all pages in <rich:togglePanelItem />
Which mean the server needs more memory in order to work well in this situation.

and this solution, applicable to Richfaces only.

In this post, I will show how to create a wizard application with dynamic include. Thus, the component tree only hold the required page. and this solution is applicable to all JSF implementation.


Friday, January 11, 2013

How to skip SparkWeb login screen

When we embed the SparkWeb in our application, it is very frustrated if users needed to login again to the chat application.

Here I will show some simple steps to skip the login screen of the SparkWeb
but the disadvantage of this solution is user's password is in plain text.

Before start this post, you may take a look on How to install SparkWeb in a webapp.


Thursday, January 10, 2013

How to install SparkWeb (XMPP Client) in a webapp

Due to certain system requirements, we need to run IM client in browsers.
There are many IM clients available over the Internet. This is the list of clients available. 

Anway, in this post, I will show how to install SparkWeb in a webapp. 
SparkWeb is open source, offered 1-to-1 chat, group chat, cross platform, strong security...

1. Download and install OpenFire Server.

Tuesday, January 8, 2013

How to integrate OpenFire with Liferay chat portlet

The chat portlet in Liferay is actually a XMPP client, thus, we can choose to integrate the Chat Portlet with an external XMPP chat server.
XMPP Chat Server to be used in this post is OpenFire.

Tools required:
1. Liferay 6.1.x
2. Chat Portlet CE
3. OpenFire

Monday, January 7, 2013

How to declare custom namespace for composite components

Once you have created few composite components for your company/project, probably you are thinking to declare a custom namespace for these composite components.

This post will show how to declare a custom namespace.
In this post, I will use the previous post - How to package JSF2 composite component as distributable JAR as sample program.

Sunday, January 6, 2013

How to package JSF2 composite component as distributable JAR

The main purpose to package composite component is to share the copy of composite component(s) among other JSF2 project(s).

in this post, I will use the jQuery star rating in JSF2 as sample.

Tool: Eclipse

Platform: JSF2


Related Posts Plugin for WordPress, Blogger...