Sunday, September 28, 2008

Portlet Factory Java Expressions

I found something in Portlet Factory that I have wondered about for a few months now. When you pick an item from the Java category of the reference/value picker there are some useful values for the java expressions. USERID is one I use all the time. I have been typing the ${Java/Boolean.TRUE} reference quite a few times lately, and I really wanted to add it and others to the list.

In order to add to the list you need to add items to the WebContent/WEB-INF/config/IndirectJavaExpressions.config file. It is a properties file format, and therefore pretty easy to figure out.

Here is what I added:
  • TRUE=Boolean.TRUE
  • FALSE=Boolean.FALSE
  • NULL=null

I use those almost every time I use the tool. I am sure I will figure out more as I go. Now I just need to remember to take .cvsignore away for that file.

1 comment:

Alwin Co Daan said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training in India . Nowadays Java has tons of job opportunities on various vertical industry.