Edit pom.xml, Add scanIntervalSeconds element to allow jetty scanning changes in contextPath
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<webApp>
<contextPath>/</contextPath>
</webApp> ...
Friday, December 9, 2016
Friday, June 24, 2016
Maven, Install library from local path
mvn install:install-file -Dfile=c:\ojdbc6.jar -DgroupId=com.oracle
-DartifactId=com.oracle -Dversion=11.2.0.4 -Dpackaging=j...
Thursday, October 29, 2015
Setting width Inplace Component Primefaces

In an hour ago I have a problem with inplace component then Aceh Gayo coffee was gave me the idea.
taken from www.foodspotting.com
There is no properties for setting width in inplace component, but if you look at html code that produced by primefaces you will find the span element for...
Saturday, October 10, 2015
Jsf, Getting url parameter value

Source image: wallpaperseries.com
Good morning, people!
Have you drink your coffee today? I'm drinking a cup of americano from nearby store. :)
Let say you have to get param value in http://localhost:8080/apps/faces/test.xhtml?param=hello.
All you need is just add view param in your xhtml...
Saturday, September 26, 2015
Securing Web Application in Tomcat 7 using jdbc realm and j_security_check
Use case :
a Web Application contains master and
transaction modules. Those modules need to be secured using Admin role.
Implementation :
Prepare database table, we can use either table
or view. The following script is the minimum requirement, we can use either table
and view.
CREATE TABLE "USER_MANAGEMENT"
( "ID" NUMBER(5,0) NOT NULL ENABLE,
"USER_ID"...
Wednesday, September 2, 2015
JSF, How to get current xhtml path in Bean
All you need is available in FacesContext :
FacesContext facesContext = FacesContext.getCurrentInstance();
String viewId = context.getViewRoot().getViewId();
System.out.print(viewId); //will print your current path U...
JSF, Redirecting Page from Managed Bean

Source picture: frugal.ca
Brew your favourite beans into a cup of coffee!
Then ..
Simply just add paramater faces-redirect=true in your return page.
public String doNavigate() {
return "Home?faces-redirect=true";...