Category: Java Frameworks
Javascript Calendar Problem on Chrome and Safari browsers
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”
Java | Maven | How to pack Maven dependencies while creating jar file
We were creating a Maven project having packaging type jar. We had main class from where we were starting project execution. It was working fine through Eclipse but when we created jar file by compiling with Maven, we were not
Eclipse | Generate client for RPC based web services
1. Select your project where you want to generate client code for your wsdl file: 2. Select File -> new -> other option from drop down menu as shown below: Select web service client option from the drop down and
Salesforce | How to set value of input text field on parent Visualforce Page using Javascript
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)
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
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
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 | Remove duplicate objects from Java Hashsets and Hashmap keys
In Java, a Hashset, theoretically, cannot contain any duplicate values but it is not valid when you store user defined objects in it. Same is true in case of Hashmap keys which supposedly cannot be duplicate. The reason is, how
Java | What is the default location for maven repository and how we can modify it
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