Javascript Calendar Problem on Chrome and Safari browsers

| By Webner

While working in a project, we faced a problem with using a calendar on a webpage. It was working fine for Mozilla Firefox but not for Chrome and Safari. Initially we had this code: <input type=”text” name=”startdate” id=”startdate” class=”form-control datepicker”

Salesforce | How to set value of input text field on parent Visualforce Page using Javascript

| By Webner

Description: We had a text field (inputTextF) on our parent page. We wanted to set its value from inside my child page programmatically. 1. You need to pass parent page element Id to the child page. 2. Get parent page

Java | How to Create Entities from existing database in eclipse (ubuntu)

| By Webner

Follow steps below to generate JPA Entity classes automatically in Eclipse: Step 1: Create a simple java project and convert it to JPA Project using following steps: 1.1.  Right Click on your Project. 1.2.  Select Configure option from the menu.

javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher

| By Webner

We were getting following exception when trying to decrypt data using Cipher: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher Actually we were using three layers of encryption with three different secret keys. Everything was

Salesforce | How to get Salesforce lookup field object id using javascript

| By Webner

Suppose we have the following lookup field on a VF page: <apex:inputField id=”owner” value=”{!Event.Ownerid}”> </apex:inputField> To get value of above lookup field using field id in javascript, if we directly use document.getElementById(‘{!$Component.owner}’).value, it will return the text that is displayed

Java | What is the default location for maven repository and how we can modify it

| By Webner

To print maven default configurations, run following command: Command: mvn -X This will show you maven default configurations similar to following: Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.7.0_79, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-i386/jre Default locale: en_IN, platform