Java Frameworks

Responsive DevExtreme Grid Toolbar

Author - Varun Chopra

Introduction – Responsive DevExtreme Grid Toolbar

DevExtreme is a powerful web development framework with a vast array of data presenting and formatting capabilities. It is developed by DevExpress to make responsive and platform independent application. DevExtreme makes the web development swift and easy with its rich features Read more…

Free Online Courses With Personalized Certificate

Author - Webner

Free Online Courses With Personalized Certificate

I started writing this tutorial targeting MCA students in Himachal Pradesh University, Shimla, India (from where I did MCA back in 99). This is an attempt to help students learn Java by practice. I am posting this tutorial(work in progress) on my blog Read more…

Salesforce | Different ways to use datepicker on visualforce page

Author - Shalini

1. Apex:inputfield:

We can simply use apex:inputfield and bind the field with date type field and it will automatically use the Salesforce Calander:
<apex:page standardcontroller=Contact>
<apex:form>
<apex:inputfield value=”{!Contact.Birthdate}”>
</apex:form>
</apex:page&gt Read more…

Using AWS Lambda function in Java to communicate with AWS S3

Author - Richa Sharma
|
0 Comments
|

How to Use AWS Lambda function in Java to communicate with AWS S3?

Reading, writing and uploading a text file to S3 using AWS Lambda function in Java

Following are the steps to write a sample Lambda function in Java to work with the files that Read more…

DAO with JPA (and service layer/EJB3-Session Beans) or not

Author - Webner
|
0 Comments
|

There is a lot of discussion on internet about whether to have DAOs or not with JPA and service layer or with session beans (which is the service layer).

My personal opinion is more favored towards DAO layer and some reasons for this are following:

1. In most of the Read more…

SCEA 5 – My 2 cents

Author - Webner
|
0 Comments
|

Recently became SUN certified Enterprise Architect after clearing all 3 parts of SCEA. It is hard to get answers to all questions one may have regarding SCEA but SCEA forum on javaranch.com is great!! I have shared my experience here for each part to help SCEA seekers.

Part 1 Read more…

Read Word document using Apache POI (Java)

Author - Sahil Bhalla
|
0 Comments
|

Read Word document using Apache POI (Java) :

To read any document (.doc or .docx) or excel document in java, there are several libraries but Apache POI is pretty good. Using this library we can read word documents line by line.

Required Jar files:

Poi.jar
Poi Read more…

AJAX Response Race Condition

Author - Webner
|
0 Comments
|

AJAX Response Race Condition

I am working on a j2ee project in which a lot of UI screens are AJAX based. Recently we started facing problems on some screens, which were not updating correctly. On one of the screens we have a lot of options with Read more…

Java | Stripe – Handling expired credit cards

Author - Rita
|
0 Comments
|

Description:
We are registering our customers using Stripe payment gateway where we are storing customer card details. We are doing recurring payment for customers periodic billing cycle. But if customer’s card expires or card number changes, we will not get any information about that and our billing cycle will Read more…

HTML | Print preview a specific div only

Author - Ashish
|
0 Comments
|

How to view the print preview of a specific div of the page and take a printout of that specific div only?

1.First, create a full-screen modal on the page:
<div class=”modal fade” id=”myModal”>
<div class=”modal-content”>
<div Read more…

Compare Passwords in HTML5 form validation using Jquery

Author - Ishpreet Kaur

In one of our projects, requirement was to compare two password values using HTML5 form validation (display the message in the same format as regular HTML5 messages are displayed).

Let us assume that we have a HTML5 form for change password screen:
<form action=”Controller/User.php”
<div Read more…

JavaScript and Jquery Best Practices

Author - Webner
|
0 Comments
|

1. Place Scripts at the Bottom of the Page: If we include script at the top, sometime page elements are not loaded completely and script starts working. So we need to include scripts after loading all the elements. Also if scripts are loaded at the top, browser has Read more…

Salesforce | Upload Document in Salesforce using javascript

Author - Navdeep Kaur
|
0 Comments
|

We can create a document/attachment object record in Salesforce using Javascript by calling Salesforce soap webservice.

Note – Variable __sfdcSessionId is used to store sessionid.

Script files:

<script type=”text/javascript”>// <![CDATA[
__sfdcSessionId = ‘{!$Api.Session_Id}’;
// ]]></script>
<script src=”/soap/ajax/30.0/connection Read more…

Handling twitter and google plus share button in wordpress

Author - Harleen Kaur

Handling content and image sharing with twitter and google plus share buttons in wordpress

To achieve dynamic content(including image) sharing from a website with share buttons (or links) for share and likes on social sites like twitter and google plus, wordpress requires somewhat more specific functions while creating plugin Read more…

Software Testing | Identifying bugs in different ways

Author - Webner
|
0 Comments
|

In software testing, we have various way to identify the bug/defect. Some of them are as given below:

1. Severity Wise:

* Major: When defect affects major functionality. Example: Suppose a Logo text is not Proper that will be affect the company work.
* Minor: When defect Read more…

Using Google reCaptcha to authenticate user login on login form

Author - Richa

Google reCaptcha is a free service API provided by Google to protect your site from unauthorized access, abuses and spam. The API uses advanced risk analysis technique to distinguish among a human being and a bot. The reCaptcha API comes in the form of a widget and it can be Read more…

Some Important new features in html5

Author - Neelam
|
0 Comments
|

Semantic tags in HTML 5: Semantic tag introduces meaning to the web page rather than just presentation. like and tags are not semantic tags because these are just used for content presentation in the browser.

These are list of semantic tags:

// we should use this tag Read more…

Jquery : Filter array by applying AND & OR logic on checkboxes

Author - Kritika Sood

In one of our projects we have multiple groups of checkboxes and corresponding divs with id as checkbox label. Now we want our checkboxes to perform AND and OR logic .

For Example:

<html>
<div id=”_Java_less than 1500_Basic_Dennis Ritchie” class=”6″ style=”display:none;”&gt Read more…

Salesforce: Call Apex Class on Click of Custom Button

Author - Navdeep Kaur
|
0 Comments
|

1. Create apex class that you want to call (it should be declared global):
Global class Test
{
Webservice static void testMethod()
{
//do something.
}
}
Note: Webservice method must be static:

Global class Test
{
Webservice static void testMethod(String IDD)
{
//do something.
}
}
2. Goto–>Setup–&gt Read more…

Java Spring | Verifying against WhiteList IP Addresses (spring 4.0.4)

Author - Rita
|
0 Comments
|

While designing RESTful web services in a Spring-based web application, we may have a requirement that some web services should be allowed to run only from specific IP addresses. Spring framework provides a simple procedure to verify if the incoming IP address in available in the whiteList Address list Read more…

1 2 3 4 5 6 ... 8 Next page ›