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.

pre-requisite:
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.

Prerequisite:

LinkWithin

Related Posts Plugin for WordPress, Blogger...