Posts

Showing posts from June, 2017

com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes)

Android studio error while adding dependencies for RecyclerView. Simple change to the latest version same as your appcompat-v7:25.3.1   for example: compile 'com.android.support:appcompat-v7:25.3.1'   compile 'com.android.support:recyclerview-v7:25.3.1'       Android studio gives warning if the version is not the same.

Missing recyclerview component on android studio

resolve by adding the following dependency on gradle --  module app. add the following to the dependecies    - compile 'com.android.support:recyclerview-v7:+'   sync now on the top of the editor.   credit to: https://stackoverflow.com/questions/24441107/recyclerview-is-missing

Validate Email address in Java

Method to validate email entry in Java. public static boolean isValidEmailAddress(String enteredEmail) {                 boolean isValid = false;         boolean containsDot = false;         boolean containsAt = false;         int dotPosition = 0;         int addPosition = 0;         char addSign = '@';         char dotLetter = '.';                 if (enteredEmail != null && !enteredEmail.isEmpty()){             dotPosition = enteredEmail.lastIndexOf(".");             addPosition = enteredEmail.lastIndexOf("@");                  ...

Primefaces Calendar component

Try to use Primefaces Calendar component realizing unable to use Ajax in command button. solved by updating the form id to form or simple remove the id. leaving only <h:form>