Category: Java Frameworks
Salesforce | Passing data via Javascript to Apex Controller
Some situations occur when we become unable to pass the data from visualforce page to apex controller directly. For example: Suppose you have three divs (todoDiv, doingDiv, doneDiv) that are showing some tasks through the List from apex controller. It
Java | Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter
Base64 Encoding/Decoding with javax.xml.bind.DatatypeConverter in java 6 and 7. Solution: javax.xml.bind.Datatypeconverter class is the built in class inside JRE. We don’t need any third party library as we need in case of Cipher encoding/decoding method. javax.xml.bind.DatatypeConverter.printBase64Binary(byte[]) encodes a byte[] array into
Jquery | How to create/edit Jquery Datatable dynamically
How to create/edit Jquery Datatable dynamically? HTML code: <div class=”col-md-12 col-sm-12 col-xs-12″> <table id=”table”> <tbody> <tr> <th>Rules</th> </tr> </tbody> </table> </div> <button id=”go”>Go</button> Here is the javascript function: function addData() { var data=[this array contains all the values that we
Salesforce | Data Loader Application error about upgrade to TLS 1.1 or Higher
You may receive receive error in Salesforce Data Loader Application about upgrade of TLS 1.1 or Higher. To resolve this issue follow these steps: Step 1: Install latest version of Java. Step 2: Goto setup in Salesforce > type Data
Java Spring | org.springframework.beans.factory.BeanDefinitionStoreException
ERROR : Context namespace element ‘annotation-config’ and its parser class : [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher Description : My project is using : server – Tomcat8 java- 1.8 Framework – Spring 2.5 I had added all
Selenium | How to perform search with Selenium script
In this post I will give an example of how to perform search with Selenium script on a webpage. Below is the screenshot of the webpage: Code to automatically enter a keyword “paint” in the textbox and then click Search
How to access javascript array in php on submit
Suppose you have a Javascript array and want to send it to the server side on page submit then you can use this method. Suppose we have a Javascript array with 3 elements: var test = [“test1”, “test2”, “test3”]; Now
Selenium Webdriver | Locating elements
Selenium Webdriver lets us locate elements in a web page in many different ways. Some of them are: By id: If the HTML element to be located has a unique id one can use this id to locate the element
Background colors of CSS shapes not showing with window.print()
In one of our projects we are working on, we were trying to print a page using Javascript window.print() method. Strangely the page was not showing the colors of various CSS shapes like rectangle, circle etc when print preview was