JSF can save state of component tree in either session or on clients machine inform of serialized data . While creating component tree JSF creates a key and keep all objects of component tree as UIViewRoot in session with against it.For next JSF request it will use same key to restore that view For client […]

Problem- I am using JNDI to connect to ldap active directory, and i want to search for users with the name contains the search string,. Its very slow. my search method is as follows: connection to ldap: ldap credentials: its very difficult to understand why the search takes too much time to retrieve the data. […]

Question -What is static nested class and usage in Java Solutions- Many developers are confused and telling static nested class as static inner class.But in java, there is no static inner class. Ok.First we understand , what is inner class – inner class or nested class is a class declared entirely within the body of […]

There are multiple ways .I will list down few of them. Using Old and standard java solution – if you using Google-Collections/Guava- If you can use Apache Common library..then this is useful – Quick way but only work in deserialization process – Note:ObjectInputStream is about deserialization, and the stream have to respect the serialization protocol […]

Requirement – How to get intradoc server port in custom component in Webcenter Content. Solution – We can use one class called sharedObject which give us environment value.One of my friend(Jonathan) helped me in this. use SharedObjects.getEnvironmentValue(“IntradocServerPort”) will give you intraDocServer port. Read more on http://jonathanhult.com/intradoc-api/intradoc/shared/SharedObjects.html Quick tip in end of weekend Happy coding with […]

Requirement -Programatically update an Excel spreadsheet in Java. Solutions – Here an example of Apache POI to update a XLS workbook. Apache POI is a very good API , that can be handy in manipulating Excel documents.This tutorial focuses on XLS documents (Office 97 – 2003). The existing excel file like below – after updating […]

Requirment – How to write an excel file in Java Solutions- Well Apache POI is answer.This API will help you a lot.you have to download and add the POI JAR file to your project’s class path. The Apache POI JAR file can be found http://poi.apache.org/download.html Following is code – Happy coding with Vinay in techartifact

Requirment – How to read an excel file in Java Solutions- Well Apache POI is answer.This API will help you a lot.you have to download and add the POI JAR file to your project’s class path. The Apache POI JAR file can be found http://poi.apache.org/download.html Please note HSSF (Horrible SpreadSheet Format) – reads and writes […]

You can get the current date time via following two classes – Date and Calendar. And, later use SimpleDateFormat class to convert the date into user friendly format. -> Date() + SimpleDateFormat() -> get the time -> get the time stamp You can define various format i.e -> dd-MMM-yy HH:mm:ss -> yyyy/MM/dd HH:mm:ss -> yy/MM/dd […]

Quite annoying error and you don’t know what went wrong. Well you can resolve by yourself. First step – Search for ide.conf and jdev.conf in you JDeveloper installation folder like c/oracle/jdeveloper Second step-In ide.conf file, copy extactly these properties into that. AddVMOption -Xmx940M AddVMOption -Xms128M Third Step – In jdev.conf file, make sure the following […]