Sunday, November 25, 2012

Dynamic include with richfaces popupPanel

Scenario:
this post is to show how to dynamically include a page popupPanel when open, and remove the included page when closed.

The purpose to use dynamic include in popupPanel  are to avoid mandatory validation inside the popup, and to reduce the component tree size, thus reduce the network bandwidth.

Steps:
ManagedBean
1. create a placeholder in managedBean.
2. create a addIncludeUrl method in manageBean
3. create a hideIncludeUrl method in managedBean

Saturday, November 24, 2012

How to create first Richfaces 4 application

This post shows how to create a Hello Richfaces 4 application.

before start this tutorial, please refer my previous on how to create a Hello JSF2 application.
or download the complete Hello JSF2 archive and import into Eclipse workspace.

Prerequisite:
1. Richfaces 4 required libraries
2.

Steps:
1. extract the jar files into <HelloJSF2>/WEB-INF/lib
2. open common.xhtml, change the <head> tag to <h:head>. so that the required scripts can be dynamically added into the xhtml pages.
3. declare the richfaces and a4j tag in the page.

How to make sure latter popupPanel appear on top of preceding pupPanel

Scenario:
There might be cases the system requires a popupPanel from another popupPanel.
Sometimes, latter popupPanel may appears below the preceding popupPanel.

Resolution:
in such a situation, always  the z-index of the latter popupPanel higher than the previous popupPanel to ensure the latter popupPanel appears on top of the previous popupPanel.

Wednesday, November 21, 2012

Richfaces popupPanel and fileUpload issue

To display the Richfaces fileUpload component in a popupPanel.

the purpose is to hide the fileUpload component into the popupPanel, to make the page looks simpler. and only invoke the fileUpload component in the popupPanel when it is needed.


Sunday, November 18, 2012

How to create JSF2 Portlet in Liferay

The purpose of this post is to provide an entry level tutorial on how to create JSF2 portlet in Liferay Portal.

Required software / tools:
1. Eclipse (Juno)
2. Liferay Portal 6.1.1 with tomcat bundled
3. Liferay IDE 6.1.1
4. Liferay Plugin sdk 6.1.1

Prerequisites:
1. make sure Liferay development environment is properly setup

How to setup Liferay development environment

The purpose of this post is to provide a simple guideline to setup Liferay development environment with Eclipse.

Required software:
1. Eclipse
2. Liferay Portal with tomcat bundled
3. Liferay IDE
4. Liferay plugins sdk

Thursday, November 15, 2012

How to install JBoss Tools

this post is to show how to install JBoss Tools in Eclipse Juno. as JBoss Tools is an eclipse plugin that provides many convenient tools for java and web development.
for more information about JBoss Tools, please refer https://www.jboss.org/tools.

How to create first JSF2 application

The purpose of this post is to guide newbies to create a Hello application with JSF2.

Below are some of the required tools/software before we start the tutorial.
1. Eclipse
2. JBoss Tool 4.0
3. Tomcat 7 or JBoss 7.1
4. JSF2 api and impl library

After all the prerequisites are installed and ready, we can start creating our Hello JSF2 application.

LinkWithin

Related Posts Plugin for WordPress, Blogger...