JSF 2 Tutorials and Examples

JSF-Thumbnail

JavaServer Faces (JSF) which provides a Component-Based Architecture for developing reusable User Interface Components hides most of the complex stuffs that are happening in the View portion of the MVC-2 Architecture. The framework is not only limited to developing customized User Interface Components but also provides support for various Advanced Features like Event handling Mechanism, Validating User Inputs that are sent by the clients, Easy Page Navigation […]

10 Tips To Improve MongoDB Security

mongodb_main-150x150

MongoDB provides a number of constructs to improve the security of your data. The security of your data in MongoDB is paramount – so it is important to leverage these constructs to reduce your surface area. Here are 10 tips you can use to improve the security of your MongoDB servers on premise and in […]

Best MongoDB GUI Tools

mongodb_main-150x150

A good UI is an important part of the development experience. The mongo shell works great for administrative actions but when working with larger amounts of data, the UI becomes fairly important. There are a number of options when it comes to MongoDB GUI, some good and some not so good. Below are some of […]

JQuery Live Event Handler Example

jquery

It attaches event handlers to the specified elements and specifies the function to run when the event occurs. This method attaches delegated event handlers to the document of a page. When you use live() event, it will bind all current and future elements on the page. The live() method do not set anything on the […]

JQuery Change Event Example

jquery

The change event occurs when the value of the component changed by the user or application. This event is associated witho <input> elements, <textarea>boxes and <select> elements. For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element […]

Java ScriptEngineFactory Example

java-thumbnail

This example shows how to get the details of the script engines supported by your JVM. Java supports the different script engines that can be retrieved and used depends upon the client side scripts. Java provides javax.script.ScriptEngineFactory for storing all the script engine details like script engine name, version, default script engine, language, etc. You […]

How To Import Java Package Inside JavaScript using ScriptEngine

java-thumbnail

This example show how to import Java package inside JavaScript. We can import the Java package and use the classes inside the scripts. In this example, I have imported the java.util package and use java.util.Date class to print today’s date. Lets look at the example. JavaScriptEngineImportPackageExample.java Output…

How To Run External JavaScript File using ScriptEngine

java-thumbnail

This example is to show how to load the script files to ScriptEngine and evaluate it. In our previous example I have explained how to write script in the Java file and use it in the Java method. In real scenario, scripts written in the external files with bunch of code. We have load the […]

Invoke Script Function using ScriptEngine

java-thumbnail

This is an example of invoking a method in the Script using Java. We have to create javax.script.ScriptEngineManager and javax.script.ScriptEngine to invoke the methods. In this example I have created two methods one without parameter and one with two parameters. Once we have created the script engine instances, then we need to get javax.script.Invocable instance […]

How To Get Java ScriptEngine By MimeType

java-thumbnail

This example shows how to get the script engine by using the mimetype. This is the first step when you are using the Java script engines for executing the scripts. Before your run the scripts, you must get the javax.script.ScriptEngine instance from javax.script.ScriptEngineManager. The engines are registered using the Names ,Extensions and Mimetype. This example […]

How To Get Java ScriptEngine By Extension

java-thumbnail

This example shows how to get the script engine by using the extension. This is the first step when you are using the Java script engines for executing the scripts. Before your run the scripts, you must get the javax.script.ScriptEngine instance from javax.script.ScriptEngineManager. The engines are registered using the Names ,Extensions and Mimetypes. This example […]

Close
Please support the site
By clicking any of these buttons you help our site to get better